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)

13
votes
3answers
5k views

Reading package list takes forever

I've been trying to update my stuff on my machine, and it seems like it can't read my package list. It seems like every time i do the sudo apt-get install *something* && sudo apt-get update it ...
13
votes
1answer
349 views

What the meaning of package version number with word 'really' in the middle?

Command apt-cache show postgresql will listed this information in my machine (Saucy Salamander 13.10): $ apt-cache show postgresql Package: postgresql Priority: optional Section: database ...
13
votes
3answers
1k views

How to prevent so many instances of apt-check running?

I have an Ubuntu 12.04 server that just crashed because of a very obvious cause: 30+ of apt-check processes consuming all memory, the OOM killer kicking in, killing vital services. I'm not sure where ...
12
votes
6answers
43k 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 ...
12
votes
3answers
4k views

Why do some packages conflict with themselves?

After an upgrade to Oneiric I have had some troubles with the package manager (it wanted to remove half of my system, including libc6, zlib1g packages etc). During the fight with aptitude I've noticed ...
12
votes
2answers
34k views

Updating ubuntu server apt-get gives me - 404 Not Found [duplicate]

I'm trying to update a Ubuntu server and when I run apt-get update I get a number of errors like the examples below (note I added some space after http). Err http ://no.archive.ubuntu.com natty/main ...
12
votes
2answers
26k views

How do I bypass/ignore the gpg signature checks of apt?

All of the key-servers I visit are timing out. I need to install packages without checking the signatures of the public keys. Is there a way to bypass all the signature checks/ignore all of the ...
12
votes
2answers
16k views

What's the difference between apt-get install and apt-get build-dep?

On the apt-get man's page, one can find this: install pkg(s) This option is followed by one or more packages desired for installation. Each package is a package name, not a fully qualified ...
12
votes
2answers
8k views

How to use https with apt-get?

Does apt-get use https or any kind of encryption? Is there a way to configure it to use it?
12
votes
1answer
63k views

How to add a GPG key to the apt sources keyring?

Ubuntu Doc page says this: It is advisable that you add the Opera GPG key. wget -qO - http://deb.opera.com/archive.key | sudo apt-key add - Where do I add that? I want to take the advice ...
12
votes
3answers
21k views

How can you unhold (remove a hold on) a package?

I used synaptic to lock the version of pidgin-data - how can I change the status from hold back to normal, so that it gets upgraded properly? The PinningHowto says that doing an apt-get install ...
12
votes
1answer
32k views

How to solve configure: error: readline library not found?

I have an Ubuntu 10.04 LTS server with a minimal install that I want to compile postgres on. With the minimal install the server did not have gcc so I had to do an apt-get install gcc but now I keep ...
12
votes
9answers
76k views

apt-get update cannot find ubuntu servers

Running sudo apt-get update fails on my server (that has a 'net connection). Are the servers temporarily broken, or is my apt misconfigured and using old servers? In short, how do I fix this? Here's ...
12
votes
4answers
119k views

Unable to install files with apt-get: “unable to locate package” [duplicate]

I'm having issues with my ubuntu server version 12.04 installed on a HP550 laptop, when i try sudo apt-get install <programname>, e.g apache2 it will not work, saying E: Unable to locate package ...
12
votes
2answers
15k views

Why after fresh Ubuntu 12.04 installation update aren't being installed?

I've installed Ubuntu 12.04 on a computer. Everything is fine without update. Just after the installation, it was showing about 200 MB updates to download. Since then I'm trying to install all the ...
12
votes
2answers
5k views

How to forbid a specific package to be installed?

Can I configure Ubuntu to never install a specific package even if it is required by another package I install?
12
votes
1answer
4k views

How do I ignore a proxy if not available?

Following the instructions in Best way to cache apt downloads on a LAN?, I've set up a caching proxy in my local network. Since that machine is not always up, I'd like to be able to refresh the ...
12
votes
3answers
7k views

Why does update-mime-database complain about uri/rtspt and other unusual types?

When running update-mime-database - usually automatically launched by apt-get - why do I reliably get complaints like: Unknown media type in type 'all/all' Unknown media type in type 'all/allfiles' ...
12
votes
2answers
17k views

“The package lists or status file could not be parsed or opened”

Everytime I sudo apt-get update it always not complete and will say in the end E: Read error - read (5: Input/output error) E: The package lists or status file could not be parsed or opened. Same ...
12
votes
1answer
24k 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 ...
12
votes
4answers
13k views

Why does “tasksel” give an “aptitude failed” error?

The problem started in the following way. I was using tasksel from the terminal menu that it shows when I simply do sudo tasksel. I select Lamp Server from the list and started to install all packages ...
12
votes
2answers
556 views

Possible problems in mixed use of apt-get, aptitude and synaptic

Even though aptitude and synaptic are both front-end to the APT (and I myself stick only with apt-get), peculiarities in each of the available dpkg/APT frontends seem to cause problems and confusions ...
12
votes
2answers
2k views

Is Apt-get Update Lag Related to Google Chrome?

I have Google Chrome installed from the Google Chrome repository. When I run sudo apt-get update, I notice that getting headers relating to Google Chrome takes more time than is needed to get all the ...
12
votes
0answers
692 views

How can I make apt-get wait for another instance to finish? [duplicate]

Is there any way I can make apt-get wait for the other apt-get (or another package manager) process to finish? I know that, generally, apt-get can only run one instance at a time and if we try to run ...
11
votes
2answers
30k views

How can I Resolve dpkg dependency?

administrator@zlounes:~$ sudo apt-get dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct ...
11
votes
5answers
11k views

How to resolve E: Internal Error when using apt-get remove?

I use: apt-get remove To remove some software, but it displays: error:E: Internal Error, No file name for libssl1.0.0 . I also try this to resolve the error: wget ...
11
votes
4answers
14k views

bypass the yes/no prompt in apt-get upgrade

in order avoid typing out all of the apt-get commands when updating my computer i have made a simple alias command to do it. But i really want to be able to just type in my alias and let it do its ...
11
votes
2answers
1k views

Why does cups get updated so often? [closed]

Almost every time I get a software update, I see cups, or packages with cups in their names, being updated. Is that normal? It seems to have been happening for years, regardless of the Ubuntu ...
11
votes
5answers
22k views

How do I fix a “E: The method driver /usr/lib/apt/methods/http could not be found.” error?

I tried updating my packages from the terminal and this is what I got: $ sudo apt-get update E: The method driver /usr/lib/apt/methods/http could not be found. E: The method driver ...
11
votes
3answers
12k 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 ...
11
votes
4answers
31k views

Installing latest version of R-base

I have been unsuccessfully trying to install the latest version (2.15.2) of r-base. Apparently, R package Rcpp would not install for R version 2.14.1 - the version that installs for me. I am not ...
11
votes
2answers
32k views

Getting “'file' is different from the same file on the system” when I attempt to update through synaptic

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 ...
11
votes
3answers
3k views

What is the difference between apt and apt-get?

I read about the new fancy progress bar which was added to apt 1.0 in Softpedia and how to enable it here. However on running sudo apt-get update, I did not see the fancy progress bars. On reading the ...
11
votes
3answers
39k views

Problem installing Python-Dev

I am having trouble installing python-dev. It all started when I tried to install another Python package and got the error: SystemError: Cannot compile 'Python.h'. Perhaps you need to install ...
11
votes
2answers
3k views

Need to prevent a package from being installed [duplicate]

I have a package I do not want to be installed even if another needs it. Is there any way to "blacklist" a package from being installed even as a dependency of another? Can I overcome the fact that ...
11
votes
2answers
16k views

Apt “could not find a distribution template” error

When I attempt to install anything using apt-get I get the following error: Traceback (most recent call last): File "/usr/bin/add-apt-repository", line 60, in <module> sp = ...
11
votes
5answers
3k views

Syncing apt-get installations between multiple computers

Is there a way to synchronize my installations (and removals) between multiple PCs? Preferably with dropbox - since I'm already using that to keep my files in sync. I thought of an alias for the ...
11
votes
4answers
166k views

Apt-Get Update: failure to fetch; can't connect to any sources

I realize there are dozens of "apt-get update: failure to fetch" questions (I read through all I could find), but my present circumstance is unique to 12.04 and it affects all sources; not just ...
11
votes
4answers
5k views

downgrade ppa packages to versions available at a previous point in time

The backstory is that the normal Intel GPU drivers don't do the various OpenGL extensions that my hobby coding and some games want. So I have to install xorg-edgers and then its happy. However, last ...
11
votes
2answers
14k views

I can't add PPA repository behind the proxy

I'm trying to add the ppa repository (as a root) with the following command: export HTTP_PROXY="http://firstname.surname@xxx.com:my_pass@165.x.x.232:8080" add-apt-repository ppa:nilarimogard/webupd8 ...
11
votes
5answers
31k views

How to fix “-5 No address associated with hostname error” while updating?

I am getting this error frequently while updating Ubuntu 12.04 LTS. How can I fix it? Log is: Ign http://archive.scrapy.org precise/main Translation-en Fetched 6,620 kB in 1min 21s (81.2 kB/s) W: ...
11
votes
3answers
9k views

Apt-get install multiple packages without stopping

I am making a bash script that installs various packages using apt-get install. However, I notice that if there is a line that says: sudo apt-get install package1 package2 package3 and either of ...
11
votes
1answer
25k views

apt-get update not working (Not Found [IP: 91.189.92.201 80]) [closed]

When I try to run apt-get update I get the following error messages: I am using: Distributor ID: Ubuntu Description: Ubuntu 11.04 Release: 11.04 Codename: natty W: Failed to fetch ...
11
votes
1answer
36k views

What does apt-get --fix-missing do and when is it useful?

From the man page: -m, --ignore-missing, --fix-missing Ignore missing packages; if packages cannot be retrieved or fail the integrity check after retrieval (corrupted package files), hold back ...
11
votes
4answers
27k views

What is the command line equivalent for the update manager?

When I do sudo apt-get update sudo apt-get upgrade Sometimes the Ubuntu GUI Update Manager will still have some items left. e.g. “Complete Generic Linuux kernel”. I know there's also sudo apt-get ...
11
votes
2answers
19k views

Install MS Truetype Fonts system-wide for all users

I would like to install the MS Truetype Fonts that come through the package ttf-mscorefonts-installer, so I did: sudo apt-get install ttf-mscorefonts-installer Accepting the license, the process ...
11
votes
4answers
4k views

How to remove a package from the list of packages to be installed in apt-get?

After I tried installing vim using apt-get install, apt-get keeps giving me a segmentation fault while trying to install vim-runtime. I'm pretty sure it's just with that one specific package, and ...
11
votes
2answers
174 views

Does apt-cacher change packages access time?

I tried to remove the long time unused packages from apt-cacher archive using find: $ find /var/cache/apt-cacher -atime +5 -type f -name ".*deb*" | wc -l 8471 $ find /var/cache/apt-cacher -atime +9 ...
11
votes
0answers
19k views

How to fix “Duplicate sources.list entry” warning? [duplicate]

Every time I try to do some update (sudo apt-get update) it says: Reading package lists ... ready W: Duplicate sources.list entry http://archive.canonical.com/ubuntu/ need /partner amd64 Packages ...
10
votes
8answers
12k views

Failed to download repository information due to missing CDROM

When updating I got this error message: W:Failed to fetch cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)/dists/oneiric/main/binary-i386/Packages Please use apt-cdrom to make this ...