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

1
vote
1answer
17 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
8
votes
4answers
10k 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 ...
3
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 ...
15
votes
2answers
6k 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 ...
0
votes
0answers
41 views

I am not able to configure LDAP on Debian 7.7

I have a Debian 7.7 box and have installed openldap-2.4.31 from repos, but I can't manage to configure it. I run the install commands and it goes well, I am following this how to, then when I try to ...
0
votes
1answer
788 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
2answers
960 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 ...
0
votes
0answers
121 views

virtuoso-opensource 7.1: how do I build an ubuntu deb package 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 ...
5
votes
3answers
2k 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 ...
10
votes
4answers
5k 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
votes
1answer
43 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
57 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. ...
1
vote
1answer
197 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 # ...
5
votes
2answers
128 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
39 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 ...
23
votes
4answers
15k 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
60 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 ...
0
votes
0answers
50 views

package manager cannot create users? installation script fails?

It seems that when trying to install any package which requires the creation of a system User and Group, the installer fails with the error: install: invalid user 'username' When it happened the ...
5
votes
2answers
565 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
0answers
94 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
1answer
30 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
103 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 ...
4
votes
6answers
2k 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 ...
0
votes
1answer
238 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 ...
1
vote
0answers
127 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
3k 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 ...
1
vote
3answers
4k 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 ...
10
votes
5answers
2k views

Compute a list of difference between packages installed on two hosts

I just add some problems with my Debian virtual servers and I add to reinstall all of them from scratch. However, I still had access to the old version and I could retrieve the list of installed ...
0
votes
1answer
158 views

Prevent update-manager from overwriting my Configs

After installing a package with apt-get and then overwriting some package specific config files, whenever the system upgrades itself it tries to overwrite my custom configs with the package default ...
22
votes
5answers
23k views

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

Greetings again. 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 ...
2
votes
2answers
742 views

How to config the parameter in puppet sudo module in order to replace the client sudoer?

I'm configuring sudo module in puppet according to this code class sudo { package { sudo: ensure => present, } if $operatingsystem == "Ubuntu" { package { "sudo-ldap": ensure => ...
2
votes
0answers
207 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: ...
4
votes
2answers
981 views

Chef recipe to install varnish 3.0 on ubuntu lucid?

Here's my problem. I want Varnish 3.0, but Lucid only has the 2.1 package available. So using Chef, I need to make an install recipe that adds the varnish-cache.org repository to the apt sources and ...
0
votes
1answer
81 views

Ubuntu dpkg broken

I have an Ubuntu installation where /var/lib/dpkg is empty. Every apt-get command fails with this error : E: Impossible de verrouiller /var/lib/dpkg/status - open (2: Aucun fichier ou dossier de ce ...
0
votes
0answers
63 views

Build PHP with dpkg-buildpackage

Trying to build PHP with command: dpkg-buildpackage -rfakeroot -d But got an error: Thank you for using PHP. config.status: creating php5.spec config.status: creating main/build-defs.h ...
0
votes
3answers
160 views

Trying to install package with dpkg - no space on disk

I have an issue with dpkg and disk space. When I installed my pc, I let the installer create partitions using lvm. My rootfs was created at 322MB, now I just have 97M left. The disk is full so there ...
1
vote
2answers
2k views

dpkg: error processing linux-image-amd64

After running apt-get update apt-get upgrade apt-get dist-upgrade apt-get install -f dpkg --configure -a I get the following Error: dpkg --configure -a Setting up initramfs-tools (0.112) ...
1
vote
2answers
96 views

Search for installed unavailable packages (backports and 3rd party)

I would like to remove any packages that I installed from third party repositories. I recently installed some backports from PPA repositories, and I suspect one of them broke my Ubuntu 12.04 server ...
0
votes
1answer
46 views

Force apt-get not to upgrade a custom package dkpg [duplicate]

I've created my own deb package for Redis 2.6.11 instead of the very old default version for Ubuntu. All works well except when I do an apt-get upgrade it tries to install what it thinks is the latest ...
0
votes
1answer
299 views

installed post-installation script returned error exit status 1

I found many complains with same error but for different packages. However, i couldn't understand essence of this error and how to fix it. Pls. help if you have any clue about it. It appeared first ...
0
votes
1answer
69 views

postinst script in hand-rolled .deb reported not found

I had a quick dpkg/debian-izing question. I am trying to create a .deb(by hand - mostly for learning purposes) and I have rolled up an ar-chive with the control.tar.gz, data.tar.gz and the ...
3
votes
1answer
256 views

What to do when local usernames conflict with network usernames

We use Puppet to manage our Linux desktop machines and SSSD to authenticate our users against a central authentication system. Recently when setting up a few new machines we found that puppet was ...
3
votes
5answers
736 views

How do I get a list of packages that “Provides” something" using dpkg?

I see that dpkg has a "Provides" field for packages. $ apt-cache show vim-tiny | grep Provides Provides: editor $ How do I know which packages provide i.e. "editor"?
0
votes
2answers
292 views

How to enable sysstat from shell script in Ubuntu? [duplicate]

In Ubuntu, I can install sysstat using apt, e.g. apt-get install sysstat And then enable it via interactive prompt dpkg-reconfigure sysstat But I want automate the process using fully automated ...
1
vote
1answer
1k views

Debian removed /var/lib/dpkg/info/, is there a way to save the system?

Removed accidentally /var/lib/dpkg/info/, now I am having problems with installing/removing packages, it prompts errors, cause can not find the info about installed packages. Is there any way to ...
3
votes
1answer
366 views

Permission Mystery - apt-get and other system utilities have 000 permissions

I'm trying to track down this strange behavoir for years now. Always after installing software-updates the permissions of a lot of system-tools are broken as you can see below. I am reasonable ...
0
votes
1answer
60 views

apt-cache under Debian 6.0 displays a packet both as a dependency and conflict at the same time

Could somebody explain how can a syslinux packet both depend on and conflict with syslinux-common: martin@IBM:~$ dpkg -l syslinux syslinux-common Desired=Unknown/Install/Remove/Purge/Hold | ...
0
votes
1answer
780 views

Upgrading nginx-full 1.2.1 to nginx 1.2.6 from PPA on Ubuntu 12.10

I'm trying to upgrade nginx 1.2.1 to version 1.2.6 on ubuntu 12.10, but with no luck. I've previously installed nginx using apt-get install nginx-full because I needed the modules instead of building ...
13
votes
4answers
5k views

Given a debian source package - How do I install the build-deps?

I have a debian (well technically ubuntu) source package, i.e. the .dsc, the .tar.gz, etc., I want to build this. The dpkg-buildpackage fails, since I don't have all the build dependencies. Normally ...