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)

11
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?
11
votes
5answers
2k 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
11k 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
2answers
14k 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
3k 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
168 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
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 ...
10
votes
3answers
45k views

apt-get install openjdk-7-jdk doesn't install javac. Why?

The program 'javac' can be found in the following packages: * openjdk-6-jdk * ecj * gcj-4.4-jdk * gcj-4.6-jdk * gcj-4.5-jdk * openjdk-7-jdk Then I run sudo apt-get install openjdk-7-jdk and ...
10
votes
2answers
12k 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 ...
10
votes
3answers
4k 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
8answers
55k 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
15k 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 ...
10
votes
2answers
6k 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?
10
votes
1answer
10k views

Where do packages installed/upgraded with APT get stored?

As time goes by we tend to do apt-get install and add or replace software. Are these archived in some form or do they get auto-cleared after installation? And if it doesn't get auto-cleared, it would ...
10
votes
2answers
20k 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 ...
10
votes
1answer
12k 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
2answers
4k views

apt: ureadahead will be reprofiled on next reboot

I typed this command to remove a package and related configuration files: sudo apt-get --purge remove supervisor The command ended without errors but I got this message: ureadahead will be ...
10
votes
1answer
586 views

Authentication problem with my PPA

I created a package and uploaded it to my PPA. After it got built, I went to install it, but was faced with this message: ******@******-laptop:~$ sudo apt-get install stackapplet Reading package ...
10
votes
1answer
14k 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 = ...
10
votes
5answers
3k 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
4answers
4k 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 ...
10
votes
2answers
15k views

apt-get update stuck on “Waiting for Headers” when using Windows XP ICS

I'm setting up a Maverick server on a spare PC. The install completes fine and the system boots up into the shell. However, when I try to do a apt-get update , apt hangs on almost every entry with the ...
10
votes
5answers
38k views

Solving the Ubuntu 12.04 Update Error: (-5 - No address associated with hostname)

Problem Description: Each time i try to download the updates for my operating system (Ubuntu 12.04) i get the following list of error messages: W:Failed to fetch ...
10
votes
5answers
2k views

How can I revert a config file back to the originally installed version after I have edited it?

I want to revert a file in /etc/ back to its originally-installed form. I have edited the file since it was installed. How can I revert this config file? Apt is smart enough not to overwrite edited ...
10
votes
1answer
18k 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 ...
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 ...
10
votes
3answers
475 views

How can I force apt to optimize the dependency tree for minimal download size?

Some background information: As you may know, in a Debian package, there may be alternative dependencies, written in the CONTROL file as Depends: apache2|something-else, for example. How does apt ...
10
votes
0answers
10k views

How do I unlock “/var/lib/apt/lists/”? [duplicate]

I was installing an item using package manager when it froze. I used Alt + F2 to close it. Afterwards, whenever I try to install anything via apt-get, the terminal reads: E: Could not get lock ...
9
votes
3answers
170k views

Setting proxy from terminal [duplicate]

Possible Duplicate: apt-get does not work with proxy I have tried changing my proxy settings in a terminal as: export HTTP_PROXY=http://10.1.3.1:8080 and export ...
9
votes
6answers
32k 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 ...
9
votes
2answers
24k 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 ...
9
votes
4answers
2k views

How to know last time apt-get was executed?

I known that the command to update the repository lists is apt-get update. How to check if it has been executed today or in the last 24 hours? I do not known if should check some file timestamp. Or ...
9
votes
4answers
10k 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 ...
9
votes
2answers
3k views

Did I accept the ttf-mscorefonts-installer EULA?

The general answer to questions about missing video codecs is to install ubuntu-restricted-extras. But that metapackage also includes the ttf-mscorefonts-installer which requires acceptance of a EULA ...
9
votes
2answers
9k views

Installing MariaDB when Apt reports MariaDB has unmet dependencies or broken packages

I have tried everything to install MariaDB on this clean Ubuntu installation but I keep getting this error, Some packages could not be installed. This may mean that you have requested an impossible ...
9
votes
3answers
19k views

Determine destination location of apt-get install <package>?

For some applications its fairly easy enough to locate where the application was installed to using the "which" command. However, some applications such as Tomcat are a little out of my league to ...
9
votes
2answers
11k 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 ...
9
votes
4answers
2k views

How can I configure apt-get to clean automatically after every install

Is there any way do apt-get clean after apt-get install automatically, like in other distros?
9
votes
3answers
27k 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 ...
9
votes
2answers
2k views

Need to prevent a package from being installed

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

Get package description using apt

How do I get the prosaic description of a package using apt? I tried both apt-cache show and apt-cache showpkg but no luck. Using synaptic it's easy as typing the package name and the description is ...
9
votes
1answer
729 views

How can I get “delta” packages to optimize apt-get upgrade downloads?

I have recently installed Fedora in VirtualBox and noticed that they use Delta-RPM packages, which help dramatically reduce downloading sizes. Also I heard that Gentoo uses some delta packages. Would ...
9
votes
2answers
451 views

Will apt-get download the same version of a package manually added to /var/cache/apt/archives?

Imagine, I have all packages to install, say, ddd. If I copy all ddd packages to /var/cache/apt/archives and run sudo apt-get install ddd in terminal, will apt-get re-download the packages or skip ...
9
votes
5answers
25k 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: ...
9
votes
1answer
483 views

What happens during a package upgrade?

I recently started building Ubuntu packages for my software on Launchpad. They are pretty simple; most of them just contain some files and scripts that are trigged through the .install .preinst ...
9
votes
2answers
22k views

What happened to /etc/apt/apt.conf?

I was browsing through the apt folder to try my proxy settings and I was unable to find the apt.conf file in Ubuntu 11.04. Is there any alternative file for it? Adding proxy settings to 99-synaptic ...
9
votes
2answers
11k 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 ...
9
votes
3answers
14k views

Can't install a package due to “Something wicked happened resolving” error

I'm following these instructions to install git on my laptop. When I do: $ sudo apt-get install git-core This is what my terinal shows: Reading package lists... Done Building dependency tree ...