Questions tagged [apt]

The Advanced Packaging Tool (APT) is a package management system for Debian, and a set of tools for manipulating that system.

apt is a command-line tool used by many Linux users to manage their packages. It is used to install, update and remove packages. The most used are apt-get and apt-cache.

The most used commands are:

  • apt-get [options] install <package> which installs a program.
  • apt-cache [options] search <package> which searches for a program in case you don't know the exact name, or want to check version or any other property of the program. This is not modifying the system.
  • apt-get [options] remove <package> removes a package from the system.

Note: Most operating systems require sudo for the some commands (like the installation of packages) this is only a security measure.

503 questions
604
votes
12 answers

Automatically answer 'Yes' when using apt-get install

Is there a way to make apt-get install automatically choose "yes" upon the Do you want to continue [y/N]? confirmation dialog?
mistiry
  • 7,037
208
votes
4 answers

How to install local .deb packages with apt-get

Is there a way to install packages store on your HD with apt-get, like apt-get install ./package.deb? If not, how to handle the dependencies in a very very easy way?
Louis
  • 2,770
98
votes
5 answers

Aptitude vs. apt-get: Which is the recommended (aka the "right") tool to use?

Some time ago I read that aptitude is the preferred tool for installation on Debian-based systems. But when you search around on how to administer a Debian-based system, then aptitude is rarely mentioned. Most people seem to prefer apt-get - and…
60
votes
3 answers

How can I get past a “Repository is not signed…” message when attempting to upgrade Kali Linux from a mounted disk image?

I am trying to upgrade Kali Linux from 2017.2 to 2018.2 using an iso mounted in the Kali Virtual Machine. So, what I did was I edited my sources.list file to: deb file:///media/cdrom0 kali-rolling main contrib non-free and commented other lines…
DeshBhakt
  • 817
59
votes
8 answers

apt says packages have been kept back, what to do?

The output of apt-get upgrade is: The following packages have been kept back: certbot python-acme python-certbot python-certbot-apache python-cryptography python-openssl What does this mean? Should I take action? If so, what?
50
votes
7 answers

apt-get install is not working in WSL

Windows 10 Ubuntu bash failing to install packages. Whenever I try install new package with below command, getting same error. root@VASI-HOME-PC:/mnt/c/Users/vadap# apt-get install atom Reading package lists... Done Building dependency tree Reading…
34
votes
11 answers

apt-get update issue in Kali

I'm running Kali Linux in WSL2. It's a new installation (using wsl --install) but when I try to apt-get update I get the following error: W: An error occurred during the signature verification. The repository is not updated and the previous index…
29
votes
2 answers

How to use Latest Python 2.7.x "The Right Way" on Ubuntu 12.04 LTS?

My project needs to stay current on Python releases, but 12.04LTS is currently stuck on 2.7.3, even though 2.7.5 is out now. Is there a way I can stay more current without manually compiling? We're required to stay on package-based installation for…
Will
  • 403
29
votes
2 answers

How can I check the version of packages to be installed with apt-get?

After running apt-get upgrade, I get a list of the packages that will be upgraded. I would like to know the version number for one of these packages. (Not the current one but the one that will be installed). How do I get the version number of the…
marjasin
27
votes
3 answers

Ignore all dependencies for a specific package with apt-get

This is a very specific question which google didn't help answering. I'm running Ubuntu 13.04 with apt 0.9.7.7ubuntu4 for amd64 compiled on Oct 3 2013 15:25:56. I want to install Erlang from a .deb package, but I don't want to pull all of its…
android
  • 371
25
votes
2 answers

How do I list all packages from unstable / experimental?

I'm running a Debian testing system with some packages installed from unstable or experimental, using apt pinning. How can I list all packages that come from unstable or experimental? I'd like to use apt, but I have aptitude and synaptic installed…
21
votes
5 answers

Ignore packages that are not currently installed when using "apt-get remove"

I have a scenario where I'd like to remove a set of packages that may or may not be installed, and I'd like apt-get to remove those that are and silently ignore those that aren't. Something like: apt-get remove foo bar baz which, if foo and bar…
19
votes
4 answers

How to download .deb package and all dependencies?

For all answers i found about this topic, the solution was to create, in a certain computer A where i need to install the package, a file containing all dependencies it needs and then downloading it in another computer, let's call it B. The thing…
18
votes
1 answer

install mysql-client-5.7 on debian buster

I would like to know how can I install mysql-client-5.7 on debian buster using apt-get since it is not already present in Debian Buster Package Repository? Some Background info: I want to install mysql-client-5.7 on AWS Codebuild (remote server)…
17
votes
4 answers

Pop OS 22.04 can't update gir1.2-mutter-10, libmutter-10-0

For like two weeks now I see that gir1.2-mutter-10 and libmutter-10-0 have updates that are held back, but any attempt to install them fails. Even more, when simply trying to install them, I get error messages that are simply ridiculous. Apt claims…
1
2 3
33 34