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)

36
votes
3answers
120k views

E: Unable to correct problems, you have held broken packages

I am using Ubuntu 13.04 which I installed few days back. I am trying to install nodejs and npm. I tried to install from command line first and then uninstalled it. Then something broke. sudo apt-get ...
24
votes
9answers
40k views

Dropbox install stuck at 99%, how do I fix it? (and any dpkg errors)

I tried to install Dropbox using How to install Dropbox?, or with apt-get install nautilus-dropbox. Dropbox loads until 99% and then hangs, causing the system to go to 100% cpu usage. If I reboot or ...
12
votes
5answers
7k views

How to fix Ubuntu after accidentally uninstalling many packages?

I accidentally removed all the packages starting with the name jpeg with: sudo apt-get remove jpeg* This screwed up a lot of things, removed Unity, Firefox, Flash player etc. I somehow managed to ...
22
votes
3answers
9k views

apt-get remove with wildcard removed way more than expected. why?

Last night I was trying to burn CDs. Being annoyed with k3b and choosing to use brasero instead, I went to remove k3b. I typed in: sudo apt-get remove k3b I hit tab twice and saw that I had both ...
1
vote
4answers
13k views

Why do I get an “unmet dependencies” error when trying to install WINE? [duplicate]

When trying to install WINE (sudo apt-get install wine) I get the following error: Some packages could not be installed. This may mean that you have requested an impossible situation or if you are ...
407
votes
6answers
390k views

How to upgrade a single package using apt-get?

How do I update a single package? As far as man apt-get says apt-get upgrade doesn't take a package/list of packages as parameter: upgrade upgrade is used to install the newest versions of ...
59
votes
3answers
50k 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 apt-...
28
votes
10answers
111k views

407 Proxy Authentication Required

When I try to install a software using Ubuntu Software center I get: Failed to download repository information Check Your Internet connection When I try to do a apt-get install something, I get: ...
11
votes
2answers
33k views

Getting “'file' is different from the same file on the system” when I attempt to update through synaptic

Encountered an error while updating through Synaptic Manager. Subsequent updates gave the error at the bottom of the output. I'm a noob so any help is appreciated. al@al:~$ sudo apt-get -f upgrade ...
52
votes
2answers
44k views

apt get install vs pip install

I am a bit confused about the cases in which the above commands must be used when downloading python packages. I was trying to download a package named pyudev in accordance with an answer with this ...
26
votes
2answers
11k views

Seeing apt-get changelogs for to-be-upgraded packages

This question describes how to get the changelog for a given package. However, it's the whole changelog. What I'd like is a way to see what's changed in whatever I'm about to upgrade. For example, I ...
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 ...
16
votes
1answer
16k 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 ...
81
votes
2answers
34k views

What is the difference between dpkg and aptitude/apt-get?

When installing a software via dpkg -i packageA.deb, will the dependencies required by packageA be downloaded and installed automatically? How is this different from using apt-get or aptitude?
62
votes
5answers
7k views

Can I see why a package is installed?

For a specific package, can I find out why it is installed? So, can I see or it's manually installed, or that it is installed as a dependency of another package? Or that it is installed as part of ...
20
votes
5answers
38k views

Steam Install Error on 14.04 Ubuntu 64bit

I have tried some of the solutions posted elsewhere in the support forum, one seemed like it worked but after a steam update i found myself back at square one I am a new Linux user and am already at ...
15
votes
3answers
72k views

Configure proxy for APT?

I need to configure proxy. There wasn't apt.conf file in etc/apt/ so I've created it using nano. But I don't understand what I need to write there. I've written http_proxy = http://lgn:pwd@192.168....
11
votes
3answers
17k 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:password@proxyserver.net:port/ export ftp_proxy=http://username:password@...
10
votes
4answers
34k views

Old version of gcc for new Ubuntu

Is there a repository containing packages for old versions of gcc, for the latest Ubuntu. I want to install gcc3 alongside gcc 4, for programs that need gcc3 specifically.
72
votes
9answers
33k views

Generating list of manually installed packages and querying individual packages

I'd like to get a list of packages installed manually by apt or aptitude and be able to find out whether a foobar package was installed manually or automatically. Is there any neat way of doing that ...
147
votes
6answers
72k views

Is aptitude still considered superior to apt-get?

When I first started with Ubuntu using aptitude was the 'in-thing', with some stated improvements over apt-get. Am I correct in saying that apt-get has now 'caught up' with aptitude, and it makes ...
44
votes
7answers
151k views

Installing and testing CUDA in Ubuntu 14.04

I am uncertain about how to install CUDA in my system. looking around there are many tutorials about cuda on 12.04 LTS and a few on 13.04 and 13.10, but they all talk about acquiring a deb package ...
27
votes
1answer
12k views

Should I use tasksel, tasks in APT or install regular metapackages?

Tasksel or plain Apt? In the past I've always used tasksel to install so-called "tasks". It seems, however, that this has been integrated in APT: apt-cache dumpavail | grep ^Task [...] snip Task: ...
51
votes
6answers
41k views

Where can I look up my update history?

Is there a place where I can look what updates I've installed?
35
votes
3answers
4k views

apt-get is stuck at “Fetched XXKb in XXsec” [duplicate]

I tried to install crossover and after downloading the .deb from their website, I followed the steps as indicated when opening it with Ubuntu Software Centre: On 64-bit flavors of Debian and some ...
4
votes
2answers
4k views

How can I avoid “please insert CD/DVD” error when updating Ubuntu?

I can't update 12.04 LTS. The Update Manager shows this: CD/DVD 'Ubuntu 12.04 LTS _Precise Pangolin_ - Release i386 (20120423)' is required Please insert the above CD/DVD into the drive '/media/cdrom/...
301
votes
8answers
914k views

How to install updates via command line?

When I log into my web server via SSH I see the information: 88 packages can be updated. 80 updates are security updates I tried apt-get update then apt-get upgrade but each time I log in I still ...
36
votes
10answers
72k views

How to use a .iso image as a CD-ROM Repository?

I have all images of Debian, Ubuntu and Ubuntustudio as .iso. How can I use them as repository to install my desired packages with sudo apt-get install package-name? I easily mount the .iso file with ...
45
votes
5answers
44k views

“debconf: DbDriver ”config“: config.dat is locked by another process: Resource temporarily unavailable” while installing packages

I'm trying to install the flashybrid but when I enter the apt-get install flashybrid command, I get this error: root@user-desktop:/home/user# apt-get install flashybrid Reading package lists... Done ...
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 ...
37
votes
7answers
89k views

apt-get update very slow, stuck at “Waiting for headers”

I have looked at similar questions: Stuck at 0% [waiting for headers] (apt) apt-get update stuck on "Waiting for Headers" However neither one of them answer my problem. I am running 12....
27
votes
5answers
27k views

How can I update youtube-dl?

I use youtube-dl to download videos for watching later offline. Usually, it works fine. However, due to frequent changes on the video sites, it sometimes requires a quick update. It wasn't a problem ...
1
vote
1answer
9k views

Update information outdated, “Failed to fetch cdrom” [duplicate]

I have a warning triangle on the top of my screen. When I click on it, it says that my update information is outdated. When I type sudo apt-get update && sudo apt-get upgrade into a terminal, ...
9
votes
1answer
3k views

16.04 apt update never ends [duplicate]

It started few days ago. I'm running sudo apt update command and it never ends. Terminal output is Get:1 http://ru.archive.ubuntu.com/ubuntu xenial InRelease [247 kB] Hit:2 http://archive.canonical....
193
votes
6answers
228k views

How can I update my nodeJS to the latest version?

I have installed nodeJS on Ubuntu with following code sudo apt-get install nodejs Since I am a new user for ubuntu I also ran this code too sudo apt-get install npm Now when I type nodejs --...
84
votes
3answers
171k views

What is the Difference Between `apt-get purge` and `apt-get remove`? [duplicate]

Possible Duplicate: What is the correct way to completely remove an application? Is there any difference between sudo apt-get purge <package-name> and sudo apt-get remove <...
31
votes
3answers
14k views

How do I cherry pick packages from a PPA? [duplicate]

Is there a way to cherry pick packages from a ppa repository you add? That is, to exclude some from updating while including others? For example, I want just the chromium-browser package from this ...
29
votes
4answers
70k 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 ...
52
votes
3answers
57k views

How can I install a package without installing some dependencies?

I'm trying to install the package LaTeXila, and the output looks like this: $ sudo apt-get install latexila --no-install-recommends Reading package lists... Done Building dependency tree ...
11
votes
5answers
24k views

How can I access my Ubuntu phone over ssh?

Whenever I try to run apt-get install openssh-server I get the following errors: root@ubuntu-phablet:/home/hablet# apt-get install openssh-server W: Not using locking for read only lock file /var/lib/...
25
votes
13answers
60k views

Cannot install ia32-libs

I don't know why I can't install ia32-libs. It claims for a dependency that cannot be found on repos. junior@mediacenter:~$ sudo apt-get install ia32-libs Reading package lists... Done Building ...
26
votes
2answers
13k views

How to use https with apt-get?

Does apt-get use https or any kind of encryption? Is there a way to configure it to use it?
20
votes
2answers
23k 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 `....
28
votes
8answers
3k views

How to make a package manager wait if another instance of APT is running?

I have seen many softwares such as Update Manager and Synaptic Package Manager, they wait if some other program is using the /var/lib/dpkg/lock and is locked. How can we do this through the Terminal? ...
19
votes
5answers
6k views

How to determine the size of a package while using apt prior to downloading?

When using apt-get install <package_name>, and there are dependencies that need to be downloaded, the terminal outputs names of additional packages and total size, and asks for confirmation ...
8
votes
6answers
6k views

How to fix installation wine on ubuntu 14.04.3LTS 64 bit

I knew there are a lot of questions about wine but i can't find or fix with there answers. Can someone help me to fix installation about Wine please. Here are the command output while trying to fix ...
62
votes
5answers
26k views

What is the difference between apt and apt-get?

I read about the new fancy progress bar which was added to apt 1.0 in Softpedia and how to enable it here. However on running sudo apt-get update, I did not see the fancy progress bars. On reading the ...
26
votes
1answer
15k views

Assign highest priority to my local repository

Summary How can I make apt-get prefer local repository packages instead of downloading again the same package version from official repositories? The local repository is signed and trusted. We've ...
35
votes
2answers
43k views

Installing PHP 5.6 on Xenial (16.04)

I need to use php5 (5.6) because I'm working on a Drupal 7 project which doesn't support php7. The problem is I recently updated to ubuntu 16.04 Xenial which seems to no longer support php5. I tried ...
34
votes
5answers
39k views

How not to install recommended and suggested packages?

I use Ubuntu 12.04 64-bit, I did the following, sudo gedit /etc/apt/apt.conf and added APT::Install-Recommends "false"; APT::Install-Suggests "false"; but did not work. When I try to install a ...