Advanced Packaging Tool, the package manager for Debian-based distributions. It is also the most used tool for installing packages in Ubuntu. Questions about using any of the apt tools should use this tag.

learn more… | top users | synonyms (1)

384
votes
15answers
517k views

How to list all installed packages?

I'd like to output a list of all installed packages into a text file, so that I can review it and bulk-install on another system. How to do this?
294
votes
21answers
246k views

How can PPAs be removed?

I've added many PPAs using the add-apt-repository command. Is there a simple way to remove these PPAs? I've checked in /etc/apt/sources.list for the appropriate deb lines but they aren't there. This ...
226
votes
13answers
241k views

How do I resolve unmet dependencies after adding a PPA?

Occasionally, when I'm installing stuff, I get an error like the following: Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the ...
209
votes
11answers
153k views

“The following packages have been kept back:” Why and how do I solve it?

I just added a PPA repository for the development version of the GIMP, but I get this error The following packages have been kept back: gimp gimp-data libgegl-0.0-0 libgimp2.0 Why and how can I ...
206
votes
5answers
179k views

How to upgrade a single package using apt-get?

How do I update a single package? As far as man apt-get says apt-get upgrade doesn't take a package/list of packages as parameter: upgrade upgrade is used to install the newest versions of ...
165
votes
7answers
144k views

How do I fix a “Problem with MergeList” or “status file could not be parsed” error when trying to do an update?

The computer gave me this output in a window: E: Encountered a section with no Package: header E: Problem with MergeList ...
135
votes
15answers
412k views

Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?

I get this error when trying to use apt-get: E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/) is ...
120
votes
8answers
288k views

What does “sudo apt-get update” do?

I am wondering what sudo apt-get update does? What does it update?
108
votes
5answers
101k views

How can I accept the Microsoft EULA agreement for ttf-mscorefonts-installer?

After a recent update, ttf-mscorefonts-installer prompted me to accept its license agreement. For some reason my terminal will not allow me to accept, or for some reason I am pressing the wrong ...
108
votes
6answers
38k views

Is aptitude still considered superior to apt-get?

When I first started with Ubuntu using aptitude was the 'in-thing', with some stated improvements over apt-get. Am I correct in saying that apt-get has now 'caught up' with aptitude, and it makes ...
101
votes
8answers
103k views

How can I get apt to use a mirror close to me, or choose a faster mirror?

Downloading from the main Ubuntu archive is slow even when it's not release day, how can I get apt-get to automatically use a mirror that is close to me?
99
votes
4answers
73k views

What is “dist-upgrade” and why does it upgrade more than “upgrade”?

I was wondering why upgrade sometimes doesn't want to upgrade certain parts of the system, while dist-upgrade does. Here's an example after running update: apt-get upgrade: ...
92
votes
1answer
137k views

Installed Teamviewer using a 64-bits system, but I get a dependency error

I was trying to install Teamviewer, but I was getting a dependency error. I tried to install them, but with no luck. I'm getting this error: Unpacking teamviewer (from teamviewer_linux_x64.deb) ... ...
88
votes
6answers
52k views

What is the easiest way to resolve apt-get BADSIG GPG errors?

I frequently cross this issue, and always have to google for an answer. Does anyone have a permanent fix for BADSIG errors from apt-get? W: GPG error: http://download.virtualbox.org lucid ...
83
votes
5answers
116k views

How can I fix a 404 Error when using a PPA or updating my package lists?

PPA seems to be constantly offline. Whenever I use sudo apt-get update, this error is shown: W: Failed to fetch http://ppa.launchpad.net/ 404 Not Found How do I fix these errors?
71
votes
8answers
82k views

How do I fix the GPG error “NO_PUBKEY”?

I added some extra repositories with the Software Sources program. But when I reload the package database, I get an error like the following: GPG error [...] NO_PUBKEY [...] I know I can fix ...
69
votes
9answers
40k views

Trouble downloading packages list due to a “Hash sum mismatch” error

When I check for updates, I get a "Failed To Download Repository Information" error. This is what comes up under details: W: Failed to fetch ...
69
votes
5answers
86k views

How to Downgrade a Package via apt-get?

How to downgrade a package to an older version via apt-get?! Another tools are also accepted but apt-get is preferred.
58
votes
3answers
44k views

How do I get the source code of packages installed through apt-get?

I am assuming that all application installed through apt-get are open source; but for those that are available in that manner, where can I get the source code for these applications as well as update ...
58
votes
1answer
52k views

What is the difference between apt-get update and upgrade?

What is the difference between apt-get update and apt-get upgrade? Which should I run first? Do any of them automatically run the other?
55
votes
23answers
99k views

How to fix Duplicate sources.list entry?

I keep getting this warning whenever I try to run sudo apt-get update. W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ precise-updates/main i386 Packages ...
55
votes
2answers
40k views

How can I see all versions of a package that are available in the archive?

Is there a way I can see all the versions that are in the archives that I have configured in sources.list. I can see the last version of each archive with "apt-get policy", but how can I see all? Is ...
54
votes
6answers
69k views

How do you select the fastest mirror from the command line?

I want to update my sources.list file with the fastest server from the command line in a fresh Ubuntu Server install. I know this is trivially easy with the GUI, but there doesn't seem to be a simple ...
51
votes
1answer
95k views

How do I search for available packages from the command-line?

I have successfully installed some packages using the command line 'sudo apt-get install ...' when I have known in advance that those packages are available. But how can I search for or get a list of ...
49
votes
4answers
93k views

Will apt-get dist-upgrade upgrade my system to newer version?

I am using Ubuntu 12.04 right now. If I use command sudo apt-get dist-upgrade will that upgrade my ubuntu to 12.10? Does that mean I am not using the LTS version after that? I don't want to use Ubuntu ...
45
votes
10answers
4k views

Can't update because the word prox* is blocked

I live in Ethiopia and the government blocks all urls with the word "proxy" in them. I couldn't use that word in the title above because that would make the url contain the word proxy. When I ...
43
votes
2answers
14k views

What is the difference between dpkg and aptitude/apt-get?

When installing a software via dpkg -i packageA.deb, will the dependencies required by packageA be downloaded and installed automatically? How is this different from using apt-get or aptitude?
43
votes
3answers
14k views

How do I find the reverse dependency of a package?

I was wondering if it was possible to check what package another package is a dependency of. For example, jetty is mysteriously installed and running on my system and I'd like to check whether it is ...
41
votes
7answers
22k views

Is it possible to undo an apt-get install command?

I installed Carpadio on my Xubuntu install (a Live USB), which then pulled like over 50 packages from, I suppose, the Ubuntu side of the repository. Now I would like to undo this. However for all my ...
41
votes
7answers
21k views

Is it possible to get a list of most recently installed packages?

Is it possible to get a list of packages that were most recently installed through apt-get?
40
votes
5answers
92k views

How to uninstall LibreOffice?

Which package should I remove to completely remove libreoffice? I have no need for office tools. That's the one gripe I have with package managers like apt, there's no simple way to perform the ...
40
votes
1answer
76k views

How do “apt-get clean” and “apt-get clean all” differ?

What, if anything, is the difference between this command: sudo apt-get clean And this command: sudo apt-get clean all On my Lubuntu 12.04 system, simulating these commands reveals their ...
40
votes
5answers
11k views

apt-get update only for a specific repository

When I add a ppa and I want to install some of its content is quite annoying to re-update all my apt list using apt-get update Is it instead possible to only sync the content of a given repository?
38
votes
2answers
2k views

“Do you want to continue[Y/n]?” Why the upper case?

I am new to Ubuntu and some little thing start to bug me. Such as when trying to install a program, Ubuntu asks, Do you want to continue[Y/n]? What is bugging me is why the letter "Y" is upper ...
38
votes
4answers
14k views

How can I remove the Translation entries in apt?

This is the output of aptitude update: Ign http://archive.canonical.com natty InRelease Ign http://extras.ubuntu.com natty InRelease Ign http://dl.google.com stable InRelease Ign ...
38
votes
10answers
16k views

How to find manually installed packages?

I installed a plain Ubuntu 10.10 on my computer and installed some software via apt-get. Last week I managed to break everything and just started from scratch, and I need to reinstall my software. Is ...
37
votes
5answers
26k views

Why was the virtualbox package removed from the 14.04 repository?

I'm having some problems trying to run my Windows XP virtual machine after upgrading to Ubuntu 14.04 today. When I tried to start it a message dialog was displayed saying that the kernel drivers ...
37
votes
6answers
17k views

Where can I look up my update history?

Is there a place where I can look what updates I've installed?
36
votes
2answers
83k views

How do I install svn?

I am trying to install svn and am running into issues. The command I am running is sudo apt-get install svn. When I run this, I get the error "Unable to locate package svn". Why is this? How do I ...
36
votes
3answers
24k views

Show apt-get installed packages history via commandline?

Is there a way to show the history of installed packages that were installed by apt-get via commandline?
35
votes
3answers
22k views

How can I restore configuration files?

I would like to restore LightDM to its default state, because for some reason /etc/lightdm/unity-greeter.conf is now an empty file. Deleting /etc/lightdm/unity-greeter.conf and then running sudo ...
34
votes
4answers
94k views

Unable to correct problems, you have held broken packages

After upgrading from 10.04 to 12.04 I am trying to install different packages. For instance ia32-libs and skype (4.0). When trying to install these, I am getting the 'Unable to correct problems, you ...
34
votes
3answers
26k views

Why am I getting authentication errors for packages from an Ubuntu repository?

I'm experimenting with VPNs, so I wanted to install pptpd. john@desktop:~$ sudo apt-get install pptpd [sudo] password for john: <snip> The following extra packages will be installed: bcrelay ...
34
votes
1answer
7k views

How do I make apt-get install less noisy?

If I use apt-get install -qq mono-devel, I expect it to be quiet except for errors, according to the help: -qq No output except for errors Instead I get: Extracting templates from packages: 100% ...
33
votes
6answers
37k views

My /boot partition hit 100% and now I can't upgrade. Can't remove old kernels to make room

My first issue was when i tried to apt-get update/upgrade. On upgrade I get the following error: You might want to run 'apt-get -f install' to correct these. The following packages have unmet ...
33
votes
3answers
29k views

How can I install a package without installing some dependencies?

I'm trying to install the package LaTeXila, and the output looks like this: $ sudo apt-get install latexila --no-install-recommends Reading package lists... Done Building dependency tree ...
32
votes
8answers
39k views

How to overcome signature verification error?

I ran this command in the Terminal: sudo apt-get update Updating ends with the following error report: W: A error occurred during the signature verification. The repository is not updated and the ...
32
votes
2answers
34k views

What is difference between the options “autoclean”, “autoremove” and “clean”?

apt-get has a few options which looks the same to me: autoclean, autoremove and clean. What do each of them do?
32
votes
3answers
66k views

What is the Difference Between `apt-get purge` and `apt-get remove`? [duplicate]

Possible Duplicate: What is the correct way to completely remove an application? Is there any difference between sudo apt-get purge <package-name> and sudo apt-get remove ...
32
votes
8answers
13k views

Generating list of manually installed packages and querying individual packages

I'd like to get a list of packages installed manually by apt or aptitude and be able to find out whether a foobar package was installed manually or automatically. Is there any neat way of doing that ...