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

2
votes
1answer
36 views

Help me repair my python - I think dpkg has to be reset (very tricky issue)

first question in Unix & Linux - I really hope, someone can help... Summary (TL;DR) On my Kubuntu 14.4 (which has python 2.7.6 as standard) my python is broken after I tried to install python ...
3
votes
1answer
36 views

Why don't most common Linux package managers allow package installation for normal users? [duplicate]

I tend to install quite a lot of packages with ./configure --prefix=$HOME && make && make install. Why can't I do this as easily with dpkg or yum? Or if I somehow can, what is the way ...
3
votes
1answer
26 views

Use symlink to move directory created by .deb package - will anything break?

Sometimes it seems useful to shift package's directories around between tmpfs / flash memory or ssd / hard disk. To manage flash lifetime, disk spin-up, or just free space. If you replace a ...
3
votes
3answers
41 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 ...
3
votes
3answers
52 views

Unpacking a .deb file containing a MIPS binary

I'm trying to install openssh server on a router and need a MIPS compiled binary. I've downloaded the one from here but encounter an error upon extraction: $ sudo dpkg --unpack ...
3
votes
2answers
45 views

apt - checking if a similar package has been installed

This question explains how to find out if a given Debian package has been installed, but it does not take into account "synonyms" when installing via apt-get. For instance, if I try apt-get install ...
0
votes
2answers
37 views

Install to different location (/root) using dpkg

I am a little new to Linux and currently running Mint 17. I want to have more control over where everything is installed (i.e. /root vs /home) and see if I can install to /root without editing ...
0
votes
2answers
31 views

I need to install two different versions of a library on a Debian-based distro

Jessie comes with APR (apache runtime portable) as package libapr1 version 1.5.1-3. However, that is the only version that Jessie has (it is also the newest version). I am trying to build the UIMA ...
0
votes
0answers
43 views

Installing hostapd via apt-get and dpkg results in different boot behaviour

I am trying to set up a Wifi hotspot on Debian 7.6. After reading a few tutorials, I have managed to get the Wifi working by installing and configuring hostapd. I need to install and configure this ...
0
votes
0answers
22 views

Samba install error [closed]

I was trying to reinstall samba after, I think uninstalling it correctly. After it is installed the samba daemon will not start. {FAIL} Starting Samba daemons: nmbs failed! invoke=rc.d: initscript ...
2
votes
1answer
30 views

preventing dpkg-buildpackage using /usr/bin as installation destination

Briefly, I am building a Debian package. Everything works fine with packaging except the point, that after packaging my application is always in the /usr/bin folder. It's actually a Python ...
16
votes
1answer
203 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 ...
0
votes
1answer
21 views

Specify diff options for dpkg's config file prompt

When a conffile is modified, dpkg gives you a prompt asking what to do: Configuration file '/etc/apache2/mods-available/ssl.conf' ==> Modified (by you or by a script) since installation. ==> ...
1
vote
1answer
39 views

Before upgrading a package, how can I know what files will be modified?

I have to update some machines, but I am using a patched version of linux, and don't want packages to modify specific files. To be clearer here is a list of the actions I don't want a package to be ...
0
votes
1answer
16 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
98 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
32 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
35 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
55 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
56 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 ...
3
votes
1answer
103 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
119 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
65 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
100 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
68 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
160 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
66 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
119 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
163 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
396 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
253 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
314 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
45 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
70 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
147 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
477 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
49 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
839 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
263 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
201 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
82 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
70 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
514 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
69 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
202 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
208 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
74 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
41 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
208 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
99 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 ...