Tagged Questions

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)

2
votes
1answer
4k views

Which INPUT rules do I need to add to iptables so apt (apt-get, aptitude) can work (update, upgrade, search, install)?

I need to use aptitude to update and install software but it fails. It says... 0% [Connecting to archive.ubuntu.com] ...and halts. I need to type CTRL-C to move out. I'm using Ubuntu Server 10.04 ...
6
votes
1answer
252 views

Are bad download speeds considered normal after a release of a new Ubuntu version?

Installing new packages on my recently installed Ubuntu machine is slow. Fetching apt headers even took me more than three minutes because they are downloaded at ~20kB/s – in my case from ...
0
votes
2answers
729 views

How to do autoremove when executing apt-get remove?

I wanted to remove un-used packages together when doing apt-get remove -y XX , but how ? And the solution should not affect apticron auto system updates.
35
votes
3answers
21k 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 ...
3
votes
1answer
2k views

apt-get gets “duplicate source entries” and two architectures

Since I upgraded to Oneiric apt-get seems to ignore my architecture and gets the sources for both, amd64 AND i386, files from the repositoreis. this leads to constant "duplicate source entries" ...
76
votes
5answers
111k views

How can I fix a 404 Error when using a PPA or updating my package lists?

PPA seems to be constantly offline. Whenever I use sudo apt-get update, this error is shown: W: Failed to fetch http://ppa.launchpad.net/ 404 Not Found How do I fix these errors?
0
votes
1answer
3k views

“apt-get update” GPG error [duplicate]

Possible Duplicate: What is the easiest way to resolve apt-get BADSIG GPG errors? Unable to load lucid partner packages from archive.canonical.com When I run: apt-get update I get this ...
1
vote
0answers
480 views

Unable to load lucid partner packages from archive.canonical.com [closed]

I'm trying to load packages from the archive.canonical.com lucid partner repository, and am getting: W: GPG error: http://archive.canonical.com lucid Release: The following signatures were invalid: ...
39
votes
5answers
10k views

apt-get update only for a specific repository

When I add a ppa and I want to install some of its content is quite annoying to re-update all my apt list using apt-get update Is it instead possible to only sync the content of a given repository?
11
votes
1answer
14k views

Implications of --no-install-recommends (apt-get install)

When I install packages using --no-install-recommends, can I say only packages listed here (Ubuntu Package Search) as "depends" are installed? I ask because I suspect some problems with boot might be ...
0
votes
2answers
3k views

How to use apt-get install with suggested packages?

I read this related link Installing suggested/recommended packages? But my system(11.10) doesn't install suggested packages by default. Was there a change?
2
votes
2answers
3k views

How to install gcj? [closed]

It seems I need to install gcc but:
4
votes
1answer
127 views

Why does flashplugin-installer display a multi-line terminal progress when downloading?

I have this issue from MANY Ubuntu releases. why when I wget a file it takes just one row and give me all information (like time, total space, bit downloaded, percent) When downloading flashplugin ...
3
votes
2answers
291 views

Aptget without networking

i had a accident and i removed network-manager package, now i cannot get network access or internet access to apt-get install it back and reconfig the internet what should i do? download the DVD and ...
3
votes
0answers
5k views

Reloading the package manager gives a GPG error [duplicate]

Possible Duplicate: What is the easiest way to resolve apt-get BADSIG GPG errors? Reloading the package manager gives me an error: W: GPG error: http://security.ubuntu.com oneiric-security ...
3
votes
3answers
2k views

How do I upgrade Virtual Box?

When I run sudo apt-get update;sudo apt-get upgrade in Ubuntu 11.04, I get the exception below. VirtualBox is currently on '4.1.2'. I have installed apt-cacher-ng on this machine and install apt-get ...
1
vote
1answer
750 views

flashplugin-installer conflicts with libc-bin?

I recently installed 11.10b2, and when I try to install Adobe Flash, apt tells me that it conflicts with libc-bin. That doesn't sound quite right. Below is the output of sudo apt-get install ...
13
votes
1answer
5k views

Should I upgrade kernel packages on EC2 instances?

On my EC2 server, when I do sudo apt-get update && sudo apt-get upgrade, I see: The following packages have been kept back: linux-ec2 linux-image-ec2 linux-image-virtual linux-virtual ...
3
votes
2answers
3k views

How do I install lmsensors on a server?

I am trying to install lm-sensors on ubuntu server 11.04 with the following command sudo apt-get install lm-sensors, but I am getting the following error: Error Package lm-sensors has no ...
0
votes
1answer
201 views

Easy Native Package Rebuild [duplicate]

Possible Duplicate: Recompile all packages and trigger on updates What's easiest way of to rebuild a package in Debian/Ubuntu using a specific set of CFLAGS/CXXFLAGS. In all the tutorials I ...
3
votes
1answer
1k views

Disable changelog for apt-get upgrade?

I'm on a relatively slow network, also I don't really care about changelogs, but each time I'll wait for longtime till updates are installed, just for loading changelogs from remote server. How can I ...
0
votes
2answers
1k views

automatic system updates , how to configure APT::Periodic::AutocleanInterval to clean obsoleted cache only?

I've been using auto update for a while, but recently I discovered the downloaded package cache missing in /var/cache/apt/archives, some deb packages, like Skype, are removed, and I don't know why. ...
1
vote
2answers
426 views

Installing Unity on 10.04 for netbooks

I have installed Ubuntu 10.04 LTS netbook version and it comes with an annoying user interface. I'd like to know how I can replace it with Unity. I've already tried sudo apt-get install unity but it ...
4
votes
3answers
6k views

“/etc/grub.d/README: 6: Syntax error: ”(“ unexpected” while upgrading grub package

I am facing a problem while installing any program. I get an error of Sub-process /usr/bin/dpkg returned an error code (1). Following is log of the output of apt-get -f install. Any idea what's wrong ...
3
votes
1answer
5k views

Apt-get returning 'Sub-process /usr/bin/dpkg returned an error code (1)" error [duplicate]

Possible Duplicate: Apt-get returning 'Sub-process /usr/bin/dpkg returned an error code (1)" error I am facing a problem while installing any program. I get an error of Sub-process ...
6
votes
2answers
1k views

Slow installation of applications in Ubuntu Software Center?

I have installed Ubuntu 11.04 desktop and I am in the process of learning. I want to install some applications from the Ubuntu Software Center, but the installation process is quite long and slow. ...
2
votes
0answers
1k views

How to set apt options like “Acquire::http::No-Cache=true” in preseed.cfg [closed]

Something on our company's network is causing some apt updates to fail during an unattended install. We recently discovered that we can fix the apt problem on a previously successful installation ...
2
votes
2answers
340 views

Remove specified packages if they have no dependencies

I installed a package by mistake and immediately removed (purged it to be exact) it, but other than the package itself, none of the dependencies that installed alongside was removed. I do not know if ...
2
votes
2answers
857 views

enable auto-completion of apt-get for non-privileged user?

I've enabled apt-get in SUDO without password , and bash autocompletion for it need to be enabled as well , but how ? If i try to source that file: %> . /etc/bash_completion.d/apt No command ...
5
votes
2answers
3k views

timeout errors in apt-get update/install

I'm trying to do an apt-get update or apt-get install xyz and I'm seeing timeouts like this: W: Failed to fetch http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/dists/oneiric-updates/Release.gpg ...
0
votes
2answers
431 views

How do I fix an error while updating packages cache? [closed]

When I try to update in Ubuntu 11.04 after installation, I get the following error E: Some index files failed to download. They have been ignored, or old ones used instead. I tried the following ...
0
votes
1answer
2k views

How to install libnss3-dev?

My installation failing log: sam@/home/sam/code/ros/ai/cram/roslisp_repl$ sudo apt-get update Get:1 http://packages.ros.org maverick Release.gpg [198B] Ign http://packages.ros.org/ros/ubuntu/ ...
4
votes
3answers
2k views

How to use apt-get to install packages without one specify package?

For example: The following command will install all packages that match it's pattern: sudo apt-get install k3b-* If I want to use that instruction but don't want to install one specific package ...
2
votes
1answer
1k views

Is there a newer version of snort available?

The Snort version available for Lucid is 2.8.5.2, for which snort rules are not available anymore. Is there a ppa for the updated version of snort or are there any good tutorials for installing snort ...
26
votes
6answers
4k views

Why the software center doesn't allow multiple downloads?

I was wondering why the software center doesn't download all the requested apps and install one by one as they finish to download. Or instead why the software center doesn't download an app while the ...
0
votes
2answers
1k views

How do I install an older version of the php5-mhash package?

I have my PHP Version pinned at 5.2.x, Here is the command line output php -version PHP 5.2.10-2ubuntu6 with Suhosin-Patch 0.9.7 (cli) (built: Oct 23 2009 16:30:10) Copyright (c) 1997-2009 The PHP ...
3
votes
2answers
16k views

How to update software through proxy? [duplicate]

Possible Duplicate: apt-get does not work with proxy I am a newbie to Ubuntu/Linux. I am using Ubuntu in office campus and we have a proxy server. I want to update or install new software ...
0
votes
2answers
407 views

Login and install packages when no DM is installed

I recently updated a few machines to 11.10. On one of them, the promt to chose between gdm and lightdm. I tried selecting light dm, but the upgrade tool inevitably returned to the same prompt. I then ...
6
votes
3answers
9k views

Apt-get update with an @ in password error

I want to update ubuntu 11.04 throught apt-get. So I added the following lines in apt.conf export http_proxy=http://username:[email protected]:port/ export ...
4
votes
1answer
89 views

Is there a utility similar to “apt-file” that can search source packages?

I'm looking for a utility similar to apt-file that allows me to search the contents of source packages for certain files, rather than just binary packages. Is such a utility available for Ubuntu?
1
vote
1answer
1k views

Starting tomcat6 shows missing conf directory.

I've just installed Tomcat6 via apt-get on lucid. Looking at the directory created here: /usr/share/tomcat6 I was expecting a conf directory to be created under this (based on experiences ...
4
votes
1answer
324 views

sort the results from `apt-cache search <keywords>`

Is there a way to sort the results from apt-cache search <keywords>?
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 ...