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)

10
votes
8answers
46k 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
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
23k 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 ...
10
votes
2answers
3k 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?
10
votes
1answer
12k 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
2answers
14k 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
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
3answers
9k 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 ...
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
2k 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 ...
10
votes
3answers
427 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
2answers
21k 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
1answer
21k views

Apt encounters errors with bad GPG keys [duplicate]

Possible Duplicate: How do I fix a “Problem with MergeList” error when trying to do an update? I always have been a Windows guy but with my recent interesting and degree ...
9
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 ...
9
votes
2answers
2k 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
23k 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 ...
9
votes
2answers
9k 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
2answers
17k 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 ...
9
votes
2answers
5k views

What is nss-myhostname? And why is it not installable?

dmesg shows the line systemd-hostnamed[3964]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname! But sudo ...
9
votes
3answers
12k 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 ...
9
votes
1answer
446 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
10k 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 ...
9
votes
2answers
21k 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
3answers
4k views

How to install multiple PPAs and applications at once?

I'm going to set up a couple of general use computers on one of my lab's work benches. There's a whole bunch of PPA repositories and applications from the Ubuntu repositories that I'd like to install ...
9
votes
5answers
34k 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 ...
9
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 ...
9
votes
5answers
9k views

Cannot install icaclient due to problem with ia32-libs

Finally, Citrix released a new version and Ubuntu updated their guide HERE (apparently, it were the dependecy changes as we found out). It should work now kind of out of the box. I have a problem ...
9
votes
5answers
13k views

“Something wicked happened” error in apt-get

Everytime I try to install through terminal I get this" I am not able to install or update and I can't find working answer for this here. Here is my apt-get update result: Hit ...
9
votes
0answers
9k views

How to correctly remove a PPA source? [duplicate]

Possible Duplicate: How can PPAs be removed? If I've added a PPA with "sudo add-apt-repository" should I just delete a file in /etc/apt/sources.list.d, or there is a command for removal?
8
votes
3answers
145k 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 ...
8
votes
8answers
9k 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 ...
8
votes
3answers
1k 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 ...
8
votes
3answers
37k 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 ...
8
votes
2answers
1k views

“sudo apt -get install foo-” causes removing foo package and everything depends on it

While working in command prompt, I accidentally typed following command: sudo apt-get install python3- and ubuntu started removing python3 and everything depends on it (including firefox and much ...
8
votes
4answers
9k 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 ...
8
votes
3answers
797 views

Is there a way to check if a program is available in the repository by commandline?

When i find a interesting program i want to test and install in ubuntu i first check if it's available in the repository. For that i use the software center. But does a possibility exist to check it ...
8
votes
3answers
876 views

Would there be any negative side-effects of sharing /var/cache/apt/ between two systems?

In the interest of conserving bandwidth, I'm considering mounting a VirtualBox host's /var/cache/apt as /var/cache/apt in the guest. Both host and guest are Ubuntu 10.10 32-bit. Would there be any ...
8
votes
1answer
8k 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 ...
8
votes
2answers
24k views

How do you open Apt links in Ubuntu?

I'm trying to download an Apt file but I don't know how to. I'm using Firefox too.
8
votes
3answers
1k 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?
8
votes
3answers
20k 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 ...
8
votes
2answers
442 views

Can do an “apt-get update” but for only for one package?

After adding a new ppa to the repository, is it necessary to update the whole database? By "whole database" I mean is it necessary to update index's of each and every packege? If it's not necessary, ...
8
votes
2answers
28k views

What to do when can't update anymore with apt-get? [duplicate]

I'm using Ubuntu 9.04 as multipurpose server, so no GUI here. I haven't used it for a while and now when trying to install or update packages with apt-get it throws errors. An excerpt of the error ...
8
votes
3answers
31k views

E: Unable to correct problems, you have held broken packages

I am using Ubuntu 13.04 which I installed few days back. I am trying to install nodejs and npm. I tried to install from command line first and then uninstalled it. Then something broke. sudo apt-get ...
8
votes
2answers
375 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 would apt-get download the packages or skip them. ...
8
votes
2answers
5k views

Can I use other than Ubuntu Software Center to open apt links?

Without Ubuntu Software Center in Lubuntu I was unable to edit opening apt links in any program in Firefox (see this question) After installing Ubuntu Software Center, that problem is solved, but ...
8
votes
1answer
7k 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 ...
8
votes
5answers
20k 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: ...
8
votes
4answers
4k views

Where are the daily builds for Chromium for 12.04?

I am running now Ubuntu 12.04 Precise Pangolin but i still have today problem with this sources for chromium. Anyone have the Daily-Dev apt sources for chromium? Failed to fetch ...