Questions tagged [apt]

Questions about using any of the apt tools should use this tag. Advanced Packaging Tool, the package manager for Debian-based distributions. It is also the most used tool for installing packages in Ubuntu.

Filter by
Sorted by
Tagged with
642 votes
14 answers
1.3m 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 ...
user avatar
  • 58.9k
342 votes
15 answers
1.2m 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 ...
user avatar
  • 3,445
304 votes
9 answers
686k 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?
user avatar
  • 3,041
155 votes
5 answers
515k 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 ...
user avatar
  • 1,813
174 votes
5 answers
183k 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 ...
user avatar
1154 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 ...
user avatar
535 votes
13 answers
930k 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:...
user avatar
  • 15.1k
85 votes
9 answers
379k 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 ...
user avatar
439 votes
22 answers
423k 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....
user avatar
  • 12.6k
1530 votes
26 answers
1.8m 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 ...
user avatar
376 votes
10 answers
372k 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
310 votes
7 answers
2.5m 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 ...
user avatar
  • 3,223
264 votes
8 answers
327k 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-...
user avatar
  • 31k
128 votes
7 answers
933k 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 ...
user avatar
39 votes
3 answers
110k 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 ...
user avatar
  • 62.6k
166 votes
18 answers
197k 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 ...
user avatar
  • 1,761
9 votes
1 answer
11k 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 (--...
user avatar
222 votes
8 answers
327k 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?
user avatar
  • 17.5k
2456 votes
24 answers
4.7m 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?
user avatar
  • 54.1k
180 votes
17 answers
899k 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 ...
user avatar
  • 1,933
168 votes
6 answers
203k 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 ...
user avatar
  • 1,681
60 votes
7 answers
101k 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 ...
user avatar
  • 621
385 votes
5 answers
321k 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 ├─────────────────┐ │ ...
user avatar
  • 4,343
132 votes
6 answers
99k 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 ...
user avatar
  • 5,540
171 votes
4 answers
542k 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 ...
user avatar
  • 1,813
24 votes
8 answers
48k 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 ...
user avatar
194 votes
25 answers
364k 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....
user avatar
  • 3,170
107 votes
3 answers
465k 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 ...
user avatar
  • 15.5k
1327 votes
25 answers
1.2m 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-...
user avatar
  • 19.3k
87 votes
7 answers
333k 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 ...
user avatar
  • 970
679 votes
9 answers
2.0m views

What does "sudo apt-get update" do?

I am wondering what sudo apt-get update does? What does it update?
user avatar
  • 10.7k
509 votes
5 answers
754k 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-...
user avatar
  • 8,518
138 votes
7 answers
153k 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-...
user avatar
  • 56.9k
107 votes
7 answers
75k 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 ...
user avatar
  • 14.6k
219 votes
1 answer
459k 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 ...
user avatar
  • 2,191
28 votes
10 answers
110k 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 ...
user avatar
752 votes
4 answers
445k 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 ...
user avatar
  • 11.9k
194 votes
5 answers
202k 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 ...
user avatar
  • 32.1k
44 votes
2 answers
135k 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 ...
user avatar
  • 441
276 votes
9 answers
258k 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 ...
user avatar
80 votes
8 answers
74k views

E: Problem executing scripts APT Update::Post-Invoke-Success error during apt-get update

I cannot install any package. It seems the command apt-get update must be run but it throws some errors: $ sudo apt-get update Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 ...
user avatar
34 votes
4 answers
82k views

apt-get cannot connect to Ubuntu archives

I just installed a fresh version of Ubuntu 19.10 today, and the first thing I decided to do was to install GNU Screen, using sudo apt-get install screen. my output was: Reading package lists... Done ...
user avatar
  • 921
94 votes
7 answers
49k 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 ...
user avatar
  • 1,417
32 votes
6 answers
114k views

sudo apt update always giving Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)

So I am on my college network which requires me to sign in to the browser before I start using the internet. I do so succesfully but on a clean install of Ubuntu, when I try to do sudo apt update, I ...
user avatar
  • 571
23 votes
6 answers
32k views

Ubuntu system is broken 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 ...
user avatar
398 votes
6 answers
708k views

How to downgrade a package via apt-get?

How can I downgrade a package to an older version via apt-get? Other tools are also acceptable but apt-get is preferred.
user avatar
128 votes
10 answers
288k views

How to create a local APT repository?

I would like to build my own local repository on my LAN, so that machines on the LAN can update and upgrade from it. I want to download the packages and store them on my local server so that I can ...
user avatar
21 votes
2 answers
64k 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 ...
user avatar
284 votes
17 answers
198k views

How to list manually installed 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. How can we do that from the command ...
user avatar
  • 5,913
19 votes
4 answers
12k 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,...
user avatar
  • 293

1
2 3 4 5
52