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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
85 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 | Status=...
Martin's user avatar
  • 372
8 votes
2 answers
1k 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 ...
Neoecos's user avatar
  • 183
1 vote
1 answer
2k 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 ...
pocesar's user avatar
  • 123
12 votes
2 answers
17k 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.
cat pants's user avatar
  • 2,283
0 votes
2 answers
141 views

Filesystem owner changed by mistake [closed]

I ran this command on my ubuntu server 12.04 by mistake: chown someuser / -R On RHEL it would be fixed by this command: rpm --setugids -a Is there anyway to fix it in ubuntu server?
Ehsan's user avatar
  • 250
4 votes
1 answer
536 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 ...
kei1aeh5quahQu4U's user avatar
0 votes
1 answer
176 views

Install from backport with apt fail

So little question, I've got this: redis-server: Installed: 2:1.2.6-1 Candidate: 2:1.2.6-1 Version table: 2:2.4.15-1~bpo60+2 0 100 http://backports.debian.org/debian-backports/ ...
Natim's user avatar
  • 636
26 votes
12 answers
79k 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 ...
Mark's user avatar
  • 367
3 votes
1 answer
1k views

Overriding dpkg admindir from apt-get options (debian/ubuntu linux)

As part of an OS deployment, I need to maintain sets of debian packages independently of the host operating system. It's pretty straightforward to override the Apt settings for the cache and lists, ...
Alex G's user avatar
  • 386
4 votes
3 answers
2k 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 ...
ryanm's user avatar
  • 141
4 votes
2 answers
2k 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 ...
Mojo's user avatar
  • 965
17 votes
4 answers
6k 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::...
user avatar
0 votes
1 answer
594 views

Can't remove partially-installed extension

I'm on an Ubuntu 11.10 server with PHP 5.4 installed from a PPA. I had the MySQL library installed (php5-mysql) but wanted to try out the native driver (php5-mysqlnd), so I ran sudo apt-get install ...
Ian Hunter's user avatar
2 votes
2 answers
66 views

generate an automated reinstallation file

Running Debian Lenny distros : I'm still wondering how to iso a complete distro setup "easily", but for the time being, I'd like to able to run easily and quickly a reinstall, so I added such a line ...
hornetbzz's user avatar
  • 170
2 votes
1 answer
82 views

persist debian package on Ubuntu

I have an Ubuntu server that I recompiled libcurl for sftp support. The problem is when the server is rebooted or updated I have to reinstall the curl package. I am not clear how to persist this ...
jmm's user avatar
  • 23
1 vote
1 answer
1k views

E: Sub-process /usr/bin/dpkg returned an error code (1)

I'm getting an error while trying to update the linux-image-2.6.32-5-amd64 package on Debian 6, x64. Setting up linux-image-2.6.32-5-amd64 (2.6.32-41squeeze2) ... Running depmod. Running update-...
Alex's user avatar
  • 53
4 votes
1 answer
130 views

How can I install a third-party .deb package in an arbitrary base dir?

I have a .deb which politely installs itself in /opt. For my purposes I would prefer it acted like a first-class citizen and installed itself in the regular filesystem locations. Is there a way to do ...
John Bachir's user avatar
  • 2,364
3 votes
2 answers
1k views

How to monitor package versions across multiple (Linux) servers

We use Puppet for installing the base level OS and packages, but our own application packages are deployed manually by individual developers. I'm looking for a web dashboard to view/monitor the ...
mrisher's user avatar
  • 401
0 votes
1 answer
295 views

Should i disable triggers when force reinstalling packages in ubuntu (to repair corrupted exectables)

I want to reinstall some selected packages on my ubuntu server (lucid). I'm planning on running cat packages.txt | xargs apt-get --reinstall install to restore some executables I think may have become ...
sirlark's user avatar
  • 221
14 votes
5 answers
9k 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"?
Janus Troelsen's user avatar
1 vote
1 answer
656 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 ...
Hubert Kario's user avatar
  • 6,401
2 votes
2 answers
2k 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 => ...
bayou's user avatar
  • 33
0 votes
1 answer
1k 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) ... ...
artem's user avatar
  • 596
8 votes
2 answers
1k 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. ...
Tom O'Connor's user avatar
  • 27.6k
2 votes
1 answer
4k 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 ...
Shtong's user avatar
  • 145
0 votes
1 answer
730 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 ...
Ubuntu User's user avatar
0 votes
3 answers
3k 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. ...
Craig Otis's user avatar
14 votes
5 answers
8k 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 ...
krtek's user avatar
  • 603
2 votes
1 answer
138 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?
user784637's user avatar
  • 1,592
46 votes
5 answers
48k 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?
Sandra's user avatar
  • 10.5k
1 vote
2 answers
160 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?
vfclists's user avatar
  • 1,652
0 votes
1 answer
3k 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 ...
williamsowen's user avatar
  • 1,177
2 votes
1 answer
131 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 ...
Olivier's user avatar
  • 21
5 votes
1 answer
6k 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 ...
bitwelder's user avatar
  • 216
1 vote
1 answer
232 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 ...
Baczek's user avatar
  • 195
10 votes
3 answers
3k 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 (...
Markus's user avatar
  • 877
0 votes
3 answers
6k 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 ...
Alexander's user avatar
  • 207
3 votes
2 answers
2k 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' ...
Trevor Robinson's user avatar
2 votes
2 answers
2k 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 ...
mikewaters's user avatar
  • 1,215
6 votes
1 answer
3k 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 ...
Suan's user avatar
  • 163
6 votes
2 answers
4k 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 ...
The Shurrican's user avatar
0 votes
3 answers
841 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 ...
Shauna's user avatar
  • 178
0 votes
1 answer
1k 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: http://www....
Genadinik's user avatar
  • 1,143
2 votes
2 answers
3k 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 ...
Kariem's user avatar
  • 561
7 votes
3 answers
14k 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 ...
Thiago Padilha's user avatar
3 votes
2 answers
4k 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) ... dpkg: ...
MrD's user avatar
  • 235
7 votes
6 answers
6k 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 ...
JD Long's user avatar
  • 445
22 votes
2 answers
5k 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 ...
Karol's user avatar
  • 343
0 votes
3 answers
15k 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 ...
glisignoli's user avatar
1 vote
2 answers
11k 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 ...
Jonathan Rioux's user avatar