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)

18
votes
4answers
68k views

How do I upgrade PHP version to the latest stable released version?

I'm using a system running on Ubuntu 12.04 LTS 64-bit OS. I'm currently using following PHP version on this machine: Command used to get the below info at terminal : php -v Details I got are as ...
18
votes
6answers
25k views

How can I pause/resume an apt-get update process in a terminal?

My Internet gets paused sometimes because of change in the 3g signal strength and I've to restart the whole apt-get update process again! Each update consumes 13-15 mb and every mb costs here!! Can I ...
18
votes
1answer
20k views

“no public key available” while upgrading using update-manager

I decided to upgrade sudo update-manager -d Then it's opening the update-manger GUI. After clicking the upgrade button It's return the below error list: W:There is no public key available for the ...
18
votes
3answers
25k views

Is it safe to use the command apt-get autoremove in this particular scenario?

The last time I used sudo apt-get autoremove, nearly every important display driver or parts got deleted. This made me very squeamish about using the command again. However, each time I install ...
18
votes
3answers
33k views

Do files at /etc/apt/sources.list.d need to have an extension '.list'?

In /etc/apt/sources.list.d I have several files for custom repositories. All the names of those files end with .list. Is it obligatory that files in that folder should end with that extension? If yes,...
18
votes
1answer
6k views

Why does my 64-bit system look for 32-bit repos?

I've got a 64-bit 12.10 install on my Laptop. When running apt-get update, it downloads package lists for 32-bit packages (as well as source and 64-bit package lists). Why does it look for 32-bit ...
18
votes
1answer
33k views

How to install Tomcat 7.0.42 on Ubuntu 12.04.3 LTS?

The sysadmin gave me a virtual machine which I access through terminal. I have root access and it got Ubuntu 12.04.3 LTS. The command apt-cache policy tomcat7 informs: tomcat7: Installed: (none) ...
18
votes
5answers
13k views

How to get the native version of Spotify running?

A while ago Spotify (the streaming music service) came out with a preview for Linux of their client. I have successfully been able to run it on 10.04. Now that I am on 10.10, I cannot seem to find it ...
18
votes
2answers
7k views

Can I enable bash-completion for the new apt command?

The new apt command, present in Ubuntu since 14.04, seems to be a really useful intersection of functionality between apt-get and apt-cache but the current version of bash-completion doesn't know ...
18
votes
3answers
256 views

Prevent Ubuntu from shutdown before background automatic updates complete

So there is a situation were I have installed a (x)Ubuntu 14.04 on a friend's PC. Automatic updates are set "download and automatic install updates". The problem is after some months of use, it ...
18
votes
5answers
83k views

How to downgrade from PHP 5.4 to 5.3

Recently I upgraded PHP to 5.4, but it seems to be failing on me because APC isn't working with it, however this gave me no choice but to downgrade to 5.3, how can I do this? I executed apt-get ...
18
votes
1answer
762 views

Is there a way to limit the bandwidth that Software Center uses?

Whenever I am downloading packages using Ubuntu Software Center (or any package manager for that matter), my Internet connection slows to an absolute crawl. In fact, most requests timeout. Is there a ...
18
votes
1answer
40k views

Removal of unused dependencies using “autoremove”

I thought running apt-get autoremove without any following argument removes all unused dependencies left on the system, while running apt-get autoremove xxx removes xxx and its unused dependencies. ...
18
votes
1answer
39k views

Apt-get saying “Unable to correct problems, you have held broken packages.” [duplicate]

Possible Duplicate: How do I resolve unmet dependencies? TL;DR: sudo apt-get install ... saying "Unable to correct problems, you have held broken packages." The problem I was trying to ...
17
votes
6answers
94k views

Permission denied, are you root?

I get this error whenever I try to install programs using the terminal: home@ubuntu:~$ apt-get install myunity E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable ...
17
votes
1answer
44k views

GPG ERROR NO_PUBKEY : WARNING: The following packages cannot be authenticated! [closed]

I have just stared to receive some strange errors regarding GPG keys. Namely I have just added ppa:ubuntu-toolchain-r/test and wanted to update and after that I got this: W: GPG error: http://extras....
17
votes
2answers
25k views

What's the difference between apt-get install and apt-get build-dep?

On the apt-get man's page, one can find this: install pkg(s) This option is followed by one or more packages desired for installation. Each package is a package name, not a fully qualified ...
17
votes
3answers
19k views

apt-get: No space left on device (12.04)

I have read every thread I could find -- even the ones that say that the question has been answered elsewhere but none of them address the specific issue I am having. Update Manager ran and produced ...
17
votes
2answers
15k views

upgrade git on Ubuntu 10.04 (Lucid Lynx)

I currently have Git 1.7.1.0 installed but need to upgrade to 1.7.1.1 (at least). I tried running: sudo apt-get update sudo apt-get upgrade and also tried sudo apt-get install git-core but each ...
17
votes
13answers
44k views

Installing Skype on Ubuntu 13.04 64-bit

Here is what I tried: $ sudo apt-get install skype [sudo] password for umpirsky: Reading package lists... Done Building dependency tree Reading state information... Done Some packages could ...
17
votes
3answers
32k views

How can you unhold (remove a hold on) a package?

I used synaptic to lock the version of pidgin-data - how can I change the status from hold back to normal, so that it gets upgraded properly? The PinningHowto says that doing an apt-get install ...
17
votes
1answer
21k views

Where do packages installed/upgraded with APT get stored?

As time goes by we tend to do apt-get install and add or replace software. Are these archived in some form or do they get auto-cleared after installation? And if it doesn't get auto-cleared, it would ...
17
votes
2answers
7k views

How to forbid a specific package to be installed?

Can I configure Ubuntu to never install a specific package even if it is required by another package I install?
17
votes
2answers
10k views

VirtualBox 5.0 installation has broken VirtualBox packages on Kubuntu 15.04

Seeing that there was a new VirtualBox release, I tried to install it on Kubuntu 15.04... However, now all of my VBox 4.3 packages in the ubuntu repositories are broken (Virtualbox is provided by ...
17
votes
1answer
81k views

remove package with apt-get or dpkg [duplicate]

I am just wondering if I want to remove a package from my system say google-chome-stable, i have two ways of doing it: sudo apt-get remove google-chrome-stable and dpkg -r google-chrome-stable ...
16
votes
1answer
20k 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 -- https://launchpad.net/~fkrull/+...
16
votes
1answer
45k views

How to solve configure: error: readline library not found?

I have an Ubuntu 10.04 LTS server with a minimal install that I want to compile postgres on. With the minimal install the server did not have gcc so I had to do an apt-get install gcc but now I keep ...
16
votes
3answers
16k 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?
16
votes
1answer
836 views

How do the various APT package removal commands differ?

What's the difference between these commands? sudo apt-get autoremove --purge packagenames sudo apt-get remove --purge packagenames sudo apt-get purge purge packagenmaes sudo apt-get remove ...
16
votes
3answers
9k views

APT wedged by kernel version mismatch

Apt is seemingly unable to do anything useful for me, repeatedly giving messages of this form: dpkg: dependency problems prevent configuration of linux-server: linux-server depends on linux-image-...
16
votes
3answers
16k views

How to clean var/cache/apt in a way that it leaves only the latest versions of each package

I want to know a way to clean the var/cache/apt folder in a way that it only leaves the latest version of a package if it has several versions or it leaves a package if it is the only one of that ...
16
votes
2answers
2k 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 ...
16
votes
2answers
5k 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) ...
16
votes
1answer
15k views

How to solve “Extra junk at end of file” when using apt?

I'm trying to configure some proxies for a guest virtual machine and now I'm getting: sudo apt-get update E: Syntax error /etc/apt/apt.conf.d/95proxy:4: Extra junk at end of file The content of the ...
16
votes
5answers
37k views

What is the command line equivalent for the update manager?

When I do sudo apt-get update sudo apt-get upgrade Sometimes the Ubuntu GUI Update Manager will still have some items left. e.g. “Complete Generic Linuux kernel”. I know there's also sudo apt-get ...
16
votes
1answer
75k views

What does apt-get --fix-missing do and when is it useful?

From the man page: -m, --ignore-missing, --fix-missing Ignore missing packages; if packages cannot be retrieved or fail the integrity check after retrieval (corrupted package files), hold back ...
16
votes
1answer
13k views

What is the advantage of using sudo apt-get autoremove over a cleaner app?

I'm not overly sure what sudo apt-get autoremove does, but have read that you should use this to remove any unnecessary packages. One of the processes I saw was to use sudo apt-get autoremove and ...
16
votes
4answers
19k views

Why does “tasksel” give an “aptitude failed” error?

The problem started in the following way. I was using tasksel from the terminal menu that it shows when I simply do sudo tasksel. I select Lamp Server from the list and started to install all packages ...
16
votes
2answers
6k views

Consequences of using apt-get in ubuntu touch

I have just received my BQ Aquaris E4.5 Ubuntu edition. I have been playing around with it and find that it is just what I expected it to be. One of the great things about it is a full ubuntu stack, ...
16
votes
0answers
6k views

How to find and delete duplicated sources list entries? [duplicate]

Is there a command line to find and delete duplicated entries in the /etc/apt/sources.list file? or is this possible via synaptic perhaps?
15
votes
7answers
97k views

How do I add a line to my /etc/apt/sources.list?

I am updating my Tor on Ubuntu and it states: Do not use the packages in Ubuntu's universe. You'll need to set up our package repository before you can fetch Tor. It then states that I have to ...
15
votes
9answers
89k views

Can't install Skype 4.3 on Ubuntu 14.04 64 bit

First of all, I think this question is not duplicated, because I have tried all other solutions I found here, but nothing solved my problem. I use Ubuntu 14.04 64 bit. I have tried until now: sudo ...
15
votes
4answers
6k views

How to know last time apt-get was executed?

I known that the command to update the repository lists is apt-get update. How to check if it has been executed today or in the last 24 hours? I do not known if should check some file timestamp. Or ...
15
votes
8answers
93k views

How to fix a broken package, when “apt-get install -f” does not work? [duplicate]

I tried to install Scala with the typesafe stack and got into trouble. Now I cannot do much with apt (except update), the broken package seems to be impossible to remove/clean: Here's the result of ...
15
votes
2answers
13k views

apt changelog for to-be installed packages [duplicate]

GUI update-manager is able to show the "changelog" of packages to-be installed (not downloaded yet). I also found out how to provide the .changelog files in the right place for update-manager to show ...
15
votes
2answers
24k views

After doing a sudo apt-get install <app>, where does the application get stored to? [duplicate]

After installing apps via apt-get install -app name-. Where does the files get copied to? Are the copied to just one location or multiple locations? And if so how do I find this out? Here's an ...
15
votes
3answers
4k views

How can I prevent apt-get/aptitude from showing dialogs during installation?

I'm trying to build an Ansible Playbook to deploy some Ubuntu 12.04 servers on Linode, but my problem seems to be an Ubuntu one. When I run different combinations of apt-get or aptitude I always get ...
15
votes
5answers
228k views

Apt-Get Update: failure to fetch; can't connect to any sources

I realize there are dozens of "apt-get update: failure to fetch" questions (I read through all I could find), but my present circumstance is unique to 12.04 and it affects all sources; not just ...
15
votes
3answers
13k views

How to install a fingerprint reader on Lenovo ThinkPad

I have a Lenovo ThinkPad with a fingerprint reader: How to make Ubuntu recognise it and use it for login? I already tried: sudo add-apt-repository ppa:fingerprint/fingerprint-gui sudo apt-get ...
15
votes
3answers
762 views

How are packages suggested and what is the difference between extra and new packages?

When installing a new package via apt-get install, I usually just tick yes if it is a program I need/want, but, I read through it, and, I am a little curious as to what the sections actually mean. ...