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
12 views

run remote command to save debian package list

I'd like to backup the package list(dpkg) of some remote computers to a backup server: all of them running Debian. I already configured the rsa key to login remotely as root on the other computers ...
1
vote
1answer
26 views

Elementary Os. Nvidia and apt-get stopped working after updating windows 8.1 (Dual boot)

My computer have dual boot (Windows 8.1 and Elementary OS Freya - Ubuntu 14.04). Today, After installing updates on my windows partition Elementary OS loaded into a black screen. I've already ...
0
votes
1answer
18 views

error when install library ubuntu 10.10

I have installed Ubuntu 10.10 I have chosen this Ubuntu because I want to run openbts 2.6 on this machine. My problem is that when I run this library: sudo apt-get -y install libfontconfig1-dev ...
2
votes
1answer
30 views

Where does “dpkg -l ”*“” gather its information?

As I understand, dpkg -l "*" under Debian lists all the available packages regardless of their state. Where does this information come from? I understand that /var/lib/dpkg/available lists all the ...
2
votes
1answer
16 views

understanding “dpkg --status-fd n”

From man dpkg (1.16.16 (i386) on a Debian (7) based Linux Distro): --status-fd n Send machine-readable package status and progress information to file descriptor n I read this ...
0
votes
1answer
42 views

build-essential tries to install unrelated package nautilus-dropbox

Whenever I try to install them through the Software Center it will remain at 0% for hours. I instead attempted to install the application I needed by compiling it from source. I needed the ...
2
votes
1answer
56 views

Is it possible to have a Debian package pre-install script run apt-get commands?

I'm creating a Debian package that has a few dependencies not found in the official repositories. Simply specifying these other packages as dependencies doesn't cut it, as their installations alone ...
1
vote
1answer
97 views

Debian dpkg error > libxrender1

apt-get update && apt-get upgrade You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: libxrender1 : Breaks: libxrender1:i386 (!= ...
1
vote
1answer
44 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?
0
votes
0answers
46 views

Problem when using alien to install Oracle SQL Developer

I am trying to use alien --scripts to make a .noarch.rpm file into a .deb file, however, it is not working. I am trying to install Oracle SQL Developer: I have downloaded the ...
0
votes
2answers
36 views

Generate dpkg .deb filename

We have a software project, which we release as a debian package. The project has a debian/ folder which contains files like changelog compat control copyright rules. We're creating debian ...
2
votes
1answer
90 views

Error When trying to install a package using dpkg

I am trying to install Oracle SQL Developer onto a Debian Linux server. I started off by downloading a package from the Oracle website; sqldeveloper-4.0.3.16.84-1.noarch.rpm I then called the ...
3
votes
0answers
40 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 ...
2
votes
2answers
68 views

Debian - get all dependencies updated when they 'wont be installed'

I've been trying to install Percona Toolkit onto my Debian (wheezy) server. I downloaded it as per the instructions: wget percona.com/get/percona-toolkit.deb then installed it sudo dpkg -i ...
4
votes
1answer
78 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 ...
1
vote
1answer
118 views

Backup and Restore list of installed packages and APT sources

I commonly reinstall Ubuntu and back up my APT stuff [sources, keys and installed package lists] using the tutorial at http://askubuntu.com/a/99151/371765. However I commonly also remove software such ...
1
vote
1answer
128 views

Error while installing Apache; error is “E: Sub-process /usr/bin/dpkg returned an error code (1)”

I followed an online article to remove my Apache from my system. I removed Apache through these commands sudo apt-get purge apache2 apache2-utils sudo rm -rf /etc/apache2-bin sudo apt-get autoremove ...
2
votes
1answer
237 views

Installing MongoDB in Ubuntu LXC Container. Fails with 'invoke-rc.d: initscript mongod, action “start” failed.'

I can't manage to install mongodb in a Ubuntu LXC container. I've set-up the Ubuntu 14.10 host by following these instructions: https://linuxcontainers.org/lxc/getting-started/ lxc-create --version ...
0
votes
0answers
19 views

How to exclude folders when packaging for debian?

I am attempting to build a c++ project and package it in .deb format. I am able to successfully create a .deb package; however, it includes files that I do not want contained in the package. How can I ...
0
votes
0answers
45 views

How do I install dpkg in Puppy Linux ?

Puppy Linux contains the package manager PPM (Puppy Package Manager), I do not know how to use the command line for PPM, is it possible to install dpkg onto Puppy Linux ?
0
votes
1answer
72 views

Accidentally deleted dpkg executable

By mistake I have deleted dpkg executable from bin folder. Now whenever I try to install anything I get the following error message: Sub-process /usr/bin/dpkg returned an error code (100)
0
votes
1answer
208 views

How to install the package 'dpkg' from the AUR

Today I installed Archlinux and I tried to install the following package 'dpkg' from the AUR. I tried 2 methods: pacman -S dpkg and after that failed I downloaded the *.tar.gz and tried: pacman -U ...
0
votes
1answer
43 views

dpkg still thinks corrupted upgrade of Textadept pending - how to clean up?

Yesterday I attempted to upgrade my installation of the Textadept editor in my Linux Mint 13 ("Maya") LTS Xfce 32-bit system (based on Ubuntu 12.04 Precise). I get this via the WebUpd8 PPA, and have ...
-2
votes
1answer
404 views

E: Sub-process /usr/bin/dpkg returned an error code (1) [duplicate]

I've just run: sudo apt-get upgrade And at the end I get the following error: Setting up liboxideqtquick0:amd64 (1.4.2-0ubuntu0.14.04.1) ... Setting up liboxideqt-qmlplugin:amd64 ...
0
votes
0answers
190 views

Unable to install anything using apt

I was trying to install an earlier gcc and g++ (4.6.3) for compatibility reasons and now apt seems to be broken. It appears that apt-get install behaves like this for everything, not just dpkg: ...
1
vote
3answers
104 views

Loop to check whether a Debian package is installed or not

I like to check whether several packages are installed or not on Debian/Ubuntu Here is my attempt at a script to do this: query=`dpkg-query -W -f '${Status}'` ok="install ok" if ! [ `$query` curl ...
2
votes
4answers
71 views

How to find out which package a user belongs to?

In Linux distributions, some packages create user accounts. How can I determine which package created a given user? I want to know specifically for Fedora and Ubuntu, but answers for other ...
0
votes
2answers
57 views

How do you repackage a deb package for an older OS?

I know how to extract a package, make some minor changes, and repackage it. I wanted to know if there was anything special you'd have to do if you were to repackage a deb package so it was compatible ...
0
votes
1answer
280 views

“dpkg: 3 expected programs not found in PATH or not executable.”

I'm trying to upgrade my Squeeze VPS to Wheezy, but I'm keep getting an error. Get:3 http://ftp.de.debian.org/debian/ wheezy/main libmono-cil-dev all 2.10.8.1-8 [19.7 kB] Fetched 2185 kB in 1s (1295 ...
1
vote
1answer
56 views

Find source of all installed packages on Debian based systems

I am trying to find a good method to find the repository for each package that was stored on my system that can be easily parsed. Backstory: I have Debian wheezy systems and have setup the ...
0
votes
0answers
150 views

Blocked by “E: Sub-process /usr/bin/dpkg returned an error code (1) ”

When I tried to install "php5-mysqlnd", my computer was blocked and the installation was blocked during the configuration, and now I have a lot of problems. Here is my dpkg -C output: The following ...
2
votes
1answer
135 views

Installing packages by importing the list with dpkg --set-selections

I've tested this using two virtual machines running Lubutu. On the first I Installed a couple of programmes (VIM and cowsay) then ran : sudo apt-get update sudo apt-get upgrade sudo dpkg ...
0
votes
1answer
64 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 ...
0
votes
2answers
35 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
170 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
56 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
252 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
37 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
76 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
3answers
2k 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
70 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" > ...
3
votes
1answer
183 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
48 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
689 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
3k 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
4k 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
471 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
32 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
310 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
859 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 ...