Hot answers tagged

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 ...
Melebius's user avatar
  • 1,827
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 ...
Gregory Smitherman's user avatar
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 ...
Giacomo1968's user avatar
  • 53.7k
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/
Devoloper250's user avatar
  • 1,421
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
oroverdino's user avatar
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:...
kantholy's user avatar
  • 341
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 ...
earboxer's user avatar
  • 321
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,...
kush's user avatar
  • 196
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
kkoceB's user avatar
  • 181
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 ...
Kamil Maciorowski's user avatar
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 ...
pjpscriv's user avatar
  • 261
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 ...
GAD3R's user avatar
  • 3,730
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 ...
xdavidliu's user avatar
  • 710
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 ...
Karl Bartel's user avatar
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-...
ProtoHumanCam's user avatar
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 ...
Deltik's user avatar
  • 19.5k
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 ...
John's user avatar
  • 48k
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.
kostix's user avatar
  • 2,826
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 ...
Benji Collins's user avatar
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/...
jcbermu's user avatar
  • 17.4k
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 ...
Brian Heese's user avatar
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 ...
nijave's user avatar
  • 409
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, ...
RoperMaps's user avatar
  • 181
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-...
Jasen's user avatar
  • 1,516
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/...
Konrad Botor's user avatar
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 ...
Journeyman Geek's user avatar
  • 128k
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 (...
NotTheDr01ds's user avatar
  • 19.7k
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
vautee's user avatar
  • 762
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
Nazarko's user avatar
  • 244
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....
jcbermu's user avatar
  • 17.4k

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