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
35 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
43 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
98 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
42 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 ...
0
votes
1answer
57 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
54 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
33 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
38 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
38 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
59 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
34 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
463 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
202 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 ...
4
votes
1answer
3k 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
66 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
71 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
86 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
43 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
90 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
28 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
245 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
167 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 ...
0
votes
1answer
139 views

How to force `dpkg` to install dependencies [closed]

I would like to install .deb file via dpkg in Arch Linux. This .deb file needs many dependencies. I don't want to install dependencies by hand. How do I force dpkg to install dependencies?
1
vote
0answers
35 views

How to combine deb dependencies into main package?

I want to include deb-dependencies with main deb-package. Consider 1 deb package which have 19 deb dependencies, so I have to install all packages by dpkg -i *.deb. If all 19 dependencies can be ...
1
vote
0answers
30 views

How do I confirm if another instance of my package manager is still running?

dpkg is reporting that the database is locked which may imply that another instance of the package manager is still running so how do I check this? I have a Debian based system and this came up while ...
-1
votes
1answer
53 views

Unable to install new package on debian armhf

I got a debian 7.4 armhf that have been running for month without any problems. A few days ago I made some updates, and after that it seams that my dpkg doesn't work correctly any more. When I try to ...
0
votes
0answers
33 views

When installing libpbc on Linux Mint, configure fails, and there is a shell script for dpkg, but it seems to have no output

I am trying to install libpbc.I started with the git URL. The git clone command installed a new pbc directory. The INSTALL file advises using ./configure. However this command returns, configure: ...
3
votes
2answers
163 views

What means “unable to make backup link of /binary before installing new version: No such file or directory”?

I'm trying to upgrade some package in a VM, but I dpkg refuses to apply the upgrades due the following: dpkg: error processing /var/cache/apt/archives/ifupdown_0.7.5ubuntu2.2_amd64.deb (--unpack): ...
0
votes
1answer
320 views

dpkg won`t install any package

I`m in deep trouble with my Ubuntu 13.04. Ubuntu stopped support of 13.04 so I added wheezy repository to sources.list then upgraded my system. After then I can neither install any package nor upgrade ...
3
votes
2answers
545 views

How to remove Dropbox

I am trying to remove Dropbox from my computer. So far I have done the following: sudo aptitude remove dropbox sudo aptitude purge dropbox But this didn't get rid of it 100% oshiro@debian:~$ ...
0
votes
0answers
857 views

subprocess installed pre-removal script returned error exit status 1

Here is the virtualbox-4.3.prerm script. apt-cache policy virtualbox-guest-additions-iso virtualbox virtualbox-4.3. I was trying to install virtualbox-guess-additions-iso, and got the following ...
1
vote
1answer
186 views

Linux Debain Squeezy Distro: Weakerth4n, Kconfig && make issues

I am running the Weakerth4n linux operating system on my old dell d600 laptop I got at Defcon for $80 USD. Anyway I had a question about making certain programs (like Virtual Box) this may be as ...
2
votes
1answer
131 views

debian: remove all packages installed on a specific day

I have to remove all packages installed on a specific day. My solution is to look up the file /var/log/dpkg.log, find out the entry with the right date, extract the names of the packages and remove ...
0
votes
0answers
128 views

Error when installing Oracle VirtualBox on Ubuntu 12.04

I got the following error and couldn't find any solution on Google: apt-get -f install VirtualBox-4.3 dpkg: error processing /var/cache/apt/archives/virtualbo ...
118
votes
5answers
21k 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 ...
1
vote
2answers
122 views

Listing Debian packages which are not fully installed

This is with reference to sudo: apt-get: command not found. On Debian, SSH. This user managed to break his system by installing some packages from wheezy on a squeeze system - not sure why or how. In ...
0
votes
1answer
5k views

“../../src/filesdb.c:683: findnamenode: Assertion `(*pointerp)->name[0] == '/'' failed.”

I have been trying to update Ubuntu 12.04 on the command line by using the two commands sudo apt-get update sudo apt-get dist-upgrade which ends with the following error: (Reading database ... ...
1
vote
2answers
189 views

Debian package created by checkinstall overwrites a config file in /etc/default

I'm using checkinstall (1.6.2) to create a Debian package from compiled binaries. "make install" copies two files as follows: install -m 0755 gmediarenderer /etc/init.d install -m 0644 -T ...
3
votes
1answer
36 views

Flag a package as being configured on Debian even if it's not

For various reasons, I have a package on my Debian system which cannot configure itself properly. I know why and I don't want to correct the problem right now. However, I want to avoid apt trying to ...
3
votes
3answers
110 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 ...
-1
votes
2answers
2k 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 ...
2
votes
2answers
39 views

Diff dpkg files with local copies

Is there a way of diffing the dpkg files with the one that are actually installed? Or barring that a way to find ones that have been modified?
3
votes
1answer
196 views

Why does grep change the length of output lines?

I often use dpkg or aptitude combined with grep when I want to list certain packages available or installed on my system, but I noticed that when I add | grep, the output lines look a little bit ...
1
vote
1answer
44 views

validate all packages to be correct

I have two machines. One of which started to act strange lately (aptitude segfaulting, apt requiring a library named lkbm.qo.6). As the broken machine is not vital to me, I don't want to squash and ...
1
vote
3answers
143 views

What is the difference between a linux package and a linux module?

when I do dpkg --get-selections or less /proc/modules I see two different list. I don't understand the difference between the elements of each...
0
votes
1answer
196 views

Installing packages from LMDE on debian wheezy

I downloaded thunderbird from LMDE repo and tried to install it on my debian wheezy machine, using apt-get install I get a ton of this garbage output; Note, selecting 'iceape-l10n-cs' for regex '.' ...
4
votes
3answers
243 views

Can removed Debian packages have leftover files?

I noticed a weird thing in my /etc/init.d files and tried to look a bit what was going on. Here's my problem: # apt-file search /etc/init.d/minissdpd minissdpd: /etc/init.d/minissdpd # ...
1
vote
1answer
50 views

is it possible to determine installed packages on a secondary mounted drive?

I'm "upgrading" to a new distro (from Linux Mint 15 -> 16) by performing a fresh installation to a new drive, and referencing my original drive as needed. I've currently booted to my new installation ...
1
vote
0answers
177 views

Debian 7.3 can't remove postgresql

Solved: I removed /var/lib/dpkg/info/postgresql-8.4 Now everything is fine. sudo rm -r /var/lib/dpkg/info/postgresq* I got this problem: alex@VRIL ~ % sudo apt-get install python3 Reading ...
1
vote
2answers
380 views

When removing a Debian package, how can I also remove Python *.pyc files?

I have a Debian package say XYZ.deb which copies some file on installation. As per Debian package policy on package uninstallation only those files will be removed which were copied during ...