Tagged Questions

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

0
votes
1answer
340 views

Add dpkg .symbols or.shlibs to package made using checkinstall

I have created a simple package using checkinstall of the Oracle Instantclient client libraries, the package installs without problem and is seen in the system. Problem is, that checkinstall doesn't ...
2
votes
2answers
733 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 => ...
0
votes
1answer
427 views

dpkg: error processing <..>

# dpkg -i /var/cache/apt/archives/pve-firmware_1.0-14_all.deb (Reading database ... 39867 files and directories currently installed.) Unpacking pve-firmware (from .../pve-firmware_1.0-14_all.deb) ... ...
8
votes
2answers
770 views

Odd behavior of apt-get with post-inst instructions, and .desktop files

We have a number of hand-built (with fpm and jenkins) .deb files in a local Apt repository (reprepro). These .debs contain a .desktop file that will be picked up by xdg-desktop in a post-inst script. ...
2
votes
1answer
3k views

Installing MySql 5.5 on Debian with the deb package

I'm setting up a debian server as a development server. apt-get gave me everything I need to install, except for mysql 5.5 as this version is still in the experimental branch. So what I tried to do ...
0
votes
1answer
426 views

UBUNTU - Broken DPKG and Index

Was doing a package update and it ended a process and hung so I rebooted the server and now it will not allow me to perform any more updates. I tried the following to no avail: sudo apt-get clean ...
0
votes
3answers
2k views

Using apt-get fails due to improperly configured dav_svn.conf file?

We're working on updating one of our internal development servers (running an older version of Ubuntu, 8 or 9 I'd guess), and are encountering errors when upgrading/installing packages using apt-get. ...
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 ...
2
votes
1answer
125 views

How to determine the date a package was installed or updated?

Is there a way to determine the date a package was installed or updated? What's the proper syntax for both rpm and dpkg?
9
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
vote
2answers
75 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
1answer
1k views

Sub-process /usr/bin/dpkg returned an error code

When trying to install phpmyadmin on my Ubuntu instance, I accidentally quit the job midway through. Now I can't continue it/remove it to start again.. sudo apt-get install phpmyadmin Reading ...
2
votes
1answer
81 views

Ubuntu compare original package and installed parameters

I'd like to compare the actual config files for, let's say, Apache and the ones provided in the original package. The purpose is to have a list of modifications since initial installation because I ...
3
votes
1answer
801 views

On a Debian system, how is the 'installed-size' field of the control file used?

One of the fields included in the control file of a .deb package is the 'Installed-Size', which should inform of the final disk occupation (in kB) of the package in question. My question is when/how ...
1
vote
1answer
204 views

Ubuntu 10.10 unattended grub2 downgrade

I've got to install a few machines with grub legacy on them due to issues with symantec ghost (ghost is a requirement that can't be dropped). i've got a script that prepares machines, but there's a ...
7
votes
2answers
408 views

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

1.) What is the most 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 ...
0
votes
3answers
2k views

Ubuntu: Cannot apt-get upgrade server, dpkg permission denied even when root?

I've ran a general audit of the system and found that a few packages were aging, such as OpenSSH and related so I went to apt-get update then upgrade. Unfortunately it seems to get the packages ...
3
votes
2answers
435 views

Scripting installation of a virtual package provider on Debian/Ubuntu

First, what's the simplest way to get a list of (real) packages that provide a particular virtual package? 'aptitude show' seems to include it in the output for a virtual package, but 'apt-cache show' ...
2
votes
2answers
612 views

dpkg-checkbuilddeps?

I'm trying to build an application from source on a Debian machine; the source code includes a 'debian' directory with all the files required to build the package (control/rules etc.). When I run ...
3
votes
1answer
929 views

How to use dpkg-divert to temporarily remove/replace symlink when package is installed?

The default nginx package creates a symlink named default in the sites-enabled dir, which points to a default config file in sites-available. I'm currently creating a package for an app that sits on ...
3
votes
2answers
1k 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 ...
0
votes
3answers
278 views

Apt getting wrong nginx source

I'm working on updating Nginx on my server from 0.7.65 (Ubuntu 10.04 repo) to 1.0.2 (from the PPA). I installed it just fine, but I would like to add/activate some modules. I found this tutorial for ...
0
votes
1answer
172 views

dpkg -get-selections command not working on Ubuntu

I am trying to use the gpkg -get-selections command on Ubuntu. I am kind of new to Ubuntu and really just following a tutorial on how to properly install Tomcat :)\ The tutorial is here: ...
2
votes
2answers
2k views

How can I configure exim4 with a smarthost via puppet?

I have tried to automate the exim setup via puppet. I followed the approach described here, whiched worked for me for a few packages, but for exim I had a problem: one selection was not correctly ...
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
2answers
1k views

dpkg error installing on Ubuntu 10.04

I'm trying to install the nginx on ppa:nginx/stable on Lucid after removing the one that comes from the default sources but I get this error: ` Setting up nginx-common (0.8.54-4ppa13~lucid) ... ...
3
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 ...
13
votes
2answers
2k views

How to find files in a Debian system not installed or created by dpkg?

I've installed some things manually in the past and would like to weed out all related files. So, I need a way to automatically find all the files (in /usr, for example) that are not included in any ...
0
votes
3answers
10k views

How can I repair apt / dpkg?

Apt keeps crashing when I try to run apt-get upgrade xxx@xxx:/root/# sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done The following ...
1
vote
2answers
2k views

Linux - How to completely clean up a software installation

I am running under Debian and I have recently upgraded to Squeeze. Since then, I am having so much problems with Webmin. So I have decided to remove it using: apt-get remove webmin And then I ...
2
votes
1answer
504 views

dpkg broken while upgrading Debian Etch to Lenny

Good day! While trying to recover a box to lenny it seems I've broken things. It upgrades libc and glib after that dpkg seems to be broken. I can run apt-get, but it gets segmentation fault from ...
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. ...
0
votes
1answer
223 views

How to remove junglediskserver

I need to remove junglediscserver from my server. I installed it using the .deb file they provide and not apt-get so I'm not sure how to remove it. I tried apt-get junglediskserver remove as root ...
2
votes
2answers
1k 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 ...
1
vote
2answers
121 views

Why is my newly created package not installing properly? Did I create a conflict?

I am on Debian Lenny and I had nginx 0.7.65 from lenny-backports installed. I needed the uwsgi module so I added the deb-src for lenny-backports and did apt-get source nginx. This grabbed the ...
4
votes
3answers
5k views

How can I properly sign a package I modified and recompiled?

I ran dpkg-buildpackage after getting a apt-get source nginx of a backports version of nginx and modifying debian/rules to include the uwsgi module. The last results of the command were: dpkg-deb: ...
20
votes
1answer
14k views

How to update a package using puppet and a .deb file

I am trying to figure out the proper way to update/upgrade a deb package using puppet from a local source deb file. My current config looks like this... class adobe-air-2-0-4 { file { ...
22
votes
5answers
22k 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 ...
3
votes
1answer
429 views

Install PostgreSQL on Ubuntu without starting it

I want to install PostgreSQL 8.4 (or any service) on Ubuntu 10.4 (or any Linux distro) without it starting up as part of the installation. Right now when I do a sudo apt-get install postgresql-8.4 ...
2
votes
1answer
138 views

How to get notified by installed/removed packages from dpkg/apt/aptitude?

I'm writing a Python system script and I need to be notified when a program gets installed/upgraded/removed. First of all, I thought to interface my application to an apt-dbus daemon. Unluckily I've ...
0
votes
1answer
87 views

Finding documentation for /etc/**/*.dpkg-*

During upgrades, files with these extensions appear in /etc and its subdirectories. I gather that *.dpkg-dist contains the file that was distributed with the currently-installed version of a package, ...
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 ...
4
votes
4answers
1k views

Generating a list of installed packages in Ubuntu

I want to backup my list of manually selected packages in Ubuntu, without listing packages installed as dependencies. For example, dpkg --get-selections returns a complete list of all installed ...
1
vote
3answers
502 views

dpkg error code 1

I am unable to add/remove any packages in ubuntu karmic I keep getting the following Errors were encountered while processing: crossplatfromui E: Sub-process /usr/bin/dpkg returned an error code ...
12
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 ...
20
votes
3answers
9k views

List of files installed from apt package

How do I get a list of files that were or will-be installed when I apt-get a package? Conversely, can I find what package(s) caused a particular file to be installed?
12
votes
3answers
5k views

How do I show the actions that installing a .deb package will take?

I would like to be able to view the scripts/triggers associated with a package due for upgrade so that I can tell, for example, whether it will result in the web server being restarted. I can't find ...
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 ...
6
votes
8answers
757 views

gem vs apt-get in a server environment

Where should I draw the line between using apt-get and gem when setting up a server to host ruby on rails with passenger + apache? Does it even matter? It feels wrong to mix package management ...
1
vote
3answers
1k views

Is there an Ubuntu server package for PHP 5.3

It's been some time now since the release of PHP 5.3. I can't wait to work with it, but the Ubuntu developers have decided not to include it in the APT repository until 10.04. I don't want to wait ...