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.

175 questions
0
votes
1 answer

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 new config file have changes (new config options). I…
i-CONICA
  • 648
  • 1
  • 9
  • 22
0
votes
1 answer

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 can still list the files that are in the pkg with…
Dan Garthwaite
  • 2,962
  • 1
  • 19
  • 31
0
votes
1 answer

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 type) (can not lock /var/lib/dpkg/status) Which…
Sylario
  • 99
  • 1
  • 11
0
votes
3 answers

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 is no room to expand the partition. When trying to…
Carlos
  • 103
  • 3
0
votes
1 answer

Force apt-get not to upgrade a custom package dkpg

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 version of redis-server How can tell the package…
Derek Organ
  • 591
  • 1
  • 10
  • 20
0
votes
2 answers

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 when i tried to install rsyslog. # dpkg --configure…
mariotanenbaum
  • 382
  • 5
  • 14
0
votes
1 answer

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 debian-binary files. This hand-rolled .deb works fine for…
0
votes
2 answers

How to enable sysstat from shell script in Ubuntu?

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 shell script, what command I can use?
Howard
  • 2,135
  • 13
  • 48
  • 72
0
votes
1 answer

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 |…
Martin
  • 352
  • 3
  • 12
  • 29
0
votes
2 answers

Filesystem owner changed by mistake

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
  • 250
  • 1
  • 6
0
votes
1 answer

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/ squeeze-backports/main amd64 Packages *** 2:1.2.6-1…
Natim
  • 626
  • 1
  • 6
  • 16
0
votes
1 answer

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 php5-mysqlnd. It caused some errors with dpkg, so I…
Ian Hunter
  • 217
  • 3
  • 11
0
votes
1 answer

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 corrupted. My question is, should I use dpkg's…
sirlark
  • 211
  • 2
  • 12
0
votes
1 answer

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) ... dpkg: error processing…
artem
  • 596
  • 2
  • 10
  • 28
0
votes
1 answer

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 sudo apt-get install -f (I get a message: E: DPKG…
Ubuntu User
  • 71
  • 2
  • 3
  • 11