Skip to main content

Questions tagged [apt]

APT is short for 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 commands should use this tag.

Filter by
Sorted by
Tagged with
669 votes
14 answers
1.5m views

How do I resolve unmet dependencies after adding a PPA?

Occasionally, when I'm installing stuff, I get an error like the following: Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the ...
jrg's user avatar
  • 60.9k
380 votes
16 answers
1.5m views

Unable to correct problems, you have held broken packages

After upgrading from 10.04 to 12.04 I am trying to install different packages. For instance ia32-libs and skype (4.0). When trying to install these, I am getting the 'Unable to correct problems, you ...
trond's user avatar
  • 3,825
213 votes
5 answers
776k views

What can I do if a repository/PPA does not have a Release file?

When updating, I get the following error message: W: The repository 'http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial Release' does not have a Release file. Here, I find another statement ...
Addem's user avatar
  • 2,403
314 votes
9 answers
756k 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?
Pedro's user avatar
  • 3,141
204 votes
6 answers
261k views

dpkg error: "trying to overwrite file, which is also in..."

For example: $ sudo apt-get install curl Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The ...
missingfaktor's user avatar
619 votes
15 answers
1.3m views

How do I fix the GPG error "NO_PUBKEY"?

I added some extra repositories with the Software Sources program. But when I reload the package database, I get an error like the following: W: GPG error: http://ppa.launchpad.net trusty InRelease:...
Agmenor's user avatar
  • 16.3k
1174 votes
25 answers
3.6m views

Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?

I get this error when trying to use apt-get: E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/) is ...
La Ode Adam Saputra's user avatar
89 votes
9 answers
496k views

How do I remove a malformed line from my sources.list?

I have unistalled and reinstalled the Ubuntu Software Center as per info I found in a similar thread and I got the same response about line 91 or something like that. I just tried to upload a screen ...
eminencejae's user avatar
1639 votes
27 answers
2.0m views

How can PPAs be removed?

I've added many PPAs using the add-apt-repository command. Is there a simple way to remove these PPAs? I've checked in /etc/apt/sources.list for the appropriate deb lines but they aren't there. This ...
David Ashford's user avatar
384 votes
10 answers
390k views

How do I fix a "Problem with MergeList" or "status file could not be parsed" error when trying to do an update?

The computer gave me this output in a window: E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_natty_main_binary-...
user avatar
366 votes
7 answers
3.0m views

"Unable to locate package" while trying to install packages with APT

When I try to install any package through the command line, I get an error. $ sudo apt-get install <package> Reading package lists... Done Building dependency tree Reading state ...
CodeGeeky's user avatar
  • 3,783
450 votes
22 answers
457k views

Trouble downloading packages list due to a "Hash sum mismatch" error

When I check for updates, I get a "Failed To Download Repository Information" error. This is what comes up under details: W: Failed to fetch gzip:/var/lib/apt/lists/partial/us.archive.ubuntu....
Rob's user avatar
  • 12.8k
300 votes
8 answers
416k views

How can I fix apt error "W: Target Packages ... is configured multiple times"?

I just installed Ubuntu Gnome 16.04. I told it to save my documents - which worked. Some software had to be reinstalled. Now when I run sudo apt-get update I see this: W: Target Packages (main/binary-...
Tim's user avatar
  • 33k
238 votes
18 answers
1.3m views

apt-get update fails to fetch files, “Temporary failure resolving …” error

Err http://archive.canonical.com natty InRelease Err http://security.ubuntu.com oneiric-security InRelease Err http://extras.ubuntu.com natty InRelease ...
Lewis's user avatar
  • 2,513
140 votes
7 answers
1.2m 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 ...
Raghav Mittal's user avatar
39 votes
3 answers
135k views

How do I fix this "E: Type '*' is not known on line * in source list ..." update error?

Every once in a while I see users having issues to update due to errors like this: E:Type 'ain' is not known on line 1 in source list /etc/apt/sources.list.d/some-ppa.list' with varying types/line ...
htorque's user avatar
  • 65.1k
10 votes
1 answer
13k views

Package dbus is not configured yet

While attempting to upgrade (sudo apt-get upgrade) Ubuntu 12.04, I had a pair of packages that would throw the following apt-get install errors for the dbus dependency: dpkg: error processing dbus (--...
Highway of Life's user avatar
168 votes
18 answers
202k views

My /boot partition hit 100% and now I can't upgrade. Can't remove old kernels to make room

My first issue was when I tried to apt-get update or apt-get upgrade. On upgrade I get the following error: You might want to run 'apt-get -f install' to correct these. The following packages have ...
Strifey's user avatar
  • 1,780
2650 votes
25 answers
5.4m views

How to list all installed packages

I'd like to output a list of all installed packages into a text file so that I can review it and bulk-install on another system. How would I do this?
Ivan's user avatar
  • 57.5k
233 votes
8 answers
365k views

How can I get apt to use a mirror close to me, or choose a faster mirror?

Downloading from the main Ubuntu archive is slow even when it's not release day, how can I get apt-get to automatically use a mirror that is close to me?
ajmitch's user avatar
  • 18.6k
71 votes
7 answers
136k views

Apt/Synaptic needs to reinstall package but can't find the archive for it

Running Synaptic I get the following error message: E: The package hl1440lpr needs to be reinstalled, but I can't find an archive for it. E: Internal error opening cache (1). Please report. Upon ...
David's user avatar
  • 731
182 votes
6 answers
235k 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 ...
Dimitris7's user avatar
  • 1,821
128 votes
3 answers
609k views

What does "Package <package> has no installation candidate" mean?

What does the above Error mean? What is an installation candidate? I was trying to do sudo apt-get install munin-memcached and I get this message: Reading package lists... Done Building ...
theTuxRacer's user avatar
  • 16.3k
1723 votes
29 answers
1.9m views

"The following packages have been kept back:" Why and how do I solve it?

I just added a PPA repository for the development version of the GIMP, but I get this error: $ apt-get update && apt-get upgrade ... The following packages have been kept back: gimp gimp-...
jfoucher's user avatar
  • 23.9k
132 votes
6 answers
101k views

What is the easiest way to resolve apt-get BADSIG GPG errors?

I frequently cross this issue, and always have to google for an answer. Does anyone have a permanent fix for BADSIG errors from apt-get? W: GPG error: http://download.virtualbox.org lucid ...
cmcginty's user avatar
  • 5,918
405 votes
5 answers
345k views

How can I accept the Microsoft EULA agreement for ttf-mscorefonts-installer?

After a recent update, ttf-mscorefonts-installer prompted me to accept its license agreement. ┌─────────────────┤ Configuring ttf-mscorefonts-installer ├─────────────────┐ │ ...
Peter's user avatar
  • 4,573
24 votes
8 answers
58k views

Failed to download repository information due to missing CDROM

When updating I got this error message: W:Failed to fetch cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)/dists/oneiric/main/binary-i386/Packages Please use apt-cdrom to make this ...
HARIS MICHAELIDES's user avatar
189 votes
4 answers
639k 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 ...
John Qualis's user avatar
  • 1,993
194 votes
25 answers
369k views

How to fix "W: Duplicate sources.list entry"?

I keep getting this warning whenever I try to run sudo apt-get update. W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ precise-updates/main i386 Packages (/var/lib/apt/lists/archive....
hsinxh's user avatar
  • 3,190
90 votes
7 answers
393k views

Package system is broken. How to fix it?

I just recently bought an arduino and requires gcc-avr/avrdude to compile the software. I installed avr for another microprocessor component a while ago but is obviously an outdated version (gcc ...
Vigi's user avatar
  • 1,000
539 votes
6 answers
872k views

What is "dist-upgrade" and why does it upgrade more than "upgrade"?

I was wondering why upgrade sometimes doesn't want to upgrade certain parts of the system, while dist-upgrade does. Here's an example after running apt-get upgrade: apt-get upgrade: rimmer@rimmer-...
Frantisek's user avatar
  • 8,888
279 votes
5 answers
808k views

E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)

I'm trying to run this command in the terminal: sudo apt install software-properties-common This is the error message I get: E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource ...
GoodNite's user avatar
  • 2,791
9 votes
2 answers
8k views

Can't upgrade/update ubuntu 18.04 as apt/dpkg error is showing up

I have been using ubuntu 18.04 for quite a while now and it was working fine until this morning when I turned my pc on and used terminal for updates. This is the output of sudo apt upgrade Reading ...
pennywise666's user avatar
704 votes
9 answers
2.1m views

What does "sudo apt-get update" do?

I am wondering what sudo apt-get update does? What does it update?
Elysium's user avatar
  • 11k
150 votes
7 answers
177k 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-...
Isaiah's user avatar
  • 59.7k
4 votes
1 answer
19k views

Dependency errors prevent all APT commands from running, "Package libappstream-glib8:amd64 is not configured yet"

I'm using Ubuntu 16.04 and I've been getting an error of Sub-process /usr/bin/dpkg returned an error code when trying to install new apps or update the system. This seems to be happening since i ...
nettl's user avatar
  • 43
76 votes
2 answers
20k views

What are phased updates, and why does Ubuntu use them?

So I ran into that weird "packages being held back" problem while updating my system using apt. After some research, it appears to be the result of "phased updates". What are ...
ArrayBolt3's user avatar
  • 3,439
26 votes
7 answers
27k views

How can I tell if a CVE has been fixed in Ubuntu's repositories?

Today a couple of buffer overflows in NTP were announced 1, 2. It looks like updating my system to fix these issues is in order. How can I find out if they have been fixed in the Ubuntu repositories,...
Jxtps's user avatar
  • 371
134 votes
4 answers
136k views

How to fix apt: Signature by key uses weak digest algorithm (SHA1)?

I started setting up by adding repositories and then went to run a sudo apt-get update again before I started installing other software, and I get the Signature key lines and it stops. So it ...
dlchang's user avatar
  • 1,441
106 votes
7 answers
76k views

No more updates for Google Chrome 32-bit

I am using Google Chrome 48.0 32-bit. Today when I launched Google Chrome, I got this message: This computer will soon stop receiving Google Chrome updates because this Linux system will no longer ...
Parto's user avatar
  • 15.4k
179 votes
8 answers
139k views

What commands (exactly) should replace the deprecated apt-key?

Setting up keys for a local repository on a new ubuntu 20.10 virtual machine, I got a message that apt-key add was deprecated and I should read the apt-key(8) man page. The apt-key(8) man page is a ...
user1160711's user avatar
  • 2,347
10 votes
6 answers
20k views

Problem with sudo apt update in Ubuntu 18.04: Post-Invoke-Success if /usr/bin/test -w /var/lib/command-not-found/

The terminal gave me these errors when updating the software with sudo apt update. Hit:1 http://it.archive.ubuntu.com/ubuntu bionic InRelease Hit:2 http://it.archive.ubuntu.com/ubuntu bionic-...
Federico Calabrese's user avatar
59 votes
3 answers
205k views

Problem with sudo apt get update: The repository cdrom... does not have a Release file

Every time I try update (using sudo apt-get update) my Ubuntu I get this problem: W: The repository 'cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial Release' does not have ...
Samuel's user avatar
  • 693
28 votes
10 answers
117k views

Got NODATA issue: 'NODATA' (does the network require authentication?)

I can use my mobile broadband to access Internet with Firefox but when I want to install any package from terminal or make 'apt-get update' command I got the following error: got 'NODATA' (does the ...
user281814's user avatar
331 votes
9 answers
373k views

Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'xxx' doesn't support architecture 'i386'

Getting below error message while issuing : sudo apt-get update Get:1 http://us.archive.ubuntu.com/ubuntu xenial InRelease [95.8 kB] Ign:2 http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.2 ...
Scott Stensland's user avatar
201 votes
6 answers
217k views

How do I get and modify the source code of packages installed through apt-get?

I am assuming that all application installed through apt-get are open source; but for those that are available in that manner, where can I get the source code for these applications as well as update ...
myusuf3's user avatar
  • 34.5k
197 votes
8 answers
338k views

apt-key deprecation warning when updating system: "Key is stored in legacy trusted.gpg keyring"

Recently I've noticed some issues when running apt where the system will warn me of a keyring deprecation: Reading package lists... Done Building dependency tree... Done Reading state information... ...
matigo's user avatar
  • 22.7k
828 votes
4 answers
553k 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 ...
nik90's user avatar
  • 12.7k
55 votes
3 answers
233k views

Could not get lock /var/lib/apt/lists/lock

when I try to apt-get update I'm getting the below error, E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/
hari's user avatar
  • 551
22 votes
2 answers
73k views

Restore default apt repositories in sources.list from command line

I am looking for the best method to restore /etc/apt/sources.list to default from the command line. Is there no way to reference the source code of the package which generates this file or something ...
Ryan Burnette's user avatar

1
2 3 4 5
56