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)

14
votes
5answers
36k views

How can I completely remove xfce4 when apt-get remove --purge doesn't work?

Starting with a Ubuntu server, I wanted a window manager, so I installed xfce4. I used sudo apt-get install xfce4 to do this. To remove it, I used sudo apt-get remove --purge xfce4 which ...
3
votes
1answer
1k views

How to recover from uninstall of ubuntu-desktop?

In my infinite wisdom, during a system upgrade, I somehow managed to remove 'ubuntu-desktop' and several other key packages. As a consequence, my desktop is now gone - I only see a standard X terminal ...
3
votes
3answers
7k views

How to install a different version of python-dev?

The default python version on my ubuntu system is 2.7, but 2.6 is still present. I've installed headers (apt-get install python-dev), since it's needed to compile and install python packages, for ...
3
votes
1answer
10k views

apt-get install python-software-properties dependency problems

So, I was trying to add a repository using add-apt-repository and I got this error: sudo add-apt-repository ppa:gijzelaar/opencv2 [sudo] password for foo: Traceback (most recent call last): File ...
1
vote
1answer
461 views

Ubuntu Software Center Error: Failed to lock the package manager

Ever since I installed Ubuntu 10.10 I've been getting this error when trying to install ANYTHING via software center and have only been able to install software via Synaptic and apt-get. I 'm sure ...
1
vote
1answer
1k views

How do I remove a package with “rU” status?

I was trying to install some 32bit libraries with dpkg -i --force-architecture command. But it failed due to dependency problem. Now if I try to install 64 bit version of the same library, it says it ...
3
votes
1answer
698 views

How to troubleshoot apt-get connection problems? [duplicate]

Possible Duplicate: timeout errors in apt-get update/install I am working at a client where there is no proxy server for connecting to the internet. I can download URLs with wget from the ...
3
votes
2answers
347 views

Is it possible to prevent the installation of a required package?

If you install a program which depends on a number of other packages which are not installed, then apt-get automatically installs those dependencies. In allmost all cases this is the desired ...
0
votes
1answer
466 views

Not able to Upgrade my ubuntu distro

I am using My ubuntu 10.04 lucid.I wanted to do upgrade my distro to 10.10.When i am doing distro upgradation in update manager.i get the Error Message.i have tried even via console as well as I am ...
2
votes
1answer
323 views

When I want to reload synaptic package manager, I get an error

When i click reload after few minutes I get this error : W: Failed to fetch gzip:/var/lib/apt/lists/partial/ir.archive.ubuntu.com_ubuntu_dists_natty_ universe_binary-i386_Packages Hash Sum ...
4
votes
1answer
622 views

Bypassing excessive dependencies when installing r-base-core

I'm trying to install R (via r-base-core) on an ubuntu 10.10 server. It is trying to install all of the following: The following NEW packages will be installed: apt-xapian-index apturl ...
8
votes
1answer
234 views

Annotating packages at installation to ease maintenance with apt / aptitude

I manage my packages with aptitude. I occasionally go through my list of packages, removing obsolete applications (in the sense that I do not want to use them any more). For example, while I have a ...
1
vote
2answers
1k views

Rollback Xubuntu-desktop install: Change GDM Theme

I recently installed xubuntu-desktop but much to my dismay, lots of applications came with it that I didn't want. I apt-get removed xubuntu-desktop but it turns out I had to go through each ...
12
votes
1answer
16k views

What exactly does sudo apt-get -f install do?

I have seen it before. I am just wondering what exactly does it do?
1
vote
1answer
139 views

What is the best way to deal with local DEB packages (i.e. ones not installed from repos)? [closed]

I just want a "guru's opinion" on the best way to deal with those pesky little "singleton" debs that you don't get out of any APT repo. For example google-chrome (I know they finally made a repo), ...
3
votes
1answer
2k views

How do I ignore a conflicting package on a regex match in apt-get?

I'm trying to install all but one of the R packages which are currently in the Ubuntu repositories: However, when I go to do so sudo apt-get install 'r-cran-*' I get an error: Some packages could ...
7
votes
1answer
464 views

Why is Update Manager getting stuck unless I hit 'q'?

When I try to install updates (via either Update Manager or apt-get upgrade) the usual apt upgrade process is stopped as it shows me some changelogs, for example: Nothing will happen until I hit ...
16
votes
1answer
2k 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?
5
votes
4answers
6k views

Find (and reinstall) packages with corrupted files (without breaking anything)

I usually prefer to fix a Linux system than to reinstall from scratch. My computers have seen many distribution upgrades and a list of PPAs or third-party repositories. APT usually makes sure that ...
7
votes
4answers
969 views

CPAN vs. APT: Conflicts in versions?

I can't find the answer to this anywhere: Does a module installed via APT conflict with one installed via CPAN? Along with that question are these: Where does the installed CPAN modules live? Are ...
8
votes
1answer
11k views

Force apt-get to overwrite file installed by another package

(I realize a similar question was asked before but the answers there don't handle these details) I'm on Ubuntu 10.10 and need both python2.5 (coming from deadnsakes -- ...
4
votes
2answers
120 views

Is there a way to use the search functions of synaptic from the command line?

I love Synaptic's ability to search the repo for both installed and uninstalled packages, but I would like to use this same ability through the apt command line utility, so I can search for packages ...
1
vote
1answer
332 views

Danger of using an untrusted apt mirror or proxy

My vague understanding of the authentication mechanisms behind debian/ubuntu packaging tells me that it should be safe to install packages downloaded from an untrusted server or proxy as long as apt ...
5
votes
2answers
375 views

Is there an RSS feed that alerts subscribers of new/updated packages in the official repositories?

I'm a serial apt-getter (running it often throughout the day), and I find it a great way to see where Ubuntu developers are most active. That being said, an RSS feed would probably be a smarter/safer ...
0
votes
2answers
234 views

APT user guide and where can I find it?

I am trying to get hold of the APT user guide to browse some of the more advanced options other than just apt-get etc. however whenever I type man aptI get a message telling me manpage is not loaded. ...
7
votes
5answers
46k views

How I do a system restore?

Problem I Faced I installed something that crashed my Wifi drivers that I compiled earlier. Un-installing the same package doesn't helped. Finally, I re-compiled my wifi drivers and things are good. ...
4
votes
2answers
2k views

Repository down? How do I workaround?

I'm getting the following errors while trying to install Samba on a ubuntu server 10.04 LTS instance: Failed to fetch ...
11
votes
2answers
12k views

Install MS Truetype Fonts system-wide for all users

I would like to install the MS Truetype Fonts that come through the package ttf-mscorefonts-installer, so I did: sudo apt-get install ttf-mscorefonts-installer Accepting the license, the process ...
36
votes
2answers
80k views

How do I install svn?

I am trying to install svn and am running into issues. The command I am running is sudo apt-get install svn. When I run this, I get the error "Unable to locate package svn". Why is this? How do I ...
2
votes
1answer
6k views

Completely uninstallation LAMP

I just install LAMP by using a command line. sudo apt-get install lamp-server^ it's work! then I needed to uninstall them so I tried to sudo apt-get remove lamp-server^ by the way, It's show me to ...
1
vote
1answer
3k views

How to download a package for offline installation? [duplicate]

Possible Duplicate: How can I install software offline? sudo apt-get install {x} ex: X = ghdl I want download the package "X" to my USB . How can I do that ? Second, my computer ...
4
votes
1answer
670 views

Reload Package List -> Downloading Translation… failed

When using Synaptic with Ubuntu 11.04, it always tries to download lots of translation repositories, but the calls fail. This hasn't happened for me with earlier versions of Ubuntu. It's pretty ...
0
votes
1answer
381 views

Why does my apache still do nothing after a complete purge and reinstall?

I followed this guide, to the best of my understanding: https://help.ubuntu.com/community/ApacheMySQLPHP And I'm stuck right after the install. Here's what I did so far: since I already had a ...
13
votes
3answers
11k views

How can I install a package without installing its dependencies?

I'm trying to install Alacarte and the dependencies are huge, basically all of GNOME. I know that they are unnecessary. Is there an option in Synaptic or an apt-get flag for this?
18
votes
2answers
12k 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 ...
8
votes
2answers
609 views

How to cross-compile an existing deb package from 64bit to 32bit architecture

I have rebuilt a deb package with a custom patch for my computer which is a 64bit machine. I did it using: sudo apt-get -b source [package name] Now my question is, how to do that in a similar ...
2
votes
1answer
1k views

How to cancel software upgrade

When I turned my computer on today, I opened a terminal and ran sudo apt-get update followed by sudo apt-get upgrade. But I read on OMG! Ubuntu that the latest version of Wine, 1.3.25, "breaks audio ...
1
vote
1answer
6k views

How do I install missing dependencies on my system?

I was fooling around trying to fix this problem, and I removed some important packages. When I realized that it was cleaning out more things that I had intended, I just rebooted, rather than try to ...
6
votes
1answer
101 views

Is it normal for Alpha versions to randomly uninstall packages?

I've been running Oneiric Alpha on a laptop, since the ati drivers in natty aren't new enough for the hardware. In general it's worked well; naturally there are the occasional crashes and bug reports. ...
3
votes
2answers
119 views

Is is possible to have a different sources.list file on the same machine, and each assigned to a different user account?

I want to set up a user account on my laptop to access the network of my office, and in order to do that i need to install applications using my office ubuntu repos, is it possible to create a sources ...
0
votes
1answer
4k views

apt-get update error: Unable to find expected entry contrib/source/Sources in Meta-index file

I've made a horrible mistake and removed gtk (and all linked packets, including gnome). After that, I've recovered my GUI with sudo apt-get install ubuntu-desktop and most of key packets, but now I'm ...
5
votes
3answers
2k views

How to cleanly remove a badly installed .deb?

Whenever I try to use dpkg or apt-get, I get the warning: dpkg: warning: parsing file '/var/lib/dpkg/available' near line 12674 package 'jarnal': error in Version string 'build901': version number ...
2
votes
4answers
2k views

How can i fix some broken packages PyQt packages?

I'm trying to install PyQt but i've met some difficulties (i.e packages that won't be updated and stuff like that). I'm not very proficient with Ubuntu, so some help is needed. Here's the output i get ...
11
votes
1answer
3k views

How do I ignore a proxy if not available?

Following the instructions in Best way to cache apt downloads on a LAN?, I've set up a caching proxy in my local network. Since that machine is not always up, I'd like to be able to refresh the ...
6
votes
1answer
6k views

How to properly remove packages

I would like to uninstall some packages, but I find that after I run the sudo apt-get remove <package-name> command I still have log files or other types of files running around. Is there a way ...
14
votes
2answers
1k views

What is apt-fast and should I use it?

Several times over the past couple years, I've heard of people using apt-fast for updating and installing packages, but I'm not really sure what it does. I think I've traced its origin to this forum ...
21
votes
6answers
12k 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 ...
6
votes
1answer
739 views

Use a PPA with a Password while still using Apt-cacher-ng?

I'm using apt-cacher-ng to cache package downloads for my LAN. I'm also using the Ubuntu Beta fonts PPA which requires a password for access. I keep getting the error bjorn@bjorn-laptop-natty:~$ ...
5
votes
3answers
2k views

Why does /var/cache/apt/archives keep deleting files

I normally download all .deb packages and just copy the packages from /var/cache/apt/archives directory to the rest of the computers, saving me to have to download all the updates and programs again. ...
1
vote
2answers
486 views

Can I save a copy of the LAMP stack locally?

Is there any way to download LAMP and save it to the HDD so next time if i install a newer Ubuntu i dont have to download it again ? I just switched to Ubuntu today, is there anyway to save the EXE ...