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)

23
votes
23answers
48k views

How to fix Duplicate sources.list entry?

I keep getting this warning whenever I try to run sudo apt-get update. W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ precise-updates/main i386 Packages ...
23
votes
6answers
12k views

Is it possible to get a list of most recently installed packages?

Is it possible to get a list of packages that were most recently installed through apt-get?
23
votes
6answers
41k 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 ...
23
votes
6answers
23k views

My /boot partition hit 100% and now I can't upgrade. Can't remove old kernels to make room

My first issue was when i tried to apt-get update/upgrade. On upgrade I get the following error: You might want to run 'apt-get -f install' to correct these. The following packages have unmet ...
23
votes
3answers
13k views

How can I restore configuration files?

I would like to restore LightDM to its default state, because for some reason /etc/lightdm/unity-greeter.conf is now an empty file. Deleting /etc/lightdm/unity-greeter.conf and then running sudo ...
22
votes
4answers
4k views

How do I cherry pick packages from a PPA?

Is there a way to cherry pick packages from a ppa repository you add? That is, to exclude some from updating while including others? For example, I want just the chromium-browser package from this ...
22
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 ...
22
votes
4answers
1k 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 ...
22
votes
3answers
4k 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, ...
21
votes
12answers
41k views

Cannot install ia32-libs

I don't know why I can't install ia32-libs. It claims for a dependency that cannot be found on repos. junior@mediacenter:~$ sudo apt-get install ia32-libs Reading package lists... Done Building ...
21
votes
2answers
20k 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 ...
20
votes
8answers
10k 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?
20
votes
5answers
50k views

Permanently removing apache2

It seems a simple apt-get remove apache2 does not completely remove apache2 as I can still see it on one of the processes when running top. How does one remove apache2 completely on his ubuntu server? ...
20
votes
3answers
6k 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?
20
votes
1answer
1k views

How do I enable fancy apt colours and progress bars?

I've heard that apt has some a fancy colour and progress bar feature, but that I have to manually enable it. How do I do this?
20
votes
4answers
702 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 ...
19
votes
8answers
66k views

apt-get update fails to fetch files, “Temporary failure resolving …” error

Err http://archive.canonical.com natty InRelease Err http://security.ubuntu.com oneiric-security InRelease Err http://extras.ubuntu.com natty InRelease ...
19
votes
7answers
34k views

How to install MySQL 5.6?

EDIT #2 Per oerdnj's answer below, I was able to successfully perform an unattended install of MySQL 5.6 on a 64-bit raring system using the following script: dpkg -s mysql-client >/dev/null ...
18
votes
4answers
53k views

Unable to correct problems, you have held broken packages

After upgrading from 10.04 to 12.04 I am trying to install different packages. For instance ia32-libs and skype (4.0). When trying to install these, I am getting the 'Unable to correct problems, you ...
18
votes
5answers
979 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
7answers
9k views

Generating list of manually installed packages and querying individual packages

I'd like to get a list of packages installed manually by apt or aptitude and be able to find out whether a foobar package was installed manually or automatically. Is there any neat way of doing that ...
18
votes
3answers
6k views

Why no library files installed for google test on 12.04?

The libgtest-dev package seems only install header files to the system, but not the static and dynamic libraries which should be installed under /usr/lib. Is it a bug?
18
votes
2answers
2k views

Limiting the download rate of apt-get

I am downloading a very large package and my internet connection isn't the fastest, so browsing the web at the same time is a pain. How can I limit the bandwidth apt-get uses?
18
votes
3answers
3k views

How to find the number of packages needing update from the command line?

I'm working on some system admin automation using fabric and I'd like to be able to monitor the number of packages that need upgrading on a given machine. This is the same information that I can see ...
17
votes
6answers
7k views

How to see packages installed on a given date using aptitude

Does anyone know if there's an easy way to find a list of packages installed, sorted by date, when using aptitude (or apt-get)? I was installing a bunch of packages to try something new, and it ...
17
votes
2answers
5k views

How do I apt-get -y dist-upgrade without a grub config prompt?

Per Make apt-get (or aptitude) run with -y but not prompt for replacement of configuration files? I did the following: ec2run ami-3c994355 --region us-east-1 -n 1 -t m1.large -z us-east-1d On the ...
17
votes
5answers
8k views

Is it possible to install a .deb from a URL?

Is there a way to install a deb package directly from a URL, using a shell? Something like dpkg -i http://domain.com/path/to/package.deb (I know I could use wget and then dpkg, I'm just wondering ...
17
votes
1answer
3k 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 ...
17
votes
1answer
521 views

How can I install the $0 applications from the Ubuntu Software Center with apt-get?

In the Ubuntu Software Center, there are lots of $0 apps that I can 'purchase': for example: crazytoad pinball-bakno colorsudoku As these applications are free (as in beer), I wonder how I can ...
17
votes
1answer
10k views

How can I remove gpg key that I added using apt-key add -?

I don't need the key in my server's keyring anymore. Is it possible to remove it? I added the key using this command: curl http://repo.varnish-cache.org/debian/GPG-key.txt | apt-key add - Thanks ...
17
votes
4answers
34k views

How do I apt-get a 32-bit package on a 64-bit installation? [duplicate]

I was trying to get a game working. But I have Lucid Lynx on amd64 running while the game binary was 32 bit (no 64 bit version available and nobody was in the mood for recompiling). It lacked ...
17
votes
2answers
22k views

How to force installation of kernel updates when using apt-get upgrade?

To update my server I use apt-get upgrade. But when there are kernel updates I always need to do apt-get install linux-.... because apt-get update does not install them. Is there a way I can tell it ...
17
votes
2answers
18k views

Something wicked happened resolving medibuntu repository, what happens?

We have an Ubuntu 12.04 LTS machines that is giving errors when I try to run updates. Specifically, I am getting a load of errors like this: W: Failed to fetch ...
17
votes
5answers
2k views

Making mirror://mirrors.ubuntu.com highly available

We're a distributed team, which is why our VMs use the Ubuntu mirror:// setup. Our /etc/apt/sources.list looks like the following: deb mirror://mirrors.ubuntu.com/mirrors.txt lucid main restricted ...
17
votes
1answer
29k views

Apt-get saying “Unable to correct problems, you have held broken packages.” [duplicate]

Possible Duplicate: How do I resolve unmet dependencies? TL;DR: sudo apt-get install ... saying "Unable to correct problems, you have held broken packages." The problem I was trying ...
16
votes
3answers
24k views

apt-get warning: No support for locale: en_US.utf8

I get this error each time I update the system using apt-get. What does this error mean? Any ideas on how to correct it? (I am running Ubuntu 11.10)
16
votes
3answers
5k views

What does it mean that a package is “set to manually installed?”

When packages are already installed and I run an apt-get install <package-name>, sometimes it will print a line <package-name> is set to manually installed. What does that mean?
16
votes
5answers
733 views

How to make a package manager wait if another instance of APT is running?

I have seen many softwares such as Update Manager and Synaptic Package Manager, they wait if some other program is using the /var/lib/dpkg/lock and is locked. How can we do this through the Terminal? ...
16
votes
0answers
6k views

How to find and delete duplicated sources list entries? [duplicate]

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?
15
votes
2answers
9k views

dpkg: error: parsing file '/var/lib/dpkg/available' near line 0

Been trying to install git-core package for almost more than half a day now. Everytime i do, I get this error: dpkg: error: parsing file '/var/lib/dpkg/available' near line 0: newline in field name ...
15
votes
1answer
1k 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
4k views

What is the apt equivalent to “rpm -V” (Verify installed packages)

On a RedHat/CentOS system, I can verify the installed RPMs on my system using rpm -V. What is the Ubuntu or apt equivalent of this command?
15
votes
2answers
7k views

easy_install/pip or apt-get

As noted in the Ubuntu wiki page on Rails it is recommended that gems manages your Rails/Ruby dependencies. What is the best practise with Python packages like Django? Should I install them through ...
15
votes
3answers
6k views

Is there an apt command to download a deb file from the repositories to the current directory?

I am often interested in the installation triggers (postinst, postrm) or certain parts of packages (like /usr/share and /etc). Currently, I am running the next command to retrieve the source code: ...
15
votes
5answers
7k views

Is 100% CPU usage harmful while update-apt-xapi runs?

(System: 11.10 running Unity 3D) When update-apt-xapi is running, CPU usage stays at 100% (for about a couple of minutes). Is that normal? I understand that the command runs update-apt-xapian-index ...
15
votes
2answers
16k views

How to make USB drive as local repository

I copied "archives" folder (/var/cache/apt/archives) from another computer which was fully updated and had some packages that i want. Can someone guide me how to add my USB drive in repository list so ...
14
votes
4answers
2k views

How can I run “apt-get install” in the background?

When I try to install a package, for instance nsnake, with the command sudo apt-get install nsnake &, the process immediately stops. I can bring it to the foreground and enter my sudo password, ...
14
votes
9answers
23k views

Unable to install Skype on 64bit Ubuntu

I am receiving the following message while I am trying to install Skype: nidhin@ubuntu:~$ sudo apt-get update nidhin@ubuntu:~$ sudo apt-get install skype Reading package lists... Done Building ...
14
votes
4answers
12k views

Installing suggested/recommended packages?

I ran the following code and got this package needs these packages, now it also says these packages are suggested, and theses are recommended. How do I get those up to install as well. ...
14
votes
5answers
13k views

How to remove a deb without removing its dependencies

I would like to install the most recent version of boto, which I do via python setup.py install Yet when I try to remove the old version the following packages also get removed: apt-get remove ...