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
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 ...
6
votes
1answer
4k views

How to reinstall many removed packages at once?

I used sudo apt-get remove python command and accidently removed a bunch of packages that were required. I logged in via command line and installed ubuntu-desktop again but there are other packages ...
20
votes
1answer
3k views

How to limit the download speed of APT? [duplicate]

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?
20
votes
3answers
5k 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 ...
3
votes
1answer
248 views

Download selected packages to a local repository

Actually I'm a bit new to Linux and I need to download some selected packages (debian ubuntu) to my local repository. So could you please help me to figure this out?
2
votes
1answer
3k views

Error Installing Ettercap-gtk

I'm trying to reinstall ettercap-gtk after I removed it, since it was randomly closing out for some reason, and this is the error I get # apt-get install ettercap-gtk Reading package lists... Done ...
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 ...
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 = ...
0
votes
2answers
20k views

How to install gfortran?

I installed sage on ubuntu but nothing on the command line executes. The relevant portion in the long error message is: ImportError: libgfortran.so.3: cannot open shared object file: No such file or ...
8
votes
2answers
29k 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 ...
4
votes
1answer
431 views

Recompile all packages and trigger on updates

I am using Ubuntu on a bespoke router and after seeing the latency drops capable with custom compiling on Gentoo, I would like to recompile all packages with CFLAGS="-march=atom". The guide for this ...
2
votes
1answer
63 views

dpkg --print-avail PACKAGE fails

I just happened to notice that dpkg --print-avail PACKAGE (same as dpkg -p PACKAGE) is failing on my Ubuntu 10.04.2 server. Should I be concerned? For example: $ dpkg -p a2ps Package `a2ps' is not ...
20
votes
2answers
45k views

How do I use apt-get to only download packages?

I have apt-get 0.7.23.1 on host machine. I do not have root, thus not able to update it, or install other packages. I want to download .deb packages with it, but neither apt-get -d bash (Invalid ...
4
votes
2answers
314 views

Run a line command from a web (Clicking in a webpage link)

Is it possible to execute a command from a single link? For example when a user clicks on a link it does this: sudo apt-get install vlc wine openshot but by clicking on a link
2
votes
1answer
673 views

Adding apt-get packages to a usb boot drive (and storing them on the drive)?

I want to compile some 3rd party software and install it on a bootable usb drive...there are several packages that I need to install with apt-get before I compile it. How could I store the apt-get ...
3
votes
0answers
2k views

How to fix “Problem with MergeList” error when running an update? [duplicate]

Possible Duplicate: “Problem with MergeList” error when trying to do an update After "sudo apt-get update" in terminal, I get: 58% [99 Translation-en lzma 0 B] [Connecting to ...
0
votes
1answer
1k views

Apt-get connection timeout [closed]

apt-get stopped working for me. It resolves us.archive.ubuntu.com to an IP address, but then does not connect to that address. I can ping that IP address and can also do a wget on the IP address and ...
1
vote
1answer
2k views

“fastestmirror” like plugin for Ubuntu? [duplicate]

Possible Duplicate: How can I get apt to use a mirror close to me? Are there any plugins for apt like the fastestmirror on e.g.: Fedora? So that the selected repo mirror for Ubuntu is ...
1
vote
1answer
1k views

Missing python.h when trying to install Apache Thrift

I have tried many times over to install Thrift (http://thrift.apache.org/) in Ubuntu Server. I tried it on two machines... And one I had nothing on it before; meaning fresh Ubuntu installation. I ...
0
votes
3answers
320 views

I cannot install Java. It locks

Here is where it locks-up: Setting up openjdk-6-jre-headless (6b20-1.9.7-0ubuntu1) ... Even control-c does not stop it. I have to close the ssh session by closing the terminal. I have tried two ...
1
vote
1answer
530 views

GCC headers on Ubuntu

I was wondering, if there was a go to place to look for c headers, and how to get them on Ubuntu, often times a quick Google search gets me the apt-get package. I was wondering if it possible look up ...
2
votes
1answer
3k views

How can I install Eclipse with Ant 1.8?

I have previously installed eclipse on lucid with ant 1.7 with no trouble. I need to update my ant to 1.8, but this required me to uninstall eclipse, since the "ant1.8" package isn't seen by apt-get ...
0
votes
1answer
977 views

Changing the update server from india to main server: 404 Not Found [duplicate]

Possible Duplicate: Failed to fetch in.archive.ubuntu.com/ubuntu/dists/maverick/Release I recently installed Ubuntu 10.04.2 server and like to upgrade the packages to the latest. ...
3
votes
1answer
353 views

Why are my two ubuntu installs on separate partitions sharing the same apt-get data?

I have two ubuntu installs on two separate partitions, one Unity and one Gnome-Shell. They both use a common encrypted /home partition. That sort of setup has worked well for me in the past, but for ...
1
vote
0answers
933 views

Upgrading to 10.10 [closed]

Hey guys, Ive had some problems with my linux system, slowly been figuring things out. But im quite stumped on this problem, ill copy a section of code for you... Errors were encountered while ...
1
vote
1answer
42 views

If I add some packages to “Recommends:”, will apps pull them in with the update?

I have a quesion about Debian packaging. I know that if I make a package depend on a larger number of packages then before, the newly introduced dependencies will be automatically downloaded by almost ...
7
votes
1answer
10k views

Apt-get update error: http://extras.ubuntu.com Public key unavailable [duplicate]

GPG error: http://extras.ubuntu.com natty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192 I think I selected to ...
223
votes
5answers
201k views

How to upgrade a single package using apt-get?

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 upgrade is used to install the newest versions of ...
1
vote
1answer
1k views

Apt-get ignoring a repo even if I clear the cache

I'm trying to get the ubuntugis repo to install on a server and I keep getting the line: Ign http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu/ lucid/main Translation-en_GB when I do an ...
17
votes
3answers
6k views

How to list packages from a ppa/source in command line?

I want to list all the files from a source, say extras.ubuntu.com from the command line. What is the command for that? dpkg --list lists all files or just the filename.
2
votes
3answers
501 views

Installing apt module without internet [duplicate]

Possible Duplicate: Identifying and Downloading Dependency for an Offline PC How can I take an apt module from an internet enabled Ubuntu and get it to a USB for a non internet install? I ...
1
vote
1answer
516 views

apt does not work in public wifi [duplicate]

Possible Duplicate: “Problem with MergeList” error when trying to do an update I get the following message when running apt on this public hotel wifi: $ sudo apt-get update Ign ...
6
votes
1answer
183 views

Why are the hidden settings-folders not deleted when purging an application?

I did sudo apt-get remove --purge for several packages, but apparently the personal settings are kept. Is there a command or tool to delete them automatically?
4
votes
4answers
4k views

How do remove the CD / DVD install as a source for apt-get packages when installing new features?

I'm running a Ubuntu server (9.0.4 'Jaunty') as a VMware image. It's a real pain on the odd occasion I need to install a new package to have to fish out the install CD-ROM, and make it available to ...
-1
votes
1answer
7k views

Uninstall NVidia drivers? [duplicate]

I've upgraded from 10.04 to 10.10 (in order to be able to upgrade to 11.04). It seems like the current graphics drivers are incompatible with the latest kernel I have. I don't know if I have ...
2
votes
2answers
11k views

How do I force apt-get to update the state of package versions?

I installed Natty Narwhal last night, and cam across a problem with update manager. I had initially instructed update manager to "Install updates", but the dialog that popped up stayed on "waiting..." ...
1
vote
3answers
1k views

how to install package to a specific hard disk drive partition

By default apt-get installs packages in the drive that the ubuntu installation resides on. But can i install a package other than the ubuntu partition ? If i can, how to do it ?
0
votes
2answers
766 views

“apt-get --print-uris” to list URI for downloading extra functionality package for amarok,reqonk

Hello I do not have internet connection at my home. So i use "apt-get --print-uris" to list the http's and take it to other PC with internet connection and use wget to download them. I am facing ...
82
votes
9answers
51k views

Trouble downloading packages list due to a “Hash sum mismatch” error

When I check for updates, I get a "Failed To Download Repository Information" error. This is what comes up under details: W: Failed to fetch ...
0
votes
1answer
606 views

Installing via apt-get install always give “The HTTP server sent an invalid Content-Range header”

When I try to install software like Wine 1.3, I alwasys get something like ... Err http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ natty/main wine1.3 amd64 1.3.19-0ubuntu1~maverick1~ppa1 The HTTP ...
2
votes
1answer
345 views

gnome-themes-standard tries to overwrite a file from gnome-accessability-themes

I was trying to install gnome3 on my ubuntu but because of some reason, apt-get went into an invalid state after the installation (which was incomplete i think). Whenever I try any apt-get operation, ...
3
votes
1answer
83 views

How to know which versions of application I can install via apt

I try to use apt-cache search gedit But there is no information about version. I am trying to install gedit 2.30.4 (by default it is 3.x on Gnome 3). But there is no gedit with this version. sudo ...
2
votes
0answers
579 views

Disable signature probing for repositories in update-manager [closed]

Update-manager brought up an update today, but refused to install it. "This action would require the installation of packages from not authenticated package sources." (transliterated error ...
57
votes
6answers
76k 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 ...
2
votes
3answers
475 views

apt-get doesn't load third-party PPA's

I have a server running Ubuntu Server 11.04, and when I add a PPA via add-apt-repository, apt-get doesn't load the PPA when I do apt-get update. It's specifically this PPA I need to add, but same ...
4
votes
3answers
6k views

apt-get: How to overwrite existing files from another package?

I'm trying to install Gnome3 for Natty, using the source deb http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu natty main, however the following error: $ sudo apt-get install -f ... Unpacking ...
6
votes
4answers
22k views

Old version of gcc for new Ubuntu

Is there a repository containing packages for old versions of gcc, for the latest Ubuntu. I want to install gcc3 alongside gcc 4, for programs that need gcc3 specifically.
9
votes
3answers
8k views

Apt-get install multiple packages without stopping

I am making a bash script that installs various packages using apt-get install. However, I notice that if there is a line that says: sudo apt-get install package1 package2 package3 and either of ...
2
votes
3answers
2k views

How to install Gloobus Preview in Natty?

I keep getting this error when I try to install Gloobus preview in Natty : Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be ...
0
votes
1answer
1k views

Specifying which ethernet port for apt to use

I'm trying to perform an update using the normal sudo apt-get update. However my main ethernet does not have access to the outside world (long story I think I purposely did this and forgot how I did ...