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.

learn more… | top users | synonyms

0
votes
1answer
40 views

How to list softwares installed in my system

As far as I studied, pkg-config command returns the info about all the libraries installed in my Linux system. Can anyone specify me from where does it get these details? Also, where will I get the ...
-1
votes
2answers
20 views

dpkg --status package_name

I'm just playing around with Ubuntu 14.04.1 LTS. I installed emacs, and wanted to double check if it was. ~ 1496 $ dpkg --status emacs dpkg-query: package 'emacs' is not installed and no information ...
2
votes
1answer
36 views

parse error in /var/lib/dpkg/status: `Depends' field, invalid package name `python:any'

How can I fix the following error? sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following ...
0
votes
1answer
10 views

Dpkg env variable DPKG_HOOK_ACTION is not set in hook script

According to man dpkg I can use DPKG_HOOK_ACTION to get the current dpkg action being run in my dpkg hook script --pre-invoke=command --post-invoke=command Set an invoke hook command to be run ...
1
vote
2answers
31 views

Lots of unmet dependencies while updating Python

It was suggested that I uninstall and reinstall Python, so I deleted every directed labeled python until 'which python' and 'which python3.4' didn't show anything. Then I did apt-get remove python ...
0
votes
0answers
17 views

apt itself update and download packages

I have Debian SID with the following APT configuration: APT::Periodic::Update-Package-Lists "0"; APT::Periodic::Download-Upgradeable-Packages "0"; APT::Periodic::AutocleanInterval "0"; ...
3
votes
1answer
45 views

Restore original configuration for every package in system

I have been running a rolling release distro for a couple of years now and switched from LXDE to GNOME to KDE over the years. As you can imagine over the time a lot of configuration files have been ...
1
vote
2answers
183 views

Can't install any package with sudo apt-get install

I'm running Raspbian on my Raspberry Pi I just set up this day, the problem is that every time I try to install any package I get an error , for example, sudo apt-get install samba gives me : The ...
1
vote
0answers
20 views

Finding locales with no separate entry in /usr/share/locale on Debian

I want to remove all unneeded locales on my Debian system in /usr/share/locale. I have installed the package locales and generated en_IE.UTF-8 UTF-8 by using echo "en_IE.UTF-8 UTF-8" > ...
2
votes
1answer
58 views

RPM alternative to dpkg-divert

I'm trying to port some scripts from Ubuntu to Centos6 (for docker) Now I'm having trouble trying to replicate this in Centos (which I am not very familiar with) dpkg-divert --local --rename --add ...
1
vote
1answer
25 views

Remove Gnome Components detect by Packagename

I have tried out the dpkg, aptitude and apt commands. On the gnome desktop I decided to remove one component. sudo apt-get remove gnome-games or something else, all works fine. But if I don’t ...
3
votes
1answer
188 views

After creating a .deb: dpkg:warning while removing, directory /usr/local/bin not empty so not removed

I have created a package of zsh 5.0.7 from sources and now I can install it successfully but when I try to remove it I get this: $ sudo dpkg -i zsh_5.0.7_amd64.deb Selecting previously unselected ...
0
votes
1answer
1k views

E: Sub-process /usr/bin/dpkg returned an error code (2)

I wanted to install bluefish editor but I got this error. This is not the first error I got involving packages. I installed Linux Mint 17 two days ago and every time after a reboot there is some kind ...
2
votes
4answers
912 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 ...
0
votes
1answer
102 views

what does “dpkg-buildpackage -rfakeroot -d -us -uc -S failed” mean?

I was trying to build a simple Debian package, I did these steps with user root: First, I downloaded the upstream tarball, then: $ mv hithere-1.0.tar.gz hithere_1.0.orig.tar.gz Then: $ tar ...
2
votes
1answer
30 views

Behavior of dpkg -S when the argument starts with a slash

dpkg -S /usr/share/doc/tasksel-data # fine dpkg -S usr/share/doc/tasksel-data # fine dpkg -S /share/doc/tasksel-data # not found dpkg -S share/doc/tasksel-data # fine dpkg -S ...
3
votes
1answer
116 views

Error message: unknown user 'geoclue' in statoverride file

I obtained a strange error message inside a chroot: unknown user 'geoclue' in statoverride file when running apt-get install or apt-get upgrade. I use schroot to enter this chroot. I found that I ...
1
vote
1answer
327 views

“except (IOError, OSError), e: SyntaxError: invalid syntax” when configuring python-lockfile

I am having trouble installing any new packages in Ubuntu because of python. I tried sudo apt-get install python3 python3-dev but I am getting the following output :: dpkg: error processing ...
0
votes
1answer
268 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 ...
2
votes
3answers
318 views

Install from 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?
1
vote
1answer
64 views

How to find out which package installed a symlink

In this question I describe my problems finding out the package that installed the final target of the /usr/bin/rename command. dpkg -S /usr/bin/rename did not give a result, but after first finding ...
1
vote
1answer
32 views

How to find the package that installed a comand, if “dpkg -S” finds no path because the command is a symlink?

While I was writing up a tag information for rename, I tried to look up with which package the rename command was installed. I ran the usual "dpkg -S" (also mentioned in this question): $ which ...
1
vote
1answer
19 views

Does dpkg -r consider dependence between applications?

When removing an application using dpkg -r, how does it handle dependence between installed applications? If some other installed application depends on the application to be removed, and we still ...
1
vote
1answer
267 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 ...
0
votes
1answer
526 views

After upgrade MongoDB it does not start and log is empty

Can you help me with this problem please? I have updated (apt-get upgrade) my system Debian GNU/Linux 7.6 (wheezy) but for problem with disk space operation failed. After I have released disk space, ...
4
votes
2answers
150 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 ...
-1
votes
1answer
23 views

How can I made a Debian ports like repo?

Is there a way to have only a debian folder and build the package (downloading and unpacking the sources) automatic? I've seen uscan but it scans for new packages, it doesn't allow to have a fixed ...
3
votes
2answers
632 views

apt-get returns strange error

I am on kali linux and when I run apt-get update it returns this: W: Unknown flag value: yes W: You may want to run apt-get update to correct these problems after running apt-get update several ...
0
votes
1answer
824 views

“UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte” error when attempting to remove nvidia-304 package

I'm trying to remove package nvidia-304 from my system (Ubuntu 14.04) but I'm getting this error: Do you want to continue? [Y/n] y (Reading database ... 283298 files and directories currently ...
2
votes
2answers
705 views

many many dpkg errors while upgrading

I am using Ubuntu 14.04, newly upgraded from 12.04. I was trying to upgrade my software, but it is showing many, many dpkg errors regarding texlive-*. When I type following command: sudo apt-get ...
2
votes
3answers
802 views

'ImportError: No module named _struct' error when managing packages

I'm running elementary OS 0.2 (based on Ubuntu 12.04) and starting today I'm seeing a weird error when attempting to install/upgrade packages. Just now for example I did a: sudo apt-get update ...
2
votes
2answers
179 views

How do I remove a driver when apt-get remove fails?

I am trying to remove fglrx-driver as part of an upgrade from wheezy to jessie. Running apt-get dist-upgrade failed with the following message: fglrx-driver ... dpkg: error processing fglrx-driver ...
2
votes
3answers
328 views

Zentyal dpkg dependecy install problems because packages are not configured

I have done a fresh install of Zentyal 3.5, which is based on Ubuntu 14.04. To be fully operational, several modules must be installed. Many of these modules failed to install since a chain of them ...
2
votes
1answer
1k 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 ...
3
votes
2answers
42 views

Get package version of file

I've deleted a file in /etc provided by package packageA. Is there a way that I can reinstall only that file, provided I know where it is and which package provides it? I'm running Ubuntu 12.04 and ...
4
votes
2answers
58 views

Sort installed applications according by usage frequency?

My / is running low. So I am considering freeing up some space by uninstalling some packages. “Which installed software packages use the most disk space on Debian?” already covers sorting by size, but ...
0
votes
1answer
593 views

What do you do when you try to sudo and root's PATH has gone kerblooey?

I've got a feeling something bad just happened to this machine. faheem@bulldog:/usr/local/src/mercurial$ sudo dpkg -i mercurial_3.0-1_amd64.deb mercurial-common_3.0-1_all.deb dpkg: warning: ...
1
vote
3answers
131 views

The difference between a binary and a source package in Ubuntu/Debian?

The information below seems misleading. I am confused with the example they give that if you lose dpkg (the program that lets you handle .deb files) you can use the other commands ar, tar, and gzip ...
1
vote
1answer
52 views

Rename Debian package automatically pulled by apt-get upgrade

I have installed package_a with version 1.0. How to configure package control script for package_b (e.g version 1.1) to automatically replace package_a? tried (as described in 7.6.2): Package: ...
6
votes
3answers
496 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?
2
votes
2answers
767 views

Installing python gives dpkg error

Installing python gives a dpkg error. I have done these commands, output below $ sudo apt-get install python3.4 $ sudo dpkg -C $ sudo apt-get check $ apt-cache policy libglib2.0-dev $ sudo ...
13
votes
2answers
26k 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, how can I solve it? ...
2
votes
2answers
114 views

Debian: get package name for installed file

I'm connected via SSH to a PC running Linux kernel 3.11.1: root@alix:~# uname -r 3.11.1 how can I find out which package installed this specific file or kernel version respectively? I tried ...
2
votes
0answers
145 views

debootstrap terminates partway through with “stdin: not in compressed format”

I'm on an Arch GNU/Linux system, fully up-to-date (both official repositories and from the AUR). I'm attempting to install a copy of Debian Wheezy so that I can chroot into it and work with the ...
1
vote
1answer
106 views

How to verify that package-installed files match originals?

Let's say I have an installed, working and up-to-date system, and want to verify that all package-installed files on it are the same as those packaged by the respective package maintainer. In effect, ...
1
vote
1answer
48 views

Create a deb package from difference between two images

I am maintaining an Ubuntu server image as a development environment with several deployments. If my base image changes - install a package, modify conf files, etc - I am manually patching the new ...
3
votes
1answer
154 views

Backtrace of “git clone” running inside qemu-user-emulation based arm-chroot

I'm running a wheezy:armhf chroot using qemu user emulation on my jessie:x86_64 system. Somehow, a git clone on a particular private repository will hang inside the chroot, while succeed natively. ...
0
votes
1answer
38 views

Start an installed Debian Package from Konsole

i have installed teamviewer from dpkg and when i list it: dpkg-query -l it shows up, but how can i run it? Its not under "Applications" thanks!
4
votes
1answer
621 views

Unable to remove openmediavault package due to postrm script error

I'm a Unix noob so struggling a bit with the commands. Managed to set up SABnzb, Sickbeard and Couch Potato and all working nicely I have a problem with Ubuntu 12.04 server. When trying to upgrade or ...
2
votes
2answers
390 views

dpkg won't install package with dependencies that have newer version

Please someone explain to me this, because it makes no sense: $ dpkg -i freeling-3.1-quantal-x86_64.deb Selecting previously unselected package freeling. (Reading database ... 283003 files and ...