Questions tagged [package-management]
Questions about the management of software packages, in particular the APT and dpkg systems. Use this tag for general questions about package management, and also for questions that cover or compare different packaging systems. For specific package tools, use their own specific tag (like apt, dpkg, snap etc.).
10,589
questions
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?
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-...
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 ...
883
votes
9
answers
2.7m
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 ...
767
votes
11
answers
651k
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 ...
750
votes
9
answers
2.0m
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 ...
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 ...
565
votes
15
answers
528k
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?
562
votes
6
answers
792k
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/...
519
votes
2
answers
1.4m
views
How to install specific version of some package? [duplicate]
My questions are divided into two parts:
How to know the version of installed package?
How to install a specific package version?
510
votes
12
answers
717k
views
How to install software or upgrade from an old unsupported release?
Recently I have installed an older version of Ubuntu on my old machine. Whenever I try to install any software, I get an error saying it couldn't be found:
$ sudo apt-get install vlc
Reading package ...
441
votes
5
answers
736k
views
How can I see all versions of a package that are available in the archive?
Is there a way I can see all the versions that are in the archives that I have configured in sources.list. I can see the last version of each archive withapt-get policy, but how can I see them all?
...
433
votes
6
answers
836k
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.
404
votes
10
answers
453k
views
How can I install just security updates from the command line?
sudo apt-get upgrade installs all updates, not just security updates. I know that I can use Update Manager to select only important security updates, but is there a way to do this from the command ...
396
votes
8
answers
344k
views
How to list dependent packages (reverse dependencies)?
In order to research what caused the installation of a given package, I'd like to get a list of packages which depend on that package. I couldn't find anything obvious in man dpkg.
388
votes
7
answers
481k
views
How can I check the available version of a package in the repositories?
How can I check the version of the available package in the Ubuntu repositories without installing it?
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 ...
344
votes
2
answers
100k
views
Dwarf Fortress starting during apt-get upgrade
When I run apt-get upgrade on my Ubuntu 17.04 machine, sometimes it starts Dwarf Fortress by itself.
It has happened already at least two times, so it was probably not just some sort of one time ...
339
votes
15
answers
312k
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 ...
334
votes
20
answers
266k
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 ...
333
votes
14
answers
695k
views
How do I check if a package is installed on my server?
I recently installed Ubuntu Server edition 13.10 (Saucy Salamander). But I have run into a bit of problem.
At the end of the installation, it asks about several extra packages whether you want them or ...
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 ...
317
votes
12
answers
847k
views
How to uninstall a .deb package?
Suppose I download a .deb package from a website and install it. (I assume that when I double click the .deb file, the package is installed through a GUI that interfaces with dpkg right?)
How can I ...
313
votes
10
answers
110k
views
How can I tell, from the command line, whether the machine requires a reboot?
When you install certain updates (e.g. a new kernel) in Ubuntu Desktop, you get an indication that a reboot is required (in Lucid, the logout icon turns red).
How can I check, from the command line, ...
305
votes
24
answers
668k
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?
298
votes
8
answers
254k
views
How do I find out which repository a package comes from?
Is there a method or command which can tell from which repository a package is coming from?
284
votes
10
answers
1.2m
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 ...
284
votes
3
answers
566k
views
What is the Difference Between `apt-get purge` and `apt-get remove`?
Is there any difference between
sudo apt-get purge <package-name>
and
sudo apt-get remove <package-name>
?
I often see people recommend one or the other.
In other words, what ...
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 ...
251
votes
5
answers
979k
views
How do I enable the "Universe" repository?
How do I get to the Universe Repository in supported versions of Ubuntu?
243
votes
9
answers
230k
views
Is it possible to get a list of most recently installed packages?
Is it possible to get a list of packages that were most recently installed through apt-get?
229
votes
4
answers
107k
views
Why is Ubuntu moving to Snap packages?
Why Ubuntu dumping .deb packages and moving to .snap packages?
At least for now they are keeping .deb package for normal distributions. .deb is already the most popular packaging format out there.
...
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 ...
211
votes
10
answers
362k
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="...
200
votes
1
answer
241k
views
apt gives “Unstable CLI Interface” warning
I am writing a script that needs to read a file containing information of a package for which I wrote this line
apt show $PACKAGE_NAME > pack_info.txt
However this doesn't creates the pack_info....
199
votes
6
answers
241k
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
...
198
votes
6
answers
110k
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 ...
197
votes
7
answers
60k
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.?
194
votes
13
answers
435k
views
How can I update Visual Studio Code on Ubuntu?
I downloaded the .tar.gz version of VS Code for Ubuntu (64-bit) and have been able to run it smoothly for some time. Some extensions have been installed too.
How can I efficiently update this VS Code ...
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 ...
186
votes
3
answers
262k
views
How do I install dig?
How do I install dig (the DNS lookup tool)? I can't figure out what the package name is.
184
votes
16
answers
135k
views
How to install Chromium without snap?
I just discovered that chromium will only be released as a snap package.
How can I continue to get chromium, without snap? Is this possible without building from source?
Notes:
Please let's keep to ...
176
votes
2
answers
149k
views
libdvd-pkg: `apt-get check` failed, you may have broken packages. Aborting
FYI: I am using Kubuntu 18.04
I keep getting the following error when I install apt-transport-https
Things I have already tired to fix this error are:
sudo apt-get autoremove libdvd-pkg
sudo apt-...
159
votes
8
answers
287k
views
How can I check dependency list for a deb package
How can I check dependency list for a deb package. I am running Ubuntu 11.10 and I have backed up all deb packages from var/cache/apt/archives. I want to format my pc and re-install selected ...
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-...
143
votes
3
answers
84k
views
What does it mean that a package is "set to manually installed?"
When packages are already installed and I run an apt-get install <package-name>, sometimes it will print a line <package-name> is set to manually installed.
What does that mean?
134
votes
7
answers
31k
views
What's the difference between package managers?
What are the differences between apt-get, aptitude, and synaptic, and which one is the recommended choice for normal day-to-day package management?
This is a basic question, but I think it'd be good ...
133
votes
6
answers
62k
views
apt-get update only for a specific repository
When I add a PPA and I want to install some of its content, it is quite annoying to re-update all my apt list using apt-get update.
Is it instead possible to only sync the content of a given ...
127
votes
8
answers
164k
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
2
answers
158k
views
Exclude packages from `apt-get upgrade` [duplicate]
Possible Duplicate:
How to prevent updating of a specific package?
Keep the Ubuntu package version I'm using now
Is it possible to upgrade all packages except a given package? Is there ...