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)

9
votes
3answers
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
8answers
40k 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 ...
9
votes
2answers
7k 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
1answer
6k views

What does 'Ign' mean when running an apt-get update?

I had a bunch of errors in the output of sudo apt-get update: duplicate entries and 404 not found errors. Figured those out, I hope: I removed PPAs that didn't have any packages associated with ...
9
votes
2answers
3k 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 ...
9
votes
1answer
381 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
12k 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 ...
9
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?
9
votes
2answers
20k 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
3k 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
3answers
31k views

How to resolve “Failed to download repository information”?

Whenever I try to install anything with the Ubuntu Software Center, the following error appears. Failed to download repository information Check your Internet connection. E:Unable to ...
9
votes
5answers
8k 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
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
2answers
925 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
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 ...
8
votes
3answers
767 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
3k 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 ...
8
votes
3answers
834 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
3answers
895 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
2answers
14k 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 ...
8
votes
2answers
27k views

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

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
16k 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
3k 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?
8
votes
2answers
325 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
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 ...
8
votes
1answer
464 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 ...
8
votes
1answer
416 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 ...
8
votes
2answers
7k 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 ...
8
votes
1answer
239 views

How can I know which commands were installed with a package?

How can I get a list of commands that have been installed with a particular package? For example, if I install Chromium, what should type now? Or if I install moreutils, how do I know which commands ...
8
votes
2answers
327 views

How do I get security updates for restricted/partner packages?

I want to perform just security updates on Ubuntu 12.04 LTS, keeping the rest of the system unchanged. I need to do this from the command line, no the GUI update manager. I have implemented the ...
8
votes
1answer
20k 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 ...
8
votes
1answer
11k 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 = ...
8
votes
3answers
126 views

how much space does a given package, and dependencies, cost?

given a package name, I want to find how much space would be freed up if the package, and its dependencies, were deleted. As dependencies might be shared between packages, maybe the right way to put ...
8
votes
5answers
30k 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 ...
8
votes
3answers
9k views

apt-get fails to upgrade, install, remove etc

I upgraded from 11.10 to 12.04, had no issues that I noticed. Recently tried to install something via software center, but it was throwing errors. Changed to trying to sudo apt-get install instead but ...
8
votes
2answers
9k 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 ...
8
votes
4answers
3k 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 ...
8
votes
1answer
8k views

How to set up PHP with Nginx, APC and PostgreSQL?

I use Ubuntu Server 10.10 and I would like to set up a web server environment with NginX, PHP 5.3.3, PostgreSQL and preferably APC and PHP Suhosin. I have already set up PostgreSQL with apt-get ...
8
votes
2answers
420 views

How can I downgrade packages without removing their dependants?

I have a number of mesa packages that I had upgraded to a PPA version, before purging the PPA so I could upgrade my system. The differences in the versions are minor (they are technically the same, ...
8
votes
1answer
13k views

Installing eclipse by apt-get

My favorable method for installing is always apt-get. Fortunately, eclipse is now included in apt-get repository. However, when I installed it with apt-get, it works fine for programming languages ...
8
votes
1answer
1k views

Why are the proposed BADSIG (on apt-get update) fixes secure?

I'm running apt-get update, and I see errors like W: GPG error: http://us.archive.ubuntu.com precise Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic ...
8
votes
2answers
580 views

How to cross-compile an existing deb package from 64bit to 32bit architecture

I have rebuilt a deb package with a custom patch for my computer which is a 64bit machine. I did it using: sudo apt-get -b source [package name] Now my question is, how to do that in a similar ...
8
votes
1answer
2k views

What does Ign mean in update manager?

When I run update from the terminal, I get the following list where many repositories are shown with "Ign". Does it mean the update manager will always ignore updates from those repositories? Apart ...
8
votes
2answers
832 views

Why does apt think it needs this extra dependency?

I'm working on some machine setup instructions, and I was surprised to find out that apt-get install A B can behave differently than apt-get install A && apt-get install B. My specific ...
8
votes
1answer
1k views

How can I make “apt-get update” faster with a slow internet connection?

I have a slow Internet connection and every time I add a new ppa to install software I need to run apt-get update. This takes about 10 minutes or so, I was wondering if there was a way to initiate a ...
8
votes
2answers
2k views

Why are my apt-get update fetches so large? [duplicate]

Possible Duplicate: the size of apt-get update lists is too big After clean installing 12.04 (Release Candidate), and accepting all updates and upgrades till today, I find that sudo apt-get ...
8
votes
0answers
1k views

What is the converse of add-apt-repository? [duplicate]

Possible Duplicate: How can PPAs be removed after they have been added with the add-apt-repository command? You can a new PPA repository with add-apt-repository. How do you remove an added ...
7
votes
4answers
13k views

Can't find boot-repair package for the newest version of Ubuntu

After upgrading Ubuntu 13.10 to 14.04, grub failed to load Ubuntu and threw the error symbol 'grub_term_highlight_color' not found. I followed the solution offered in the Bug Report but this failed ...