Questions tagged [dpkg]

The base software for Debian/Ubuntu/Mint package management. Use this tag for questions about dpkg and its companion utilities and the .deb file format.

Filter by
Sorted by
Tagged with
691
votes
8answers
2.1m views

How to install a deb file, by dpkg -i or by apt?

I have a deb package for installation. Shall I install by dpkg -i my.deb, or by apt? Will both handle the software dependency problem well? If by apt, how can I install from the deb by apt?
173
votes
12answers
118k views

What are the pros/cons of deb vs. rpm?

For whatever reasons, I've always used RPM based distributions (Fedora, Centos and currently openSUSE). I have often heard it stated that deb is better than rpm, but when asked why, have never been ...
168
votes
5answers
36k views

I deleted /bin/rm. How do I recover it?

Just for fun, I thought I would use this command on my Raspberry Pi running Raspbian: sudo rm -f /bin/rm I thought I could just reinstall coreutils: I was wrong! apt-get install --reinstall ...
44
votes
2answers
125k views

How to uninstall a .deb installed with dpkg?

I installed Unified Remote using dpkg: dpkg -i urserver.deb How do I uninstall it so I can reinstall from scratch?
42
votes
4answers
76k views

dpkg cannot find ldconfig/start-stop-daemon in the PATH variable

I was trying to install bsd-mailx utility the package got installed however I am wondering about the error. This is the error I get: Preconfiguring packages ... dpkg: warning: 'ldconfig' not found ...
33
votes
6answers
60k views

What are .deb and .rpm and how are they different from .msi? [closed]

What are these file formats and how do they differ from the .msi format in Windows? Also what are the pros and cons of these package management schemes?
31
votes
1answer
107k views

“E: Sub-process /usr/bin/dpkg returned an error code (1) ” What does this mean?

I've seen this message several times whenever someone has a problem installing, upgrading or removing some piece of software, but I wonder, what does it mean, and more importantly, is possible to ...
31
votes
3answers
60k views

Installing a .deb package in home directory

Is it possible to install a .deb package completely under my home directory at debian?
29
votes
7answers
5k views

Is it possible to build a Linux distro supporting both RPM and .deb packages?

I am wondering if it is theoretically possible to build a Linux distro that can both support rpm and debian packages. Are there any distros live out there that support both? And if not is it even ...
23
votes
5answers
21k views

Feeding input values to dpkg-reconfigure in a non-interactive way

I would like to configure ubuntu package via dpkg-reconfigure with all the values supplied via non-interactive mode (in the script). In fact my case is firebird confiiguration (http://www.firebirdsql....
22
votes
1answer
840 views

dpkg replacing files on a FAT filesystem

When you upgrade or reinstall a package with dpkg (and ultimately anything that uses it, like apt-get etc) it backs up the existing files by creating a hard link to the file before replacing it. That ...
20
votes
2answers
16k views

How do I replicate installed package selections from one Debian system to another? (Debian Wheezy)

I am trying to set up a staging environment in a VM, in order to test updates before applying them to my main system. In order to do so, I have done a basic installation of Debian Wheezy (same as on ...
17
votes
3answers
30k views

What packages are installed by default in Debian? Is there a term for that set? Why some of those packages are `automatically installed` and some not?

Is there a term to refer to the subset of packages that is automatically installed by Debian distribution? I though that it had something to do with packages priorities, but it doesn't seem to be the ...
17
votes
1answer
7k views

Unattended upgrades and modified configuration files

We have the unattended-upgrades package upgrading our servers with security upgrades every Monday and it works great. Today though, it upgraded all of our servers with a new version of PHP5. Because ...
17
votes
1answer
7k views

How to make dpkg faster?

Package (un)installation on a Debian system is horribly slow, partly because it works with a whole bunch of (small) files. Short of getting faster storage, how do I speed it up? I'm thinking maybe ...
14
votes
1answer
21k views

How to convince dpkg that libssl1.0.2 is >= libssl1.0.0?

I am trying to install a 3rd party .deb package that I have installed before on Debian 8. But I cannot install on a fresh Debian 9 setup because I get the following error: dpkg: dependency problems ...
14
votes
3answers
4k views

How can I reliably “hold” a package in Debian?

I have a package in Debian that has been manually patched (not ideal, I know) that I must hold at its current version so upgrades don't overwrite the patched changes (I will manually inspect and apply ...
13
votes
2answers
36k views

Repairing python setup

On my Kubuntu 14.4 (which has python 2.7.6 as standard) my python is broken after I tried to install python 2.7.10 after building from source from python.org with the help of How to install the latest ...
11
votes
2answers
22k views

dpkg: error: cannot remove architecture 'i386' currently in use by the database

I used this command to add i386 arch: sudo dpkg --add-architecture i386 And then immediately after without installing any packages I tried to remove the i386 arch like so: sudo dpkg --remove-...
11
votes
1answer
14k views

How can I list all files which have been installed by an APT package?

I have installed the package geoip-bin using the apt-get command: sudo apt-get install geoip-bin and I wanted to know the command line command to use this package. But when I try to list the files ...
11
votes
4answers
12k views

Right way to get the list of installed packages matching a pattern?

I'm on system running a (fairly recent-)Debian-based distribution. I'd like to generate a plain list of all installed packages matching a certain pattern. I can do that by, running, say, apt list --...
11
votes
1answer
38k views

Not able to lock /var/lib/dpkg/lock (read only)

I was trying to install ruby on my remote server(this is a vm machine(debian) in a esxi server . ) I got this error: The Command: sudo apt-get install ruby1.8 Error : W: Not using locking for read ...
10
votes
8answers
61k views

How to recreate /var/lib/dpkg/status?

I have deleted some files around /var/lib/dpkg/, namely: /var/lib/dpkg/status /var/lib/dpkg/available /var/lib/dpkg/info/* I understand Debian uses these files to keep some information about ...
10
votes
2answers
53k views

dpkg: dependency problems prevent configuration of initramfs-tools

I started an upgrade of my Kubuntu 12.04 system with this command, as usual: sudo apt-get --show-upgraded dist-upgrade I came back later and it had failed: Preconfiguring packages ... (Reading ...
10
votes
3answers
1k views

Why do package managers need lock files?

dpkg uses a lock file (/var/lib/dpkg/lock), when in use. Why are these lockfiles needed? Why are multiple instances not possible?
10
votes
7answers
17k views

Get package sources and repository link

Is there any way (dpkg, apt?) to get a package's sources and URL to repository, if available, in Debian ?
10
votes
1answer
888 views

In Debian, which package is responsible for creation of /etc/default/grub?

There are many packages which have grub in their names and part of the GRUB (the Grand Unified Boot Loader). The ones which are installed on my system are - grub-common grub-emu grub-pc grub-pc-...
9
votes
3answers
5k views

List all software installed from particular component (non-free, contrib)

Is there a way to list all non-free and contrib software installed in Debian via apt? /etc/apt/sources.list is as follows deb http://ftp.us.debian.org/debian/ wheezy main non-free contrib deb-src ...
9
votes
4answers
37k views

dpkg: new pre-installation script returned error exit status 1

I ended up dealing with a software meant to be deployed using dpkg. The .deb package works fine on the test env but fail on staging. Both are running the same version of Ubuntu but I am not 100% sure ...
9
votes
4answers
5k views

Can I determine what changed in an upgraded package using apt or dpkg on Debian 6?

I just did an apt-get upgrade on my Debian 6 development server and noticed that a certain package named tinyproxy was upgraded. I have a particular interest in seeing precisely what changed in that ...
9
votes
5answers
17k views

How to find out if a specific package is installed on Debian?

I'm working with a Raspberry Pi B+ and Raspbian 5/5/2015 and some guides that are a few years old. I've got an external NTFS HDD hooked up to the Pi. Due to the articles age(s), common practices ...
9
votes
2answers
3k views

Debian: prevent particular file from being overwritten during package upgrade

I understand that a package has two components: config and data files. During package upgrade (i.e. security upgrade) data files can be overwritten, but config files should always stay the same. Also ...
9
votes
4answers
4k views

Check if all listed packages are installed in bash

My binary depends on these boost libraries and respective packages: NAME | PACKAGE: --------------------------------------+-----------------------------------...
9
votes
2answers
10k views

No package 'xcb-xrm' found

I'm trying to install awesome 4.0. To install all the dependencies I ran sudo apt-get build-dep awesome. If I run make in my awesome directory there are some libs still missing: $ make Running cmake… ...
9
votes
1answer
13k views

How to configure the MySQL APT repo on Ubuntu, on a non-interactive shell?

I want to install MySQL 5.7 on Travis CI, which runs Ubuntu 12 virtual machines. I'm willing to use the official MySQL APT repo: wget http://dev.mysql.com/get/mysql-apt-config_0.2.1-1ubuntu12.04_all....
8
votes
3answers
1k views

How to harden su with dpkg-statoverride?

I am reading an Ubuntu 14 hardening guide and this is one of the suggestions: It generally seems like a sensible idea to make sure that only users in the sudo group are able to run the su command ...
8
votes
3answers
8k views

Use dpkg to view changelog

Is there a way to use dpkg to view a changelog between different versions of a package? If I wanted to know e.g., why 'passwd' was being upgraded in a recent update is there a way to use dpkg to see ...
8
votes
2answers
826 views

Conditionally enabling systemd files through Debian packaging

I've created a deb package which installs a service. On our embedded devices, I want this package to automatically enable the service. On our developer workstations, I want the developers to ...
8
votes
5answers
34k views

How to install a specific version of GCC in Kali Linux?

This question appears to be addressed properly in several questions and other places easily found with Google, but I don't find the solution satisfactory for the reasons explained below. But just for ...
8
votes
2answers
744 views

Re-installing apps after a fresh install?

I'm on Debian and I want to re-partition my drive and reinstall. Is there an easy way to restore all currently installed packages after a fresh installation? I'm thinking of doing it by making a ...
8
votes
3answers
6k views

Is dpkg available for Cygwin?

I don't use Windows all that often, but I've found my self in a position where I'm stuck in front of one quite a bit temporarily. So I've been investigating Cygwin. My question is dpkg available for ...
8
votes
2answers
3k views

Does Debian's dpkg store the time/date of package changes (i.e. installation/purges)?

I know that dpkg and dpkg-query are good tools to find out about packages currently installed on a Debian system. Besides the information logged to the files /var/log/dpkg.log.* is there any other ...
8
votes
2answers
2k views

Logging apt/dpkg activity to syslog

My goal is to log apt/dpkg activity using syslog (rsyslog), so that log entries are sent to central syslog server. dpkg writes to /var/log/dpkg.log, apt writes to /var/log/apt directory. I did some ...
7
votes
2answers
846 views

How may I obtain information on a specific Debian package (.deb) file? [duplicate]

Some days ago I downloaded a .deb file that does not have a descriptive name and I want to know which version it is before executing dpkg -i. I do not know if the same package also comes in a ...
7
votes
2answers
8k views

Listing Debian packages which are not fully installed

This is with reference to "sudo: apt-get: command not found." after removing some packages. This user managed to break his system by installing some packages from wheezy on a squeeze system -...
7
votes
1answer
8k views

How to remove a software installed by dpkg -i FILE.deb?

For example, Opera web browser is distributed as a deb file, and can be installed by the command dpkg -i opera.deb. How to remove it?
7
votes
2answers
5k views

Set apt-get options to tolerate harmless 'dpkg --force-conflicts' kludge?

A trivially conflicting package foo can be made to work with bar, by running dpkg --force-conflicts -i foo. But eventually it's time to upgrade, and 'apt-get' objects: % apt-get upgrade Reading ...
7
votes
2answers
25k views

I can't install new packages and can't update and upgrade

I'm trying to install some program on Ubuntu, but when I try it I got the following error.- E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock ...
7
votes
2answers
2k views

How to automatically generate .desktop file?

There's a .deb software that doesn't have a .desktop file, I created that file. I want to create another package for that software, when the user installs it, I want the .desktop file to be generated ...
7
votes
1answer
4k views

How to get the compiler flags that are used to build the binaries in a (.deb) package?

I know that apt-get source <package_name> gives you the source package. It contains a debian folder with a file called rules. If I understand it correctly, this file describes how the source ...

1 2 3 4 5 12