Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [dpkg]

dpkg is the package format used by Debian, Ubuntu and other popular GNU/Linux distributions as well as the tools used to work with dpkg packages.

0
votes
1answer
17 views

How can I check the realease of a package in debian?

I am planning to do an upgrade on my system and I have a mix of three releases, there are some packages from wheezy, some from jessie and some of stretch. I would like to get the list of the packages ...
1
vote
1answer
16 views

Ubuntu's `dpkg` ignores `Replaces` field of a package

I'm building a newer replacement for a package, libgpg-error. Ubuntu also has a libgpg-error0, which is depended upon by system packages (such as systemd). My package provides everything libgpg-error0 ...
0
votes
1answer
18 views

dpkg: cannot see preinst script output

I faced a problem: dpkg says that preinst script fails with exit code 1 but I see no output. I looked into script itselt (dpkg -e) and found what's wrong. But if there were output of preinst script, ...
0
votes
0answers
15 views

Backup upgradable packages with dpkg-repack on debian

I want to list upgradable packages and automatically repack them to .debs. My try: fakeroot -u dpkg-repack `apt list --upgradable | cut -f1 -d"/" | awk '{if(NR>2)print}'` So it gets package names,...
0
votes
0answers
198 views

Docker don't allow to install using dpkg command

I am trying to install docker cron package in running prometheus docker container. I downloaded cron package but somehow it is not allowing me do that. I downloaded cron package using wget command. ...
1
vote
0answers
60 views

How dpkg check config files when upgrading packages

I'm building .deb packages for my internal tools. And would like to find a right way how to deal with configuration files on upgrade. Currently when I install package-0.2.deb over package-0.1.deb, ...
1
vote
1answer
34 views

Is the snmp source package of correct version missing from security.debian.org?

I'm trying to build the newest snmp packages on debian jessie. However, https://packages.debian.org/jessie/snmp seems to show conflicting information. The page heading reads: Package: snmp (5.7.2....
1
vote
1answer
57 views

Sortable list of all packages (dpkg)

I want to dump all installed packages on a system which uses dpkg. Up to now I use dpkg -l. But it has one draw back: Sorting the result does not make sense. Head: root@aptguettler:~# LANG=C dpkg-...
-1
votes
1answer
55 views

What is the dpkg equivalent of “rpm -i”?

I have a package installed on an Ubuntu machine, and I need to list the metadata of that installed package to determine where it came from. On a Redhat based machine, "rpm -i [packagename]" will give ...
1
vote
1answer
118 views

Debian - Broken package cannot be installed or removed

I have an HP Microserver (Gen8) running Debian Jessie. When I first set it up, I installed the optional HP daemons to see what benefit they gave. One, hp-health, interfaces with the onboard iLO ...
1
vote
1answer
373 views

Is Debian package ifenslave really necessary for bonding?

This piece of Debian documentation states that package ifenslave is necessary for bonding: First install the ifenslave package, necessary to enable bonding Yet I know of two Debian 7.10 (wheezy) ...
3
votes
1answer
550 views

dpkg-reconfigure: dialog frontend sets up postfix successfully; non-interactive frontend fails

(N.B. In this question, a leading # indicates a root prompt, not a comment. Also, I have replaced the actual hostname with <myhostname>.) As the debconf (7) man-page states, dpkg-reconfigure ...
1
vote
0answers
83 views

Avoid Death by dpkg-triggers?

You don't really need to know anything about the technologies I'm using to answer my question. You only need to understand dpkg and its triggers. I'm using an orchestration tool (mcollective) to ...
5
votes
1answer
149 views

What is the recommended method of installing an arbitrary version of a package using apt?

The Problem: I need a way to install specific, pinned versions of some packages on my Debian system. snapshot.debian.org appears to offer a means to do this, however even after adding a snapshot to ...
1
vote
1answer
53 views

How to clear apt-conf list options in apt-get command line options

I'm trying to use the apt-conf #clear syntax to clear the DPkg::Pre-Install-Pkgs options on command-line apt-get, but I haven't had any luck. I've tried stuff like apt-get -o DPkg::Pre-Install-...
-2
votes
2answers
625 views

Nginx install don't work [closed]

I have a problem with nginx , I deleted nginx because I did some modifications in nginx.conf and now I can't install it ... apt-get -f install Reading package lists... Done Building dependency tree ...
1
vote
0answers
2k views

Failing to start nfs server

I'm trying to get nfs working on an Ubuntu 16.04.2 LTS. I get the following error: I've already tried reinstalling nfs-common, nfs-kernel-server and other packages following instructions provided in ...
0
votes
2answers
2k views

Dependency problems while installing Webmin

I'm having problems when installing Webmin for Debian Wheezy. It turns out that, while installing the dependencies which are mentioned on these instructions from Webmin website, I receive the ...
-2
votes
1answer
92 views

Listing all packages, but without addional text

In this time I am working of project, what tell you, what software you have installer and what you can install. In this time I have problem with this command: grep -hn Package: /var/lib/apt/lists/* . ...
2
votes
1answer
969 views

Whence /etc/php/7.0/apache2/php.ini in Ubuntu 16.04?

Where does the /etc/php/7.0/apache2/php.ini file come from on Ubuntu 16.04? dpkg -S /etc/php/7.0/apache2/php.ini returns nothing. dpkg -S /etc/php/7.0/apache2/ shows that the directory is ...
4
votes
1answer
293 views

Debian: Get list of installed packages while in rescue mode

How can I get a a list of installed packages from a debian setup which is mounted to /mnt/ while using a rescue mode? Scenario: Server crashed, only rescue mode possible. Setting up a new server, ...
0
votes
1answer
2k views

ubuntu using “force-yes” with `dpkg -i`

I have an update script for my system that updates from deb files: find /packages/apt/ -type f -name "*.deb" -exec dpkg --force-depends -i {} \+ The problem is that nginx has a configuration file ...
1
vote
2answers
4k views

dpkg: error processing package

Im trying to install mongodbserver on ubuntu 14.04LTS with reference to mongodb docs but getting the dpkg related errors root@c3:~# apt-get install -y mongodb-org Reading package lists... Done ...
1
vote
1answer
194 views

apt - update local package

Some months ago I had to install gitlab-ce on a server with Ubuntu 16.04, no access to the public internet, so I downloaded the package from the Ubuntu repository on an other machine and then uploaded ...
0
votes
0answers
277 views

How to speed up dpkg (binary) package build

I will be building debian package multiple times in a day, and each build takes more than 8-9 minutes! I was checking if there is any way to speed it up (dpkg-deb --build, binary pkg) I tried to use ...
0
votes
1answer
3k views

Installing Debian package tools (dpkg-buildpackage) on Amazon Linux?

I am setting up a web server which packages and hosts different installers for client applications on Windows, Mac OS X, and Linux. I am using EC2 so I went with Amazon Linux for my base image. I ...
0
votes
1answer
79 views

Is it possible for a debian package to be installed by multiple names through apt?

I have a package foo-new, which many new users know by its old name foo-old, so they try to execute apt install foo-old which does not work. Is it possible through a control field to make a package ...
0
votes
1answer
163 views

RPM to DPKG: Underscore in Package Name

I have a custom RPM which I convert to DPKG using the tool alien. It works with one annoyance: The input is called "foo_bar.rpm" and the output is called "foo-bar.dpkg". We have a list of packages ...
5
votes
1answer
163 views

debian/ubuntu: Prevent UI prompting in command-line apt-get

So, in order to prevent console-UI (newt, snack, dialog) prompts during the dpkg post-install, you have to do something like: debconf-set-selections <<< 'mysql-server mysql-server/...
0
votes
3answers
430 views

Bash if condition to check if a ubuntu package needs an upgrade?

I need a bash line to check if a ubuntu package needs an upgrade or not. For example, I want to check if the package 'firefox' needs an upgrade using dpkg or apt-get commands. Hypthetical Example: #...
0
votes
1answer
51 views

German Umlauts (but only uppercase) are broken

I have a proxmox3 server. I login via SSH. Umlauts (öäüÜÖÄ) works well - nevertheless if upper or lowercase. Then I login in my openvz node (debian wheezy) via: vzctl enter 100 In this node, on ...
1
vote
1answer
2k views

Installing a package to an alternate location using 'dpkg' without root privileges fails with permissions errors

The command line I am using is dpkg --force-not-root --root /some/other/location -i the_package.deb but I get an error dpkg: could not open log '/var/log/dpkg.log': Permission denied I would have ...
1
vote
0answers
445 views

Create custom package from nginx source - renaming nginx to custom-nginx

My dist is Ubuntu 14.04 use case I am attempting to create my own packaged nginx called 'custom-nginx'. It needs to install itself into alternative directories as so it does not interfere with the ...
0
votes
1answer
111 views

dpkg/apt-get updating a package - downtime?

I was wondering if apt-get/dpkg packages (.deb's) manage downtime at all when updating? For example, when updating nginx (assuming it's already installed) via sudo apt-get install nginx, it looks to ...
3
votes
1answer
494 views

Hook into installation of Debian package

When installing packages with daemons, they often restart that service during installation/upgrade on Debian. I got a daemon that has some options that can only be set on runtime, not configured. If ...
1
vote
2answers
452 views

Sub-process Error

Im trying to move my Wordpress site from a managed VPS to my OVH dedicated machine and im in the middle of trying to install WP. However following these instructions I get this error: Setting up ...
-1
votes
1answer
519 views

Dovecot install error: Sub-process /usr/bin/dpkg returned an error code

I am trying to install a mail server on my Raspberry Pi. I have setup the FQDN and run apt-get update, and am trying to install postfix, mysql and dovecot with the command apt-get install postfix ...
0
votes
1answer
23 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 ...
0
votes
0answers
57 views

dpkg custom package name from source install

I want to be able to set a custom package name when installing a package using dpkg from source. Running this command: dpkg -i /path/to/deb/ruby-2.2.0.deb installs the package as: ruby-2.2.0 2.2.0 ...
0
votes
2answers
28 views

Automatic retrieval of current mapping debian stable -> released name

I'm automating my customary debian setup using ansible. The playbook is supposed to treat testing/unstable and stable differently: the former are to be maintained "clean", while the latte is to ...
0
votes
0answers
748 views

Dpkg dependency problems on Unpacking a package for Docker

I am building a debian package atlantis-builder.deb with folder structure as: - deb - DEBIAN - control - postinst - postrm - usr - bin ...
1
vote
1answer
544 views

Check to see if “dpkg --configure -a” needs to be run

When something goes wrong in the middle of a dpkg configuration we need to run dpkg --configure -a before installing a new package. Is there a way to check if "dpkg --configure -a" needs to be run? ...
2
votes
1answer
648 views

command line alternative to dpkg-reconfigure slapd

Is there a way to reconfigure slapd, providing all configuration options as command-line parameters/arguments? My goal is to be find an alternative to the interactive UI. Thank you
0
votes
1answer
3k views

dist-upgrade from Debian 7 (wheezy) to 8 (jessie) results in 'Failed to execute operation' errors

After upgrading Debian 7 (wheezy) to 8 (jessie), any system critical action results in one of the following messages appearing: Failed to execute operation: Activation of org.freedesktop.systemd1 ...
2
votes
1answer
3k views

virtuoso-opensource 7.1: how do I build an ubuntu deb package, from github source, that includes isql?

Does anyone know how to create a virtuoso-opensource 7.1 ubuntu deb package, from source, that includes isql? If I do a make install from the source, virtuoso-t and isql are installed to the /usr/...
1
vote
1answer
9k views

How to check dependency of debian package? [closed]

Before installing a Debian package, I want to check if the current system has all the depending packages installed. Below is what I am currently doing (using bsdgames as an example). Note, I do not ...
1
vote
0answers
201 views

Broken apt trying to install Cassandra

While trying to install Cassandra on Ubuntu 13.10, the installation crashed and now I'm stuck with broken (?) apt-get. Here is the output of an apt-get install -f: Reading package lists... Done ...
1
vote
1answer
744 views

Why does aptitude want to update the original kernel when I use backports?

On Wheezy I am using the current backports kernel, which I set up via # echo "deb http://ftp.de.debian.org/debian wheezy-backports main" > \ /etc/apt/sources.list.d/wheezy-backports.list # apt-...
0
votes
1answer
54 views

Server shuts down during apt upgrades (specifically libdbus)

I woke up this morning to find my VPS down. I brought it back, couldnt find any reason for it being down (nothing in the syslog, etc) so figured it was my crappy provider. I ran apt-get upgrade and it ...
0
votes
0answers
248 views

dpkg-query --show [package-name] prints out uninstalled packages

I removed mysql from Ubuntu server completely as below sudo apt-get remove --purge mysql-server mysql-client mysql-common sudo apt-get autoremove sudo apt-get autoclean sudo deluser mysql sudo rm -rf ...