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

learn more… | top users | synonyms (1)

167
votes
13answers
144k views

How do I resolve unmet dependencies?

How do I resolve unmet package dependencies? 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 ...
108
votes
8answers
103k 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 ...
58
votes
5answers
60k views

How can I fix a 404 Error when updating packages?

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?
97
votes
14answers
265k 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 ...
77
votes
6answers
40k 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 ...
47
votes
7answers
48k 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 ...
82
votes
7answers
72k 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?
71
votes
9answers
35k views

How to prevent updating of a specific package?

Because of bug #693758 I'd like to prevent apt-get upgrade and Update Manager from updating the "libgtk2.0-0" package. How can this be achieved?
22
votes
23answers
48k 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 ...
183
votes
16answers
126k 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 ...
81
votes
5answers
72k 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 ...
3
votes
0answers
2k views

How do I fix “malformed line” errors in sources.list? [duplicate]

Possible Duplicate: How do I remove a malformed line from my sources.list? I had problems with my movie player. The sound was fine but the picture seemed to hesitate or stick or pause ...
220
votes
12answers
273k 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?
25
votes
10answers
72k views

'apt-get' does not work with Proxy

For the command sudo apt-get update I get following error: W: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/maverick-updates/multiverse/binary-i386/Packages.gz 407 Proxy ...
76
votes
4answers
43k 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: ...
9
votes
2answers
30k views

“'file' is different from the same file on the system”

Encountered an error while updating through Synaptic Manager. Subsequent updates gave the error at the bottom of the output. I'm a noob so any help is appreciated. al@al:~$ sudo apt-get -f upgrade ...
26
votes
5answers
5k views

the size of apt-get update lists is too big

This question contains circumventions for an bug in Ubuntu: Bug #1001780 “apt-get update size is too big” : Bugs : Launchpad itself, as well as some general advice on saving bandwidth when doing ...
10
votes
4answers
3k views

Update Manager Error - Authentication Error

When I run Update Manager I get this error: This is what the error box says: W: A error occurred during the signature verification. The repository is not updated and the previous index files ...
2
votes
7answers
3k views

Permission denied, are you root?

I get this error whenever I try to install programs using the terminal: home@ubuntu:~$ apt-get install myunity E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable ...
37
votes
5answers
46k 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 ...
11
votes
4answers
68k views

how to install packages with apt-get on a system connected via proxy?

I've got an Ubuntu 11.10 system connected via a proxy to the internet, and I would like to install packages via apt-get. When I try to do that I get this error message: sudo apt-get install ...
19
votes
8answers
66k views

apt-get update fails to fetch files, “Temporary failure resolving …” error

Err http://archive.canonical.com natty InRelease Err http://security.ubuntu.com oneiric-security InRelease Err http://extras.ubuntu.com natty InRelease ...
23
votes
6answers
23k 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 ...
24
votes
4answers
12k views

How to set up an APT repository?

I would like to set up an APT repository on a server that will provide a couple of packages. Is there a way to set one up without installing any software on the server? How do the files have to be ...
25
votes
1answer
8k views

create a .deb Package from scripts or binaries

I searched for a simple way to create .deb Packages for things which have no source code to compile (configs, shellscripts, proprietary software). This was quite a problem because most of the package ...
27
votes
2answers
50k views

What does Package <package> has no installation candidate mean?

What does the above Error mean? What is an installation candidate? I was trying to do sudo apt-get install munin-memcached and I get this message: Reading package lists... Done Building ...
14
votes
9answers
23k views

Unable to install Skype on 64bit Ubuntu

I am receiving the following message while I am trying to install Skype: nidhin@ubuntu:~$ sudo apt-get update nidhin@ubuntu:~$ sudo apt-get install skype Reading package lists... Done Building ...
12
votes
9answers
16k views

Dropbox install stuck at 99%, how do I fix it? (and any dpkg errors)

I tried to install Dropbox using How to install Dropbox?, or with apt-get install nautilus-dropbox. Dropbox loads until 99% and then hangs, causing the system to go to 100% cpu usage. If I reboot or ...
89
votes
6answers
28k 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 ...
18
votes
4answers
53k 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 ...
13
votes
8answers
47k views

407 Proxy Authentication Required

When I try to install a software using Ubuntu Software center I get: Failed to download repository information Check Your Internet connection When I try to do a apt-get install something, I get: ...
11
votes
1answer
17k views

Ubuntu not booting: “Could not write bytes: broken pipes”

The problem When I boot Ubuntu 11.10, the boot process hangs, before even getting to the login screen of the display manager, with the message Could not write bytes: broken pipes at the top of the ...
2
votes
2answers
996 views

“Unable to locate package” for all packages

When I try to install any package through the command line, I get an error. Can anyone help me on this? $ sudo apt-get install <package> Reading package lists... Done Building dependency tree ...
4
votes
6answers
16k views

Package system is broken. How to fix it?

I just recently bought an arduino and requires gcc-avr/avrdude to compile the software. I installed avr for another microprocessor component a while ago but is obviously an outdated version (gcc ...
4
votes
3answers
7k views

Apt-get update with an @ in password error

I want to update ubuntu 11.04 throught apt-get. So I added the following lines in apt.conf export http_proxy=http://username:password@proxyserver.net:port/ export ...
7
votes
2answers
4k views

dpkg error: “trying to overwrite file, which is also in…”

For example: $ sudo apt-get install curl Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The ...
46
votes
5answers
47k 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.
48
votes
1answer
55k views

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

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

How do I cherry pick packages from a PPA?

Is there a way to cherry pick packages from a ppa repository you add? That is, to exclude some from updating while including others? For example, I want just the chromium-browser package from this ...
21
votes
12answers
41k views

Cannot install ia32-libs

I don't know why I can't install ia32-libs. It claims for a dependency that cannot be found on repos. junior@mediacenter:~$ sudo apt-get install ia32-libs Reading package lists... Done Building ...
2
votes
2answers
31k views

Ubuntu 13.04 - installation Nvidia driver

I've installed Ubuntu 13.04 on my laptop HP 6720s with video card Intel 965 chipset Intel gma x3100. After the boot the classic purple screen appear and before the login page the screen become black ...
10
votes
1answer
3k views

How to solve “Extra junk at end of file” when using apt?

I'm trying to configure some proxies for a guest virtual machine and now I'm getting: sudo apt-get update E: Syntax error /etc/apt/apt.conf.d/95proxy:4: Extra junk at end of file The content of the ...
1
vote
0answers
3k views

Update manager generates 404 error while attempting update. Will not update [duplicate]

Possible Duplicate: How can I fix a 404 Error using a PPA? While running update manager in Ubuntu 11.10 Oneric Ocelot I receive this list of errors. > W:Failed to fetch > ...
32
votes
4answers
65k 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 ...
13
votes
4answers
30k views

How can I reinstall Apache HTTPD after deleting some of the configuration files?

I recently was messing around with my Apache config and wanted to reinstall so I could start from fresh. I followed some forum posts about reinstalling the apache2 package and this ended up deleting ...
17
votes
1answer
3k views

Why does my 64-bit system look for 32-bit repos?

I've got a 64-bit 12.10 install on my Laptop. When running apt-get update, it downloads package lists for 32-bit packages (as well as source and 64-bit package lists). Why does it look for 32-bit ...
10
votes
2answers
5k views

APT wedged by kernel version mismatch

Apt is seemingly unable to do anything useful for me, repeatedly giving messages of this form: dpkg: dependency problems prevent configuration of linux-server: linux-server depends on ...
8
votes
3answers
4k views

How to bypass/remove/disable the untrusted package authentication

First the image: then me saying "Say What!!.. How the..What the..??". Basically I am stunned. How can I disable/bypass/remove/explode the option for the untrusted packages not letting me install ...
16
votes
0answers
6k views

How to find and delete duplicated sources list entries? [duplicate]

Is there a command line to find and delete duplicated entries in the /etc/apt/sources.list file? or is this possible via synaptic perhaps?
91
votes
9answers
4k views

What's the difference between package managers?

I know Ubuntu/Kubuntu has several programs that can be used to install packages, such as apt-get, aptitude, and synaptic (and perhaps others). What are the differences between them, and which one is ...