254 votes
Accepted

Unable to locate package `docker-ce` on a 64bit ubuntu

Add Docker's official GPG key: sudo apt update sudo apt install ca-certificates curl gnupg sudo install -m 0755 -d /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg -...
GAD3R's user avatar
  • 66.8k
194 votes

How to install Python 3.6?

You can install Python-3.6 on Debian 8 as follows: wget https://www.python.org/ftp/python/3.6.9/Python-3.6.9.tgz tar xvf Python-3.6.9.tgz cd Python-3.6.9 ./configure --enable-optimizations --enable-...
GAD3R's user avatar
  • 66.8k
148 votes

No sha256sum in MacOS

The CoreUtils package is also published as a Brew formulae. So if you have Brew installed you can also just run: brew install coreutils Then add PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH" ...
Mig82's user avatar
  • 1,580
110 votes

How to install a deb file, by dpkg -i or by apt?

You can install a local .deb package by: sudo apt install ./foo.deb Make sure to specify a local relative or absolute path (./ if in current dir), otherwise it will look for foo.deb in the remote ...
wisbucky's user avatar
  • 3,428
108 votes

Local installation of .rpms using YUM

Too bad you accepted that rpm answer. That will lead to warnings from subsequent executions of yum, such as Warning: RPMDB altered outside of yum Instead you should use yum localinstall, per section ...
Jeff's user avatar
  • 1,282
81 votes

How to install a deb file, by dpkg -i or by apt?

Here's the best way to install a .deb file on Ubuntu on the command-line: sudo gdebi skype.deb If you don't have gdebi installed already, install it using sudo apt install gdebi-core. Why gdebi? ...
Flimm's user avatar
  • 4,228
68 votes
Accepted

How to install Python 3.6?

Editorial note: Warning: this answer shows how to install Python from future releases of Debian. This will result in a system which mixes Debian releases, and will affect more than Python — in most ...
Егор Гвоздиков's user avatar
54 votes
Accepted

No sha256sum in MacOS

After investigating a little, I found a ticket in an unrelated software in GitHub sha256sum command is missing in MacOSX , with several solutions: installing coreutils sudo port install coreutils ...
Rui F Ribeiro's user avatar
51 votes

Where should a local user executable be placed (under $HOME)?

As uther mentioned, /usr/local is intended as a prefix for, essentially, software installed by the system administrator, while /usr should be used for software installed from the distribution's ...
MattSturgeon's user avatar
45 votes
Accepted

How to install VirtualBox Extension Pack to VirtualBox latest version on Linux?

First, you need to adhere to the VirtualBox Extension Pack Personal Use and Evaluation License. Second, I advise to only install this package if actually needed, here is the description of the ...
Vlastimil Burián's user avatar
45 votes

Arch Linux pacman error: failed retrieving file

Although this has been answered, I encountered the same issue. I resolved it by updating my databases while installing. For instance: sudo pacman -Syu elinks
Oppa's user avatar
  • 551
44 votes
Accepted

'sudo' is not installed, I can't install it, and it asks if I am root

If you do not have sudo installed, you will need to actually become root. Use su - and provide the root user's password (not your password) when asked. Once you have become root, you can then apt-...
DopeGhoti's user avatar
  • 76.2k
42 votes

Is there any software that can help me reinstall software after fresh install

Save and restore all packages On Debian/Ubuntu based systems you can dump the list of installed packages to a file dpkg --get-selections > my_package_list.txt and install them again by running ...
Martin Konrad's user avatar
42 votes
Accepted

Forgot to install the desktop environment while installing debian 12

Assuming you want to continue from where you are now, these instructions will help you get the graphical interface installed. However, since you are using a freshly installed system you might find it ...
Chris Davies's user avatar
37 votes

How to install Python 3.6?

The official recommendation is "you don't actually need newer software" Don't suffer from Shiny New Stuff Syndrome - DontBreakDebian | Debian Wiki Most of the advice on that page is geared towards ...
Greg Nisbet's user avatar
  • 3,076
34 votes

Using a file to install packages with apt-get

Improving a bit on the answer of @ortomala-lokni, you can give the file directly as an argument to xargs: xargs -a packages.txt sudo apt-get install Optionally you can give xargs the -r option to ...
quazgar's user avatar
  • 881
34 votes

uninstall Python installed by compiling source?

Starting from @Anthon's rm list, and applying @bin-s advice to search for newer files, i came up with this bash-script to completely wipe-out my Python-3.6.6 (which had been installed from sources ...
ankostis's user avatar
  • 553
32 votes

"showmount: command not found": how do I know what to install?

You can use apt-file for that (you might need to install it): apt-file search showmount This reveals that the command is in the nfs-common package. Typically when you're looking for a binary you ...
Stephen Kitt's user avatar
31 votes
Accepted

Why no permissions like Android or iOS?

There are two things here: when you install a program by standard means (system installer such as apt/apt-get on Ubuntu) it is usually installed in some directory where it is available to all users (/...
xenoid's user avatar
  • 8,918
31 votes

E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution) libreoffice

In certain cases you might also want to force the overwrite sudo dpkg --configure --force-overwrite -a Alternatively: sudo apt -o Dpkg::Options::="--force-overwrite" --fix-broken install
sicvolo's user avatar
  • 451
31 votes
Accepted

Automatic yes to prompts when installing package on Alpine Linux

apk does not need a --yes argument as it is designed to run non-interactively from the get-go and does not prompt the user unless the -i / --interactive argument is given (and then only for "certain ...
user310346's user avatar
30 votes

Why use install rather than cp and mkdir?

Apart from the previous descriptions here about the usage, there is a low level difference between cp and install, at least on Linux. If copying over an existing file, cp overwrites the existing inode ...
Tomas Skäre's user avatar
30 votes

How to install libtoolize as non-root user

The software package is libtool : https://www.gnu.org/software/libtool/
schaiba's user avatar
  • 7,631
29 votes

Equivalents to '.msi' and to 'setup.exe' files in Debian or Ubuntu?

Probably closer to an MSI installer than a setup.exe, a .deb package includes a tree of files to copy into the filesystem, as well as a collection of pre- and post-installation hooks to run (among ...
Fox's user avatar
  • 8,193
27 votes
Accepted

Simulate the running of a "make install" -- a "dry run" or simulator utility?

GNU make has an option to do a dry-run: ‘-n’ ‘--just-print’ ‘--dry-run’ ‘--recon’ “No-op”. Causes make to print the recipes that are needed to make the targets up to date, but ...
Jeff Schaller's user avatar
  • 67.3k
26 votes
Accepted

How do I install non-free firmware in Debian 12 (Bookworm)?

Add the repository non-free-firmware to the APT software package sources in the /etc/apt/sources.list file, and do apt update with the root permission. For example, set the content of the file to this:...
Константин Ван's user avatar
24 votes
Accepted

Can installing an unknown deb package using sudo dpkg be harmful?

Yes, packages can contain “maintainer scripts” which are run before and/or after installation. You can see the scripts, if any, by extracting the control archive from the package: dpkg-deb --ctrl-...
Stephen Kitt's user avatar
23 votes
Accepted

Why did pip install a package into ~/.local/bin?

The short answer is that ~/.local/bin is the default value of Python's User Script Directory and that pip may install executables into this directory if it performs a user-local installation. It may ...
igal's user avatar
  • 9,916
23 votes

Why no permissions like Android or iOS?

By installing a program on Ubuntu am I explicitly giving that program full permission to read/write anywhere on my drive and full access to the internet? Yes, if you use sudo or the equivalent, you ...
user253751's user avatar
  • 2,266

Only top scored, non community-wiki answers of a minimum length are eligible