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.

learn more… | top users | synonyms

4
votes
0answers
82 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/...
5
votes
4answers
3k views

In Ubuntu Linux, how do I list packages installed from the “universe” repository?

On an Ubuntu 10.04 LTS server, I want to list installed packages and see what repository they come from. It’s easy to list installed packages, but it does not include the name of the repository (such ...
1
vote
2answers
179 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 ...
0
votes
3answers
61 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
30 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 ...
40
votes
6answers
38k views

How do I get the history of “apt-get install” on Ubuntu?

I am about do move a server from one Ubuntu box to another. I'm not cloning the old box to the new; I'm creating a new system and will move data as needed. I want to install all the software that I ...
0
votes
1answer
92 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 ...
1
vote
2answers
86 views

Does Debian or Ubuntu have a means of logging apt/aptitude commands?

Does Debian or Ubuntu have a means of logging apt/aptitude commands? I could also ask the same about yum commands in Redhat? Do they have a history file?
0
votes
0answers
76 views

Debian 8 dpkg extremely slow

Using debian 8 (fresh installation), i downloaded webmin using: wget http://prdownloads.sourceforge.net/webadmin/webmin_1.780_all.deb then i installed it using: dpkg --install webmin_1.780_all....
4
votes
3answers
3k views

Ubuntu dpkg, non interactive installation

I am trying to install a bunch of .deb files without having to interact with them. MySQL Server for example will prompt for an interactive menu to enter an administrative password upon the dpkg's ...
0
votes
0answers
154 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
0answers
20 views

Is it safe to invoke dpkg-query from postinst script

I want to ensure that all files installed from my package have a well-known user:group, so I want to do the following from postinst script: for each file <- dpkg-query -L mypackage; do if <...
0
votes
0answers
236 views

Can't upgrade/restart services after apt-get autoremove

I can't restart apache2 or something else after I did apt-get autoremove. service apache2 restart Failed to restart apache2.service: Launch helper exited with unknown return code 1 I tried apt-...
12
votes
6answers
18k views

dpkg: warning: files list file for package 'x' missing

I get this warning for several packages every time I install any package or perform apt-get upgrade. Not sure what is causing it; it's a fresh Debian install on my OpenVZ server and I haven't changed ...
0
votes
1answer
47 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
43 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 ...
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 ...
1
vote
1answer
2k 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/...
8
votes
3answers
1k views

apt: how to search using package tags?

Some (most?) packages in Debian, have tags. For example: =# apt-cache show squirrelmail | perl -lne 'print if /^Tag:/.../^\S/' Tag: implemented-in::php, interface::web, mail::imap, mail::smtp, mail::...
33
votes
4answers
16k views

dpkg-reconfigure: unable to re-open stdin: No file or directory

I am building a provisioning script for a ubuntu vagrant vm, on a ubuntu host, both 12.10 64bit When installing the following packages: sudo apt-get -y install php5-xsl graphviz php-pear unison I ...
16
votes
4answers
13k views

Can dpkg verify files from an installed package?

With rpm -qV openssh-server I will get a list of files that have changed compared to default. ~$ rpm -qV openssh-server S.?....T. c /etc/ssh/sshd_config ~$ Can dpkg on Ubuntu do the same?
1
vote
3answers
3k views

syntax error: unknown user 'munin' in statoverride file

Server running Ubuntu 12.04 lts I installed munin the other day on a server. I decided later to remove it with apt-get. I noticed that not everything was removed from the installation so manually ...
-1
votes
1answer
261 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 ...
4
votes
1answer
543 views

skipping dpkg-genchange step (Debian)

I'm building binary only package: dpkg-buildpackage -b -us -uc The build actually runs successfully, but I have deleted previous version of the package and now dpkg-genchanges complains: ...
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 ...
3
votes
2answers
417 views

Stopping dpkg from removing symlink on package upgrade

I have a debian package that installs a file to /usr/local/java/jre/lib/ext, where /usr/local/java is a symlink to where the jvm is actually installed, in this case /usr/lib/jvm/java-6-sun. The new ...
8
votes
2answers
643 views

What is the easiest way to create a virtual package in debian?

What is the easiest way to create a "virtual package" in debian? My problem: I have compiled/installed mysql from source and now need to tell other packages that mysql is already installed (otherwise ...
0
votes
1answer
264 views

Reverse a command and disable su on Ubuntu

Whilst following an online guide on how to secure Ubuntu server, I ran this command on one of my test VM's. sudo dpkg-statoverride --update --add root admin 4750 /bin/su I know the intention of ...
0
votes
0answers
26 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
23 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 ...
1
vote
1answer
123 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? ...
0
votes
0answers
372 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
238 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
5
votes
2answers
2k views

What exactly does this dpkg command do?

I fixed a permissin problem for nagios like discribed here. The command was: sudo dpkg-statoverride --update --add nagios www-data 2710 /var/lib/nagios3/rw sudo dpkg-statoverride --update --add ...
-1
votes
1answer
1k 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 ...
0
votes
0answers
156 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
3answers
2k views

How do I check to see if an apt lock file is locked?

I am writing a script to do some apt commands, but I am running into potential issues of the apt/dpkg databases being locked so my script bails. I want to check the lock files (i.e. /var/lib/dpkg/...
1
vote
1answer
576 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-...
5
votes
2answers
187 views

debian, diff, config default

I want to know if is posible to get the diff on the original versus the current config files of installed debian packages. If found an answers which shows up the modified config files, but I find no ...
0
votes
1answer
48 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 ...
44
votes
4answers
22k views

automate dpkg-reconfigure tzdata

I'm using puppet to admin a cluster of debian servers. I need to change the timezone of each machine on the cluster. The proper debian way to do this is to use dpkg-reconfigure tzdata. But I can ...
0
votes
0answers
187 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 ...
8
votes
2answers
2k views

What is the yum equivalent of dpkg -L?

dpkg -L lists all the files provided by a package. How is this accomplished with yum? The operating system is Scientific Linux 6.
0
votes
1answer
46 views

Dpkg: After comparing config files, how do I revert back to make my choice?

I'm part way through a fairly large apt-get upgrade which had 65 packages to be updated. I've gotten to a config file "merge conflict" where both my local config (containing a licence key) and the ...
1
vote
1answer
870 views

How to automate cleanup of config files from past pkgs as reported by “dpkg -l | grep ^rc”

There are a number of pkgs that weren't removed with "apt-get purge" and I would like to automate cleaning them up. You can't apt-get purge apache2.2-common because the pkg is already removed. You ...
6
votes
6answers
3k views

Unable to force Debian to do unattended install… libc6 wants interactive confirm

I'm trying to create a script that forces a Debian Lenny install to install the latest version of CRAN R. During the install it appears libc6 is upgraded and the install wants interactive confirm that ...
1
vote
1answer
913 views

update nginx 1.4.4 to 1.4.5 trying to overwrite X which is also in package Y

I get this error while trying to upgrade: Preparing to replace nginx 1.4.4-4~raring (using .../nginx_1.4.5-1~raring_amd64.deb) ... Unpacking replacement nginx ... dpkg: error processing /var/cache/...
1
vote
0answers
238 views

RabbitMQ start failure

I am trying to start RabbitMQ Server. And any way I do this, I get this error: Starting rabbitmq-server: FAILED - check /var/log/rabbitmq/startup_{log, _err} rabbitmq-server. invoke-rc.d: initscript ...
3
votes
3answers
5k views

How can I ignore files/directories when building debian packages?

I have made some debian packages to ease deployment of configurations on new servers and want to put them in SVN source control. The problem is that SVN creates a .svn directory for each subdirectory ...
2
votes
3answers
10k views

libapache2-mod-php5 uninstalled after update impossible to put back

I use Webmin to administrate my Ubuntu 12.04 x86_64 machine. Yesterday, as often, I got notified of updates and installed them. During the installation process, libapache2-mod-php5 has been ...