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)

12
votes
2answers
25k 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
9k views

apt changelog for to-be installed packages [duplicate]

GUI update-manager is able to show the "changelog" of packages to-be installed (not downloaded yet). I also found out how to provide the .changelog files in the right place for update-manager to show ...
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
7k 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
3answers
20k 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
31k 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
2answers
4k 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
3answers
10k views

/var/lib/apt/lists huge in 12.04

I noticed that /var/lib/apt/lists is HUGE. It's as large as 86MB. Which seems a little too big. Is this normal, if not. What should I do? Thanks
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
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
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
2answers
552 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
6answers
40k 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 ...
11
votes
2answers
29k 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
2answers
33k 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 ...
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
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
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
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
1answer
60k 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 ...
11
votes
9answers
73k 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 ...
11
votes
2answers
6k views

Seeing apt-get changelogs for to-be-upgraded packages

This question describes how to get the changelog for a given package. However, it's the whole changelog. What I'd like is a way to see what's changed in whatever I'm about to upgrade. For example, I ...
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
2answers
14k 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 ...
11
votes
2answers
16k 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 ...
11
votes
2answers
13k 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
30k 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
4answers
26k 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
18k 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
3answers
1k views

How do software updates work?

I would like to know how software updates work for my Ubuntu Server 10.10. I have been recommended to use apt-get install for installing new software and apt-get update for updating software for a ...
10
votes
2answers
1k views

What does this 'apt-get remove' instruction do?

What does the following code do? I found it on internet so I copied it and pasted it into terminal but when I installed a new kernel it only detects the old one. sudo apt-get remove --purge $(dpkg ...
10
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 ...
10
votes
3answers
5k 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 ...
10
votes
3answers
5k views

What is the equivalent apt-get or aptitude command

Is there an equivalent to the yum "whatprovides" option in apt-get? For example on CentOS yum whatprovides /usr/share/gdm/themes/TreeFlower/background.png Tells me ...
10
votes
4answers
11k views

Why does apt-get fail when automated with cron?

I'm trying to use cron to automate my system updates. You can see my crontab, commands, and resulting errors below. When I run upgrades.sh as root, the script runs fine. When cron runs it, apt-get -y ...
10
votes
4answers
29k 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 ...
10
votes
1answer
15k views

Force apt-get to overwrite file installed by another package

(I realize a similar question was asked before but the answers there don't handle these details) I'm on Ubuntu 10.10 and need both python2.5 (coming from deadnsakes -- ...
10
votes
9answers
65k views

How to fix a broken package, when “apt-get install -f” does not work?

I tried to install Scala with the typesafe stack and got into trouble. Now I cannot do much with apt (except update), the broken package seems to be impossible to remove/clean: Here's the result of ...
10
votes
3answers
37k 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 ...
10
votes
5answers
4k views

apt-get broken: No module named debian.deb822

sys.path: ['/usr/lib/update-notifier', '/usr/local/lib/python26.zip', '/usr/local/lib/python2.6', '/usr/local/lib/python2.6/plat-linux3', '/usr/local/lib/python2.6/lib-tk', ...
10
votes
1answer
467 views

What is apt-file update?

I was following these instructions and I have installed apt-file along with some other packages using: sudo apt-get install gnupg pbuilder ubuntu-dev-tools bzr-builddeb apt-file And now every time ...