Hot answers tagged

19 votes

How do I find out which package owns a file?

Installation generated files will not be found by dpkg -S, as mentioned at: https://askubuntu.com/a/667227/52975 For example, /bin/nc appears when you install the package netcat-openbsd. But upon: ...
14 votes

Unable to remove package on Debian 7

There is a MySQL server running, but we failed in our attempts to stop it. Stop it yourself and try again! I had this problem yesterday when the mariadb 10.1 server package failed to update and ...
user avatar
12 votes

"-bash: line 7: dpkg: command not found" said CentOS

These steps worked for me on CentOS 7: Install epel using the following command: sudo yum -y install epel-release Refresh repo by typing the following commad: sudo yum repolist Install the dpkg rpm ...
user avatar
  • 121
11 votes

How to list files of a Debian package without install

I took @baldoz's http idea and generalized it for Ubuntu and Debian, added a little sed and wrapped it in a bash function one-liner: function deb_list () { curl -s $(lsb_release -si | sed -e 's ...
user avatar
  • 1,097
9 votes

changing timezone with dpkg-reconfigure tzdata and debconf-set-selections

For using debconf, before calling dpkg-reconfigure, you need to also remove /etc/localtime and /etc/timezone. Also beware of possible extra space (as in your question!) which are not benign. So "...
user avatar
  • 2,486
8 votes

How to list files of a Debian package without install

For all those people who might still googling this issue at Jan 2017, you can have some cool stuff with recent versions of apt and dpkg in Debian 8.5 without downloading anything. List Contents of ...
user avatar
7 votes

changing timezone with dpkg-reconfigure tzdata and debconf-set-selections

I just found out that with Debian Stretch (9) you need to also change /etc/localtime, thus something like: ln -fs /usr/share/zoneinfo/`cat /etc/timezone` /etc/localtime is needed. To amend ...
user avatar
  • 171
7 votes
Accepted

How to list installed packages that depend on another installed package in Debian?

To find the reverse dependencies you can install the apt-rdepends package: sudo apt-get install apt-rdepends You can then search for reverse dependencies using: $ apt-rdepends --state-follow=...
user avatar
  • 15.1k
7 votes

Error: ca-certificates is broken or not fully installed

In my case, a wrong closing of the ca-certificates setup led to a broken file. Reinstalling/updating 'debconf' solved my problem: sudo apt-get install debconf
user avatar
  • 71
6 votes

How do I find out which package owns a file?

Not being familiar with Debian, I was baffled when I tried this: kearnsp@xubuntuvb:~$ dpkg -S /usr/bin/vncviewer dpkg-query: no path found matching pattern /usr/bin/vncviewer kearnsp@xubuntuvb:~$ A ...
6 votes
Accepted

How can I fix error during install a package with APT in Ubuntu

This commands helps me: 1) Remove PHP and all his libraries and files sudo apt-get purge php7.* 2) Install PHP again sudo apt-get install php7.2
user avatar
  • 245
6 votes
Accepted

What is the difference between apt dist-upgrade and apt upgrade?

For reference: https://manpages.debian.org/apt https://manpages.ubuntu.com/apt apt upgrade will upgrade all packages that can be upgraded without the need to install additional packages or remove ...
user avatar
  • 433
4 votes

ubuntu: A lot of problems after abort an upgrade

It might help to just install all packages from the cache: sudo dpkg -i /var/cache/apt/archives/*deb Credits: Question on askubuntu.com
user avatar
4 votes

Error processing package libssl1.1:amd64

I was stucked in the same problem. I tried this and worked to me: cd /var/lib/dpkg/info sudo rm libssl1.1:amd64.postinst libssl1.1:amd64.shlibs libssl1.1:amd64.postrm sudo apt update && sudo ...
user avatar
3 votes

Install .deb packages into mounted fs

You can use the --root option of dpkg to specify the directory where the target root filesystem is mounted. In your case: sudo dpkg --install --root=/mnt/linux XXX.deb I've found that this ...
user avatar
  • 211
3 votes

/usr/bin/dpkg was accidentally deleted

First download the package dpkg: apt-get download dpkg Now you see the .deb package in your current working directory. This can be unpacked manually by: ar x dpkg_<package_version>.deb That ...
user avatar
  • 4,044
3 votes
Accepted

How does dpkg know that a config file has been deleted?

From dpkg man page: --remove package (...) Remove an installed package. This removes everything except conffiles, which may avoid having to reconfigure the package if it is reinstalled ...
user avatar
3 votes

How to list files of a Debian package without install

Try: apt-get download packages-name dpkg --contents *.deb
user avatar
3 votes
Accepted

Unable to remove package on Debian 7

This seems to be a known issue as reported here. The most practical solution would be to first kill of all instances of mysqld that are running: sudo killall mysqld And then run this as suggested to ...
user avatar
  • 49.2k
3 votes

Why installing Docker from their repository and not from the default?

Check the version of the docker.io that you've installed. At last check, Ubuntu was shipping 18.04, likely with their custom modifications. They may include dependencies on the other components, but ...
user avatar
  • 1,748
2 votes
Accepted

Error with "sudo apt-get upgrade" (Ubuntu 14.04)

The solution was to look at the /usr/share/doc/dictionaries-common/README.problems file as suggested by @Dubu. 1) running /usr/share/debconf/fix_db.pl as root Look which templates were affected 2)...
user avatar
  • 121
2 votes

why apt-get cannot install any application?

i resolved this using sudo apt install --reinstall po-debconf et voilà, after that command i can install new programms (Ubuntu 14.04 32bit - running on Eee PC 1000HE)
user avatar
2 votes

get rid of Half-installed java installation on ubuntu

reinst-required A package marked reinst-required is broken and requires reinstallation. These packages cannot be removed, unless forced with option --force-remove-reinstreq. Open the terminal and ...
user avatar
  • 13.1k
2 votes

How to restore VIM in debian

You may need to manually remove the package using: sudo dpkg --purge --force-all vim Kindly install vim package again in your system. sudo apt-get update; sudo apt-get install vim
user avatar
2 votes

How should one deal with "The following package disappeared from your system..."?

Why we should care: this issue manifests when a sudo apt-get upgrade helpfully offers that autoremove will remove all of the just added packages - because the package that depends on them was removed. ...
user avatar
  • 1,027
2 votes

Trying to remove faulty installation of Jenkins

I suffered the same on a Debian 7 Wheezy. The problem is you have an outdated Java version. Jenkins needs Java 8. Whenever you try to uninstall Jenkins, your system try to execute an uninstall script ...
user avatar
2 votes

Ubuntu, how to see what directory was installed by what package

It is not in the list of files installed by the package (see https://packages.ubuntu.com/xenial/amd64/rancid/filelist ) but based on its name (var) I would suspect it is just created and used by the ...
user avatar
2 votes
Accepted

Error: ca-certificates is broken or not fully installed

It looks like there's a bug in the c_rehash perl script (I'm getting similar errors and I found this discussion: https://aur.archlinux.org/packages/icaclient/?comments=all). In /bin/c_rehash on my ...
user avatar
  • 136
2 votes
Accepted

friendly-recovery is broken, keeps returning exit status 1

According to the output, the post-removal script subprocess failed. The friendly-recovery post-removal script is /var/lib/dpkg/info/friendly-recovery.postrm. You can bypass this script by replacing ...
user avatar
  • 18.8k
2 votes

apt steam-devices dpkg error

I've had the same problem these days, after receiving a missing dependencies notification from Steam on my Debian 9, so I looked for a workaroung. I had Synaptic package manager installed on it (you ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible