apt is Advanced Packaging Tool, package manager for Debian based distributions.
85
votes
16answers
50k views
How can PPAs be removed?
I've added many PPAs using the add-apt-repository command. Is there a simple way to remove these PPAs? I've checked in /etc/apt/sources.list for the appropriate deb lines but they aren't there. This ...
85
votes
9answers
3k views
What's the difference between package managers?
I know Ubuntu/Kubuntu has several programs that can be used to install packages, such as apt-get, aptitude, and synaptic (and perhaps others). What are the differences between them, and which one is ...
82
votes
15answers
12k views
How to customize live Ubuntu CD?
I would like to customize Ubuntu live CD by installing some additional packages. I have followed this link but it doesn't seems to work. Can anyone provide clear instructions? Thanks in advance!
...
76
votes
11answers
48k views
How do I resolve unmet dependencies?
How do I resolve unmet package dependencies?
Occasionally, when I'm installing stuff, I get an error like the following:
Some packages could not be installed. This may mean that you have
requested ...
67
votes
10answers
54k views
How to list all installed packages?
I'd like to output a list of all installed packages into a text file, so that I can review it and bulk-install on another system. How to do this?
63
votes
4answers
12k views
Is aptitude still considered superior to apt-get?
When I first started with Ubuntu using aptitude was the 'in-thing', with some stated improvements over apt-get. Am I correct in saying that apt-get has now 'caught up' with aptitude, and it makes ...
59
votes
5answers
7k views
Best way to cache apt downloads on a LAN?
I have multiple Ubuntu machines at home and a pretty slow internet connection, and sometimes multiple machines need to be updated at once (especially during new Ubuntu releases.)
Is there a way where ...
56
votes
4answers
37k views
Upgrade a single package with apt-get?
simple question, hopefully simple answer;
how do i update a single package? as far as man apt-get says,
apt-get upgrade
doesn't take a package/list of packages as parameter:
upgrade
...
50
votes
5answers
37k views
How can I accept Microsoft EULA agreement for ttf-mscorefonts-installer?
After a recent update, ttf-mscorefonts-installer
prompted me to accept its license agreement.
For some reason my terminal will not allow me to accept, or for some reason I am pressing the wrong ...
50
votes
6answers
34k views
How can I get apt to use a mirror close to me, or choose a faster mirror?
Downloading from the main Ubuntu archive is slow even when it's not release day, how can I get apt-get to automatically use a mirror that is close to me?
48
votes
8answers
12k views
How to prevent updating of a specific package?
Because of bug #693758 I'd like to prevent apt-get upgrade and Update Manager from updating the "libgtk2.0-0" package.
How can this be achieved?
48
votes
6answers
23k views
What is the easiest way to resolve apt-get BADSIG GPG errors?
I frequently cross this issue, and always have to google for an answer. Does anyone have a permanent fix for BADSIG errors from apt-get?
W: GPG error:
http://download.virtualbox.org lucid
...
43
votes
6answers
39k views
How do I fix a “Problem with MergeList” or “status file could not be parsed” error when trying to do an update?
The computer gave me this output in a window:
E: Encountered a section with no Package: header
E: Problem with MergeList ...
42
votes
11answers
83k views
How do I fix a “Could not get lock /var/lib/dpkg/lock” problem?
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/)
Is another process using it? How can I fix ...
29
votes
7answers
3k views
Can't update because the word prox* is blocked
I live in Ethiopia and the government blocks all urls with the word "proxy" in them. I couldn't use that word in the title above because that would make the url contain the word proxy.
When I ...
29
votes
1answer
584 views
How do I make apt-get install less noisy?
If I use apt-get install -qq mono-devel, I expect it to be quiet except for errors, according to the help:
-qq No output except for errors
Instead I get:
Extracting templates from packages: 100%
...
28
votes
3answers
1k views
Do I really need the “Source Code” in software sources?
It takes a long time to update my software sources when I run:
sudo apt-get update
I believe that happens when the apt-get is downloading source code from the repository, in my case it the one in ...
26
votes
3answers
6k views
How can I remove the Translation entries in apt?
This is the output of aptitude update:
Ign http://archive.canonical.com natty InRelease
Ign http://extras.ubuntu.com natty InRelease
Ign http://dl.google.com stable InRelease
Ign ...
25
votes
6answers
2k views
Is it possible to undo an apt-get install command?
Case in point -- I installed Carpadio on my Xubuntu install (a Live USB), which then pulled like over 50 packages from, I suppose, the Ubuntu side of the repository. Now I would like to undo this. ...
25
votes
5answers
4k views
the size of apt-get update lists is too big
This question contains circumventions for an Ubuntu bug: https://bugs.launchpad.net/launchpad/+bug/1001780, as well as some general advice on saving bandwidth when doing apt-get update.
That bug was ...
24
votes
2answers
2k views
Should I install programs from a source tarball (`.tar.gz`), from the Ubuntu Software Centre, or from elsewhere?
There are several ways to install an application in Ubuntu:
You can download a source tarball (generally a .tar.gz or a .tar.bz2 file) and install it manually. (See How to install a .tar.gz (or ...
24
votes
6answers
2k views
Why the software center doesn't allow multiple downloads?
I was wondering why the software center doesn't download all the requested apps and install one by one as they finish to download.
Or instead why the software center doesn't download an app while the ...
24
votes
1answer
7k views
What is the difference between apt-get update and upgrade?
What is the difference between apt-get update and apt-get upgrade?
Which should I run first?
Do any of them automatically run the other?
23
votes
4answers
1k views
Why was aptitude removed in favor of apt-get?
Why was aptitude removed in favor of apt-get by default? I read it somewhere, but forgot - anyone bother to clear it up? And doesn't Debian prefer aptitude and Canonical apt-get?
Update
From the ...
22
votes
4answers
3k views
How are packages actually installed via apt-get install?
When using the apt-get install method to install a package onto ubuntu, is there any fundamental difference between obtaining the source code for that package and building it from scratch? Does the ...
21
votes
2answers
11k views
How do I get the source code of packages installed through apt-get?
I am assuming that all application installed through apt-get are open source; but for those that are available in that manner, where can I get the source code for these applications as well as update ...
21
votes
6answers
7k views
How to find manually installed packages?
I installed a plain Ubuntu 10.10 on my computer and installed some software via apt-get. Last week I managed to break everything and just started from scratch, and I need to reinstall my software. Is ...
20
votes
6answers
19k views
How do you select the fastest mirror from the command line?
I want to update my sources.list file with the fastest server from the command line in a fresh Ubuntu Server install. I know this is trivially easy with the GUI, but there doesn't seem to be a simple ...
20
votes
6answers
12k views
How to Downgrade a Package via apt-get?
How to downgrade a package to an older version via apt-get?!
Another tools are also accepted but apt-get is preferred.
20
votes
4answers
5k views
How to set up an APT repository?
I would like to set up an APT repository on a server that will provide a couple of packages.
Is there a way to set one up without installing any software on the server?
How do the files have to be ...
20
votes
3answers
2k views
Command-line equivalences of some tasks in Synaptic
I already use apt-get for most of my package management. Yet, there are times when I occasionally need to use Synaptic to do certain things. I would like to learn the equivalent commands for doing the ...
20
votes
1answer
19k views
How do “apt-get clean” and “apt-get clean all” differ?
What, if anything, is the difference between this command:
sudo apt-get clean
And this command:
sudo apt-get clean all
On my Lubuntu 12.04 system, simulating these commands reveals their ...
19
votes
5answers
26k views
Where are mysql-admin and query-browser?
In terminal I run next commands:
sudo apt-get install mysql-server
sudo apt-get install mysql-admin
sudo apt-get install mysql-query-browser
With first command - all ok.
But for latest two ...
18
votes
5answers
815 views
Can I automatically purge every package I've ever uninstalled?
As an Ubuntu noob, I install and uninstall a lot of packages, to try them out. However, for months, I made the mistake of using apt-get remove instead of apt-get purge, which I didn't even realize ...
18
votes
6answers
6k views
Where do I get a package for GNU Parallel?
I want to install GNU Parallel in Ubuntu but I can't find a package for it in the default Ubuntu repos. Where can I get it?
18
votes
2answers
7k views
What is difference between the options “autoclean”, “autoremove” and “clean”?
apt-get has a few options which looks the same to me: autoclean, autoremove and clean. What do each of them do?
18
votes
4answers
804 views
Can I see why a package is installed?
For a specific package, can I find out why it is installed?
So, can I see or it's manually installed, or that it is installed as a dependency of another package? Or that it is installed as part of ...
18
votes
4answers
15k views
How to use a .iso image as a CD-ROM Repository?
I have all images of Debian, Ubuntu and Ubuntustudio as .iso. How can I use them as repository to install my desired packages with sudo apt-get install package-name?
I easily mount the .iso file with ...
18
votes
4answers
466 views
Is it possible to tell what packages I've installed that aren't in the vanilla install?
I've upgraded Ubuntu on my laptop all the way from 7.04 to 10.04 without ever wiping the disk. I have a sneaking suspicion that means I have a bunch of crufty packages that I don't use and that are ...
17
votes
10answers
46k views
'apt-get' does not work with Proxy
For the command
sudo apt-get update
I get following error:
W: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/maverick-updates/multiverse/binary-i386/Packages.gz
407 Proxy ...
17
votes
3answers
3k views
Does apt-get clean harm your system?
Does cleaning /var/cache/apt/archives by apt-get clean affect installed applications?
Is it that the .deb packages there are needed for applications to run properly?
17
votes
3answers
3k views
How do I find the reverse dependency of a package?
I was wondering if it was possible to check what package another package is a dependency of.
For example, jetty is mysteriously installed and running on my system and I'd like to check whether it is ...
17
votes
1answer
3k views
create a .deb Package from scripts or binaries
I searched for a simple way to create .deb Packages for things which have no source code to compile (configs, shellscripts, proprietary software). This was quite a problem because most of the package ...
16
votes
5answers
3k views
apt-get update only for a specific repository
When I add a ppa and I want to install some of its content is quite annoying to re-update all my apt list using apt-get update
Is it instead possible to only sync the content of a given repository?
16
votes
3answers
3k views
apt-get vs. aptitude .vs synaptic compatibility
I had been a Debian user for almost 3 years... but memories have gone really fuzzy...
I "kind of" remember that I should only use one of the package managers...
Either apt-get, aptitude, or synaptic, ...
16
votes
2answers
734 views
Why does my 64-bit system look for 32-bit repos?
I've got a 64-bit 12.10 install on my Laptop. When running apt-get update, it downloads package lists for 32-bit packages (as well as source and 64-bit package lists). Why does it look for 32-bit ...
15
votes
1answer
774 views
What is the 'popularity-contest' package for?
I'm installing ubuntu server at the moment, and noticed it in the configuration phase.
What does this package do, what is it for?
15
votes
2answers
6k views
How can I see all versions of a package that are available in the archive?
Is there a way I can see all the versions that are in the archives that I have configured in sources.list. I can see the last version of each archive with "apt-get policy", but how can I see all?
Is ...
15
votes
2answers
10k views
What does “No apport report written because MaxReports is reached already” mean?
When installing a Linux kernel image package, I got, amongst other errors:
No apport report written because MaxReports is reached already
Where can I delete old reports so that Apport can ...
14
votes
7answers
4k views
How to find and delete duplicated sources list entries?
Is there a command line to find and delete duplicated entries in the /etc/apt/sources.list file?
or
is this possible via synaptic perhaps?


