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)

1
vote
1answer
2k views

Failed to download package

I tried to install updates from the update manager but it always displays an error message Failed to download package file and the details is: Failed to fetch ...
10
votes
4answers
11k 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 ...
3
votes
1answer
736 views

How to build and compile a bzr branch for testing

When I pull down a bzr branch using bzr branch lp:ubuntu/<package name> I get one set of source files. However, when i go apt-get source <package name> I get another. The command ...
11
votes
4answers
4k views

How to remove a package from the list of packages to be installed in apt-get?

After I tried installing vim using apt-get install, apt-get keeps giving me a segmentation fault while trying to install vim-runtime. I'm pretty sure it's just with that one specific package, and ...
32
votes
9answers
103k 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 ...
0
votes
0answers
237 views

How can I get my deb file into the repositories? [duplicate]

Possible Duplicate: How to get my software into Ubuntu? How can I publish my open-source project in open Ubuntu repositories? I have already compiled a deb which I can install on all my ...
7
votes
1answer
945 views

Building a .deb file, install dependencies too

I am part of a small team that develop an intranet web app. We want to a method of easy installation, so we were thinking about how apt-get works, especially with installing dependencies. Our app has ...
3
votes
2answers
5k views

How do I pin a particular MySQL version to avoid unnecessary upgrades?

I'm running a MySQL server, and want to keep it up to date with regular apt-upgrades. I don't want this to cause MySQL to upgrade unless I'm doing it during scheduled downtime! How do I alter my ...
5
votes
3answers
4k views

Update information is outdated

How can I fix my update problem. I am using Maverick 10.10 and update daily, however I get the warning triangle that tells me that the update information is outdated. After I perform an update it ...
1
vote
1answer
1k views

apt-get update error for a personal repository

I have a personal repository setup using reprepro. Everything works allright. apt-get update reads the package list from the repository and I can install packages from the repository. A few annoying ...
4
votes
2answers
949 views

How to list currently not installed packages?

I'd like to output a list of all currently not installed packages (they are visible in Synaptic for example) using only shell commands. How do I do this? Thanks!
3
votes
4answers
7k views

Tasksel cannot be installed [closed]

I am trying to install tasksel in order to install LAMP but for some reason it always gives me this error: E: Unable to locate package tasksel root@TheShop:~# sudo apt-get install tasksel Reading ...
8
votes
3answers
974 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 ...
3
votes
1answer
3k views

Why can't I purge apache2.2-bin and apache2.2-common?

I have tried to completely remove apache2.2 from my system. But the only thing that happens is that apt-get will remove "apache2-mpm-prefork" and install "apache2-mpm-worker". I have killed all ...
56
votes
4answers
34k views

Show apt-get installed packages history via commandline?

Is there a way to show the history of installed packages that were installed by apt-get via commandline?
2
votes
1answer
362 views

How do I clean build and installs, ie un-build?

I have installed and downloaded and built mongodb, and just one works. $ mongo mongo: error while loading shared libraries: libmozjs.so: cannot open shared object file: No such file or directory $ ...
21
votes
2answers
10k 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 ...
5
votes
5answers
2k views

Is there apt-cacher for Windows?

I have two computers. C1: Windows with Internet connection. C2: Ubuntu connected with C1 but not connected with Internet. I'd like to access apt repositories to update or install some packages on ...
11
votes
5answers
3k views

Syncing apt-get installations between multiple computers

Is there a way to synchronize my installations (and removals) between multiple PCs? Preferably with dropbox - since I'm already using that to keep my files in sync. I thought of an alias for the ...
8
votes
1answer
3k views

What does add-apt-repository mean?

What does this mean? sudo add-apt-repository ppa:maco.m/ruby sudo apt-get update sudo apt-get install rubygems Hows does it differ from running sudo apt-get install rubygems Thanks.
0
votes
3answers
2k views

Problem installing eclipse-platform

I am trying to install the eclipse-platform package in a new Ubuntu 10.10 and I am getting the following error (via the Ubuntu software center): Failed to fetch ...
12
votes
4answers
39k views

Do Dpkg and apt-get install dependencies?

I've been wondering, is there a way to tell dpkg or apt-get that when I want to install a package also install all the dependencies it requires? I installed a package using dpkg but it complained ...
5
votes
0answers
525 views

How do you resolve the error “E: Unmet dependencies.”? [duplicate]

Possible Duplicate: How do I resolve unmet dependencies? I did try apt-get -f install but that didn't work either. The problem appeared after installing a modified version of ...
10
votes
2answers
17k 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 ...
5
votes
1answer
4k views

Where did Mercurial install to?

I used sudo apt-get install mercurial to install Hg.. where did it put the executable? I need to specify the location in Netbeans. Is there a general way to find where apt-get installs things? ...
3
votes
3answers
975 views

Can't locate enemy-territory in terminal?

I have an issue trying to install True Combat: Elite. I followed these steps, But when I do the 4th step, I get this: E: Unable to locate package enemy-territory Can anyone help? ...
2
votes
2answers
3k views

Cannot install build essential from the CD?

After a fresh installation of Ubuntu 10.10 I tried to install build-essential from the Ubuntu installation CD. I put the cd in the cdrom and in the software repositories i checked the box install from ...
1
vote
1answer
321 views

How to undo an improper purge?

As the title says, I did sudo apt-get purge mysql* and as a result, all packages with mysql in their name were purged. I tried a sudo apt-get install mysql* But, it also selected packages that ...
8
votes
3answers
894 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 ...
12
votes
3answers
7k views

Why does update-mime-database complain about uri/rtspt and other unusual types?

When running update-mime-database - usually automatically launched by apt-get - why do I reliably get complaints like: Unknown media type in type 'all/all' Unknown media type in type 'all/allfiles' ...
3
votes
2answers
2k views

Can I use apt-get or aptitude to install software to non standard location?

When I install a software using apt-get it installs to default locations i.e to /usr/bin, /usr/lib, /usr/share and etc. For example when I install "Meld Diff Viewer" using sudo apt-get install meld ...
4
votes
2answers
161 views

What will be the default set of package management tools in future versions of Ubuntu?

With the introduction of Ubuntu Software Centre, I remember reading, though I can't find any reliable source right now, that the various package managers were going to eventually be deprecated. ...
17
votes
4answers
19k 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. ...
6
votes
2answers
737 views

How to upgrade to a newer version of a package than is available in the repository?

While using an open source genealogy program I encountered an error. I submitted a bug report and the author quickly fixed the problem (Yay for open source!). Now I want off course to try the latest ...
1
vote
2answers
2k views

How to quietly install LDAP on Ubuntu client

I'd like to install libpam-ldap to use ldap on a client machine and I was hopping to use sudo apt-get install -qq libpam-ldap to quietly install the package as part of a bash script used to ...
2
votes
2answers
206 views

determining the source for a package upgrade

Running aptitude dist-upgrade on my system currently results in an attempt to upgrade a few packages. All of these packages are being flagged as "untrusted packages" which "could compromise your ...
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?
5
votes
1answer
593 views

Can you recommend a good tutorial on building custom package versions?

After installing Ubuntu 11.04 I was disappointed by the fact there are still Scala 2.7 (when 2.8 is long ago current actual branch) and Mono 2.6 (when pretty a time has passed after 2.8 release). I am ...
13
votes
1answer
4k views

How to fake a package version installed?

Being an early adopter and using 11.04 daily builds I sometimes meet a situation when some packages require earlier versions of other packages than those I have installed. Usually newer (but refused) ...
2
votes
1answer
2k views

Ubuntu Extras keyring error [duplicate]

Recently I got lots of GPG errors and tried the following methods at various stages: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3E5C1192 sudo apt-get install -reinstall ...
531
votes
16answers
772k 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?
8
votes
1answer
3k views

What does Ign mean in update manager? [duplicate]

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 ...
17
votes
5answers
23k 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 ...
2
votes
2answers
579 views

How to recreate cache for “APTonCD” after cleaning cache through apt-get clean?

I recently had to opt for cleaning my cache through apt-get clean after getting lots of GPG errors during update. But it's created another problem for me since I want to create an "APTonCD" for ...
3
votes
1answer
582 views

What do these apt commands do?

What do these commands do? Acquire::http::No-Cache=True -o Acquire::BrokenProxy=true update Acquire::http::Max-Age "0"
1
vote
4answers
2k views

How to fix GPG error/BADSIG while running apt-get update? [duplicate]

Possible Duplicate: What is the easiest way to resolve apt-get BADSIG GPG errors? Of late, I've been getting this long list of errors every time I run apt-get update from the terminal. ...
1
vote
2answers
1k views

Error installing a package: “trying to overwrite directory /usr/share/pixmaps”

I'm trying to install a package from a PPA I've added. (Yes, I'm the author of the package if that helps in any way.) Running a simple install command yields the following: xxxxx@xxxxx:~$ sudo ...
2
votes
5answers
6k views

Unconfigured package error: Package apache2.2-common is not configured yet

While executing apt-get install python-setuptools or apt-get upgrade, there are about a dozen of dependency errors, the top three are: apt-get install python-setuptools Reading package lists... ...
8
votes
3answers
906 views

Clean removal of KDE 4

I recently installed KDE in to my Ubuntu 10.04 machine using apt. (i.e apt-get install kde-desktop) After a while I got enough with the testing and wanted to have gnome again. So I removed all the ...
5
votes
2answers
3k views

How can I make Chromium open apt links with xdg-open?

Hello I installed this extension because I want to open apt links clicked in Chromium with xdg-open. I have looked at this help but haven't been successful. How can I acheive this?