Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [package-management]

Questions about the management of software packages, in particular the APT and dpkg systems.

521
votes
14answers
876k 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 ...
967
votes
21answers
3.0m 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 ...
248
votes
24answers
399k views

How can I install software or packages without Internet (offline)?

I have a friend who has got a computer that is not connected to the Internet. Is there any way to install software offline easily?
151
votes
4answers
601k views

How do I enable the “Universe” repository?

How do I get to the Universe Repository in supported versions of Ubuntu?
137
votes
7answers
34k views

Why don't the Ubuntu repositories have the latest versions of software?

Why are packages in the official Ubuntu repositories older than the latest (upstream) versions from Debian Sid, PPAs, the authors, etc.?
176
votes
5answers
1.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 ...
356
votes
13answers
275k views

How to prevent updating of a specific package?

Because of bug #693758 I'd like to prevent apt-get upgrade and Update Manager from updating the "libgtk2.0-0" package. How can this be achieved?
427
votes
8answers
288k views

How do I find the package that provides a file?

Simple enough question: is there some shell command (or GUI method) I can use that, given the path to a file on my system, tells me what package put it there? Assuming the file did in fact come from a ...
30
votes
4answers
96k views

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

When updating I get the error W: The repository 'http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial Release' does not have a Release file. Here I find another statement on this error: How ...
1726
votes
23answers
3.0m 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?
102
votes
4answers
309k 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 ...
271
votes
14answers
219k views

How to backup settings and list of installed packages

If I want to make a backup of everything I have done since the fresh install of Ubuntu, what are the possible options? What all should I backup? I want to get all the settings that I changed, all the ...
521
votes
8answers
1.3m views

What is the correct way to completely remove an application?

I've searched the net for such information and found different command lines, like these ones: sudo apt-get remove application sudo apt-get remove application* sudo apt-get remove --purge ...
84
votes
7answers
81k views

How to fix “Package is in a very bad inconsistent state” error?

I can't update my system because it freezes while installing a third-party update (zramswap-enabler)! Sometimes I get the following message in Update manager: Could not initialize the package ...
127
votes
7answers
164k views

If I build a package from source how can I uninstall or remove completely?

I used source code to build one package such as below: ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib --with-package-name="Myplugin" --with-package-origin="...
29
votes
3answers
53k 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 ...
788
votes
16answers
642k 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-...
52
votes
3answers
262k views

How do I enable the “multiverse” repository?

I keep seeing places refer to the "multiverse" repository as a place I can get software, how can I enable this repository? Please specify how to do this graphically and via command line.
20
votes
2answers
8k views

How to install latest HPLIP on my Ubuntu to support my HP printer and/or scanner?

Let's assume that one has some modern HP printer and/or scanner which is not supported by HPLIP package from official repository. Currently Ubuntu versions have the following versions in universe ...
24
votes
3answers
99k views

How do I enable the “Universe” repository from the command line? [duplicate]

How do you use terminal to enable Universe source? Or any those 4 from Software Sources: Main, Universe, Restricted, Multiverse Main is on by default and Restricted is on if durring Ubuntu ...
91
votes
7answers
98k 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-...
19
votes
1answer
13k views

How do I list the default installed packages?

I am developing an offline installer for all versions of Ubuntu, and I need Ubuntu's default installed packages list. Is there a way to get this information from any server (web server)? Any script to ...
292
votes
6answers
434k 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.
176
votes
6answers
655k views

How can you completely remove a package?

I am trying to do a clean install of the octave3.2 package. To do this, I removed it, then tried to reinstall it. When I reinstalled, an error occurred. It could be a bug in the package, but I ...
40
votes
2answers
52k views

How do you run a 32-bit program on a 64-bit version of Ubuntu?

I have a 64-bit version of Ubuntu 13.10. I want to run a 32-bit version of a program. However I see ia32-libs is not included in 13.10. Is there a replacement package for this or what?
15
votes
5answers
19k views

Why is Wine not installable on my system?

I upgraded on a fresh install to Ubuntu 12.10, and I've tried installing wine many times, but I always get this: This error could be caused by required additional software packages which are missing ...
118
votes
4answers
128k views

How do I deal with “unauthenticated sources” errors in the Software Center?

Any install that I'm trying through the Software Center is telling me: Requires installation of untrusted packages: The action would require the installation of packages from not authenticated ...
33
votes
1answer
17k views

Install packages from newer release without building (apt pinning)

I need these packages with the latest upstream version backported for ubuntu/natty libccid_1.4.5-0ubuntu1_amd64.deb libpcsclite1_1.8.1-0ubuntu1_amd64.deb libpcsclite-dev_1.8.1-0ubuntu1_amd64.deb ...
35
votes
4answers
20k 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 k3b ...
22
votes
2answers
61k views

What does: Error Broken count >0 mean?

I have the message: Error Broken count >0 Check if you are using third party repositories. If so disable them, since they are a common source of problems. Furthermore run the following command in ...
376
votes
6answers
463k views

How do I get a list of installed files from a package?

I want to know where I can find my installed application when I installed it on Ubuntu using package manager. I installed RabbitMQ and ran locate rabbitmq which gave me following result: /home/...
81
votes
11answers
179k views

How do I install and manage RPMs?

I have a burning desire to install RPMs onto my Ubuntu installation - is this possible? Can I use Yum - or another RPM Package Management tool?
46
votes
6answers
184k 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 ...
76
votes
4answers
143k views

Requires installation of untrusted packages?

I tried installing VLC Player yesterday, and I got the Requires installation of untrusted packages error. I searched for hours for a solution to this problem, and finally came upon a suggestion that ...
-3
votes
0answers
540 views

Unable to locate package [duplicate]

There are many questions about Unable to locate package. For example : if user try to install package by using apt-get then the following error shown. (Here package is used only as example for ...
165
votes
12answers
94k 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 ...
32
votes
4answers
35k views

Find (and reinstall) packages with corrupted files (without breaking anything)

I usually prefer to fix a Linux system than to reinstall from scratch. My computers have seen many distribution upgrades and a list of PPAs or third-party repositories. APT usually makes sure that ...
54
votes
7answers
111k views

How do I enable the “partner” repository?

I keep seeing places refer to the "partner" repository as a place I can get software, how can I enable this repository? Please specify how to do this graphically and via command line.
11
votes
6answers
26k views

Dependency error while installing WINE [duplicate]

Every time I try to install "WINE" VIA the Software Center on Ubuntu 12.10, I get this error: The following packages have unmet dependencies: wine1.4: PreDepends: dpkg (>= 1.15.7.2~) but 1.16....
35
votes
4answers
96k views

How to install GUI desktop on a server?

After installing Ubuntu server how do I install the desktop environment?
83
votes
2answers
131k views

N: Ignoring file '50unattended-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension

Yesterday I upgraded distro and today when I am using apt-get to install anything or to update, I get an error: N: Ignoring file '50unattended-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' ...
13
votes
1answer
4k views

How to debug an unmet dependencies problem?

Note about possible duplicate: AFAIK, This is not a duplicate of How do I resolve unmet dependencies after adding a PPA? otherwise please prove it by solving the test problem I mention below using ...
36
votes
6answers
79k views

Fix half-installed package

I am getting error while using sudo apt-get upgrade stating: dpkg: error processing libgfortran3:amd64 (--configure): package libgfortran3:amd64 is not ready for configuration cannot configure (...
51
votes
5answers
61k views

How to set up an APT repository?

I would like to set up an APT repository on a server that will provide a couple of packages. Is there a way to set one up without installing any software on the server? How do the files have to be ...
45
votes
3answers
234k views

how to install packages with apt-get on a system connected via proxy?

I've got an Ubuntu 11.10 system connected via a proxy to the internet, and I would like to install packages via apt-get. When I try to do that I get this error message: sudo apt-get install libboost-...
52
votes
10answers
260k views

How to remove wine completely

How can I remove the wine folder and all the applications in that folder? I've tried via synaptic but it keeps showing up in the application menu.
55
votes
8answers
7k views

How can I check if a package is installed (no superuser privileges)?

At our university we can get almost any ubuntu package installed we want, but we are not superusers ourselves (we need to request packages being installed). With some libraries it is not always easy ...
646
votes
9answers
2.1m 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 ...
182
votes
6answers
180k views

Why am I getting authentication errors for packages from an Ubuntu repository?

I'm experimenting with VPNs, so I wanted to install pptpd. john@desktop:~$ sudo apt-get install pptpd [sudo] password for john: <snip> The following extra packages will be installed: bcrelay ...
12
votes
3answers
20k views

What should I do when the GETDEB repository is down?

I'm trying to install programs/files from the getdeb repo but get a "check your internet connection" error. Programs than I've tried include Qbittorrent and Mozilla-Plugin-VLC. Through the ...