Skip to main content

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.).

Filter by
Sorted by
Tagged with
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
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
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
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 ...
Marlin's user avatar
  • 8,984
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 ...
David Z's user avatar
  • 10.4k
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 ...
user48949's user avatar
  • 7,943
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
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?
Ivan's user avatar
  • 57.5k
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/...
Anupam Gupta's user avatar
  • 5,743
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?
user avatar
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 ...
made_in_india's user avatar
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? ...
txwikinger's user avatar
  • 28.7k
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.
user avatar
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 ...
crenshaw-dev's user avatar
  • 32.1k
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.
l0b0's user avatar
  • 8,911
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?
Raja G's user avatar
  • 103k
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
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 ...
Adrijaned's user avatar
  • 1,838
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 ...
n1kh1lp's user avatar
  • 3,491
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 ...
Umang's user avatar
  • 6,533
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 ...
D.Zou's user avatar
  • 3,629
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
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 ...
Olivier Lalonde's user avatar
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, ...
Marius Gedminas's user avatar
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?
akshatj's user avatar
  • 13.2k
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?
dfme's user avatar
  • 3,103
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 ...
user1012451's user avatar
  • 3,135
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 ...
Seth's user avatar
  • 58.3k
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
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?
Dr.C.Badrinathan's user avatar
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?
Olivier Lalonde's user avatar
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. ...
Vishnudev K's user avatar
  • 2,766
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
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="...
user avatar
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....
C0deDaedalus's user avatar
  • 2,405
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 ...
John's user avatar
  • 3,957
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.?
Thomas Ward's user avatar
  • 75.6k
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 ...
ramcrys's user avatar
  • 2,041
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
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.
Eric Johnson's user avatar
  • 6,335
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 ...
lonix's user avatar
  • 2,508
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-...
devguy's user avatar
  • 5,388
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 ...
Vikramjeet's user avatar
  • 5,686
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
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?
codegoalie's user avatar
  • 1,533
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 ...
David Z's user avatar
  • 10.4k
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 ...
Treviño's user avatar
  • 2,584
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 ...
Benjamin Piller's user avatar
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 ...
Olivier Lalonde's user avatar

1
2 3 4 5
212