99
votes
How to install local .deb packages with apt-get
Yes, the command you proposed is correct.
sudo apt-get install ./package.deb
or
sudo apt install ./package.deb
will install the package you got from another source than APT and same time use APT ...
79
votes
apt says packages have been kept back, what to do?
Quick & EASY Solution:
I have had the same issue, several times. Do NOT do sudo apt-get dist-upgrade first.Very important. It can make your system very unstable, programs can crash and you can ...
76
votes
Accepted
How can I get past a “Repository is not signed…” message when attempting to upgrade Kali Linux from a mounted disk image?
According to the Debian man page for apt-get, you can use the --allow-unauthenticated option like this:
apt-get update --allow-unauthenticated
As the man page entry for --allow-unauthenticated ...
62
votes
Accepted
apt-get install is not working in WSL
Executed below 2 commands and then I was able to install the packages.
sudo apt update
sudo apt install python3-pip
Source - https://linuxize.com/post/how-to-install-pip-on-ubuntu-18.04/
25
votes
How can I get past a “Repository is not signed…” message when attempting to upgrade Kali Linux from a mounted disk image?
You should tell apt it's a trusted source:
deb [trusted=yes] file:/media/cdrom0 kali-rolling main contrib non-free
24
votes
apt-get update issue in Kali
if you encounter any 404 error messages when trying to download the keyring, please try the following:
Update 2022
for convenience reasons: the current keyring file changed, use the following commands:...
22
votes
install mysql-client-5.7 on debian buster
Debian stopped packaging mysql-client as of buster. You can use apt-get install default-mysql-client which will install mariadb-client-10.3. MariaDB is a fork of MySQL. The client can still be started ...
18
votes
Accepted
apt-get update issue in Kali
Yes, there appears to be issues with Kali Linux WSL (not downloaded from Microsoft Store).
The Kali archive keys appear to be missing and cannot be installed using apt-add key since it relies on GnuPG,...
18
votes
Pop OS 22.04 can't update gir1.2-mutter-10, libmutter-10-0
Try these commands
sudo dpkg --configure -a
sudo apt --fix-broken install
15
votes
What is the -y flag in the `apt install` command?
Am I missing something?
When you invoke apt install … the command is apt, not install. man install will show you the manual for install which is a different command. The right place to start is man ...
15
votes
Debian apt-get update 404 not found error
I ran into this same issue but didn't want to go through the work of upgrading versions, so simply updated the mirror link in my sources.list from mirrordirector.raspbian.org to legacy.raspbian.org
...
11
votes
apt says packages have been kept back, what to do?
What does this mean?
The following packages have been kept back:
The answer is here
This means that there are new versions of these packages which will not be installed for some reason. Possible ...
11
votes
how to install qt5 in debian 11 stable?
I was able to solve this by doing sudo apt install qtbase5-dev, then ./configure worked. It was completely non-obvious that the package name would be qtbase5-dev, since there's absolutely no way I ...
10
votes
apt says packages have been kept back, what to do?
This article nicely summarizes why this happens:
If the dependencies have changed on one of the packages you have installed so that a new package must be installed to perform the upgrade then that ...
10
votes
apt-get install is not working in WSL
System: Windows 10 Enterprise, Ubuntu Windows Subsystem for Linux.
I ran this command:
sudo apt-get install dos2unix
I had this error:
E: Unable to locate package dos2unix
I then ran:
sudo apt-...
10
votes
Unmet dependencies for PostgreSQL 10 under Ubuntu 16.04.5 LTS (xenial)
On the PostgreSQL: Linux downloads (Ubuntu) page, you chose "Bionic (18.04)"1, which does not match your actual Ubuntu version, "Xenial (16.04)".
Assuming this is the only error you made while ...
10
votes
Accepted
What's the difference between apt full-upgrade and apt upgrade when this site says to use both commands?
The common difference between upgrade and full-upgrade is that a full-upgrade will remove the installed packages if that is needed to upgrade the whole system.
I will do a full-upgrade if I am ...
9
votes
Accepted
Since when apt install can be used over apt-get install?
Since Jessie — the now stable release (Debian 8.0).
Note that this wrapper, while useful, does not yet cover 100% of what older apt-whatever programs do; namely there's no apt cache currently.
9
votes
libssl-dev dependency issue on Ubuntu 18.04
I managed to fix the issue by running these commands:
sudo apt install --reinstall libssl1.1=1.1.0g-2ubuntu4.3
sudo apt install libssl-dev
Then I reinstalled the few packages that were uninstalled ...
8
votes
Accepted
List all packages from a repository
The packages list are in /var/lib/apt/lists/.
Check the name of the repository there.
For example, if the repository is called ppa.launchpad.net_autostatic_doubango then:
grep ^Package: /var/lib/...
8
votes
apt says packages have been kept back, what to do?
From this Unix SE answer:
Firstly as mentioned above please DO NOT dist-upgrade any production system! While dist-upgrading will "solve" kept back packages it is definitely not the solution to this ...
8
votes
Installing Microsoft ODBC driver to Debian
I followed the directions on the Microsoft documentation using python:3.6-slim and it appeared to install correctly with a few caveats
You'll need these packages to follow the directions
apt-get ...
8
votes
Can't update npm to newest version on Ubuntu
This is a result of: https://github.com/npm/cli/issues/2599
If you're happy using npm version 6 (current lts) then you can just run:
sudo npm install -g npm@latest-6
to install the latest version 6, ...
7
votes
apt-get update reports GPG errors
Debian has deployed new keys to sign their packages and lists, to solve the error you need the latest version of "debian-archive-keyring". upgrade that package.
# apt-get install debian-archive-...
7
votes
Accepted
Failed to fetch error on apt-get update
Command apt-get update does not update the system, but merely the list of available packages. So it's not trying to fetch the package, but a list of packages from that URL. You need to check file /etc/...
7
votes
Accepted
Debian apt-get update 404 not found error
Your version of Debian was obsoleted in 2017 or thereabouts. The Raspberry Pi Foundation doesn't support it anymore.
The simplest way is to start with the latest Raspberry Pi OS, reapply whatever ...
7
votes
E: Unable to locate package linux-tools-5.4.0-77-generic on WSL Debian 11
This turns out to be even easier in Debian than in Ubuntu. Simply:
sudo apt install usbip hwdata usbutils
There's no need to modify sudoers with visudo since Debian installs usbib to /usr/sbin (...
6
votes
Accepted
Error after running Kali Linux update command
Your archive-keyring package is out of date, so you need to add the new repository key to your system:
wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add
6
votes
Accepted
How can I fix error during install a package with APT in Ubuntu
This commands helps me:
1) Remove PHP and all his libraries and files
sudo apt-get purge php7.*
2) Install PHP again
sudo apt-get install php7.2
6
votes
ubuntu apt - why are the respositories accessed over HTTP?
Most of the time the files are downloaded from a mirror and not from the ubuntu servers, so even if the ubuntu site uses HTTPS, you are going to be downloading files from sites like http://ubuntu.unc....
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
apt × 478linux × 206
debian × 188
ubuntu × 174
package-management × 39
dpkg × 39
apt-get × 37
installation × 29
aptitude × 25
kali-linux × 22
linux-mint × 21
updates × 17
packages × 17
python × 14
bash × 12
repository × 12
docker × 11
upgrade × 11
ubuntu-16.04 × 9
dependencies × 9
command-line × 8
terminal × 8
windows-subsystem-for-linux × 8
gnupg × 8
ssh × 7