1
vote
1answer
29 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 ...
0
votes
1answer
64 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 ...
2
votes
0answers
137 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
0answers
43 views

install build dependencies of a .deb package

I have built a .deb package from (our) sources and the package is not in the repo (yet): % dpkg-checkbuilddeps dpkg-checkbuilddeps: Unmet build dependencies: devscripts (>= 2.12) fakeroot (>= ...
0
votes
3answers
121 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
1k 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) ...
0
votes
1answer
63 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 ...
1
vote
2answers
89 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
2answers
191 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
730 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 ...
0
votes
1answer
55 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 | ...
2
votes
1answer
86 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
2answers
68 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?
6
votes
3answers
7k 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 ...
1
vote
1answer
167 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, ...
3
votes
1answer
196 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 ...
7
votes
2answers
544 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, ...
-1
votes
1answer
972 views

Debian: How to get rid of openoffice/libreoffice?

After upgrade from Squeeze to Wheezy (testing), I end up with few errors when running apt-get upgrade further. Most of the errors concern openoffice.org and libreoffice, both of which I do not need. ...
-1
votes
0answers
1k views

Regarding Reinstalling PostgreSQL [closed]

I was using PostgreSQL 8.4. I tried removing it through Synaptic Manager and then I tried to install 9.1, but I still version 8.4. I deleted all the files associated with postgresql. Now I am unable ...
2
votes
2answers
53 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 ...
0
votes
1answer
492 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 ...
0
votes
1answer
298 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 ...
0
votes
1answer
364 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) ... ...
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 ...
9
votes
5answers
1k 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 ...
6
votes
3answers
4k 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?
2
votes
1answer
717 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 ...
7
votes
2answers
360 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 ...
3
votes
2answers
388 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
545 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
743 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 ...
2
votes
3answers
2k 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 ...
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 ...
1
vote
2answers
1k 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
479 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
2answers
117 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 ...
19
votes
1answer
12k 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 { ...
3
votes
1answer
427 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 ...
0
votes
1answer
86 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, ...
3
votes
2answers
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 ...
9
votes
4answers
4k 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 ...
19
votes
3answers
7k 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?
21
votes
4answers
12k 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 ...
1
vote
3answers
1k views

Is it possible to stop dpkg-reconfigure restarting services

I'm building an install key for a Debian based system. The install key basically copies a disk image onto the system and then in a chroot installs a number of packages that are copied onto the install ...
2
votes
3answers
5k views

dpkg can't install dpkg update - how do I update anything?

Short of rebuilding the whole server from the ground up (which I'm working on anyway), any ideas how to fix this problem on an old debian etch box? Its annoying to not be able to apt-get things... # ...
5
votes
2answers
6k views

How to completely remove a package in Debian?

I tried to use this: aptitude remove denyhosts And it seemed successfully but after a reboot after I use: ps aux | grep "denyhosts" I see denyhosts is still loaded after startup. So what am I ...