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)

3
votes
2answers
3k views

How to fetch the latest version of MySQL using tools like APT? [duplicate]

Possible Duplicate: How do I upgrade MySQL to 5.5, am I best off waiting for it to be available through apt-get? This fetches revision 5.1 only: sudo apt-get install mysql-server but ...
19
votes
4answers
45k views

How can I reinstall Apache HTTPD after deleting some of the configuration files?

I recently was messing around with my Apache config and wanted to reinstall so I could start from fresh. I followed some forum posts about reinstalling the apache2 package and this ended up deleting ...
5
votes
2answers
2k views

How do I find all of my software sources?

Broken software dependencies are often caused by incompatible third party repositories. I am asked to provide a list of software sources (also known as software repositories). How can I quickly get a ...
3
votes
1answer
628 views

Filenames in the apt cache directory

Why the packages in the directory /var/cache/apt/archives/ have names like: *x11proto-damage-Dev_1%3a1.2.0-1_all.deb* where the "strange" in this case is "%3". In fact, if I download it ...
2
votes
3answers
23k views

How do I install the build dependencies for Android?

I'm trying build the Android source using these packages. ButI am getting this error: $ sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib ...
0
votes
0answers
6k views

How to install packages which apt-get can't find? [duplicate]

Possible Duplicate: How do I install the build dependencies for Android? Hi, I need these packages to build android source. But I am getting this error: $ sudo apt-get install git-core ...
4
votes
4answers
2k views

dpkg behaving strangely?

When I use apt to get a package, I have been receiving the same error message. Here is an example trying to install wicd (which is already installed): Reading package lists... Building dependency ...
6
votes
2answers
2k views

In 'apt-cache depends' output, what is the meaning of Suggests, Recommends, |, <>?

I've checked the man/info page, but there is no reference to some aspects of the output fomat of apt-cache depends The man/info page tried to be helpful (in an obtuse manner); quote: "For the ...
4
votes
0answers
5k views

How do I fix “The package lists or status file could not be parsed or opened” during an update? [duplicate]

Possible Duplicate: “Problem with MergeList” error when trying to do an update I have a problem with the update-manager. It gives the following message error: E:Encountered ...
0
votes
0answers
299 views

Grub-pc installing error [duplicate]

Possible Duplicate: Grub-pc installing error Trying to fix my apt-get upgrade, it always stopped at setting up grub-pc... I read somewhere that I should purge remove my grub2 and then ...
2
votes
3answers
78 views

Avoiding backing up system-managed files

I'd like to do thorough backups, but want to avoid backing up files which can be replaced via apt. Does this effectively just consist of omitting /usr, with the exception of /usr/local, as well as ...
3
votes
2answers
278 views

Will Ubuntu make use of PackageKit?

The primary design goal of PackageKit is to unify all the software graphical tools used in different distributions. Has Ubuntu any plans for adoption?
4
votes
2answers
6k views

How can I roll back xserver-xorg-core and xserver-common?

A recent update to Xorg broke my desktop, which now looks like this: In short, the desktop background is not updating on the secondary display. (And if there is no secondary display, the primary ...
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 ...
9
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
694 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
3k 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 ...
29
votes
9answers
95k 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
919 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
4k 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
3k 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
862 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
6k 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
929 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 ...
45
votes
3answers
28k 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
354 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 $ ...
19
votes
2answers
9k 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
2k 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
38k 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
523 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
16k 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
968 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
306 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
850 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
6k 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
159 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. ...
16
votes
4answers
17k 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
685 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?