0
votes
0answers
7 views

How do I correctly use dpkg-divert in preinst and postrm scripts? [on hold]

I'm building a package which overrides an existing file provided by another package, so I wanted to use dpkg-divert to add a diversion. I tried adding the diversion in the preinst script, and removing ...
-1
votes
2answers
448 views

dpkg: dependency problems prevent configuration of initramfs-tools

I started an upgrade of my Kubuntu 12.04 system with this command, as usual: sudo apt-get --show-upgraded dist-upgrade I came back later and it had failed: Preconfiguring packages ... (Reading ...
1
vote
0answers
103 views

Debian 7.3 can't remove postgresql

Solved: I removed /var/lib/dpkg/info/postgresql-8.4 Now everything is fine. sudo rm -r /var/lib/dpkg/info/postgresq* I got this problem: alex@VRIL ~ % sudo apt-get install python3 Reading ...
1
vote
2answers
244 views

When removing a Debian package, how can I also remove Python *.pyc files?

I have a Debian package say XYZ.deb which copies some file on installation. As per Debian package policy on package uninstallation only those files will be removed which were copied during ...
16
votes
6answers
912 views

What's .deb and .rpm and how is it different from .msi?

What are these file formats and how do they differ from the .msi format in Windows? Also what are the pros and cons of these package management schemes?
2
votes
2answers
322 views

List of installed programs without running a program in the system

My Linux Mint 15 broke and there seems to be no way to fix it. I cannot boot it so I haven't got access to the terminal. What I'm going to do is make a backup of /home with a flash disk running Mint ...
1
vote
1answer
87 views

Gdm uninstallation fails (“pre-removal script returned error”)

I installed gdm on my vps and now I want to remove it but get this error: root@server2:/etc/init.d# apt-get remove gdm3 Reading package lists... Done Building dependency tree Reading state ...
3
votes
2answers
1k views

What packages are installed by default in Debian? Is there a term for that set? Why some of those packages are `automatically installed` and some not?

It's a very simple question, but I wonder, is there a term to refer to the subset of packages that is automatically installed by Debian distribution? I though that it had something to do with ...
2
votes
1answer
195 views

Replacing Multiple Debian Packages from Compiled Source

I've had to download and install a version of a library from its source code repository. The problem is is that other packages from the Kubuntu package manager require this library to be installed. ...
2
votes
4answers
130 views

Get package sources and repository link

Is there any way (dpkg, apt?) to get a package's sources and URL to repository, if available, in Debian ?
2
votes
2answers
639 views

Can I determine what changed in an upgraded package using apt or dpkg on Debian 6?

I just did an apt-get upgrade on my Debian 6 development server and noticed that a certain package named tinyproxy was upgraded. I have a particular interest in seeing precisely what changed in that ...
0
votes
2answers
137 views

Determining Dependencies and Installing from Directory

I have a directory with all Dependencies in .deb format. But there are lots of them. I need only those that i need for gimp. biggenius@hacbook:~/Desktop/rocks/packages$ dpkg-deb -I ...
2
votes
1answer
140 views

Where is tcl-doc man page stored?

I installed tcl-doc. Prior to installation "man tcl" gave nothing. Now it gives a page. When I do "dpkg -L tcl-doc" I get /. /usr /usr/share /usr/share/doc /usr/share/doc/tcl-doc ...
4
votes
2answers
2k views

I cannot install new packages: “Could not get lock /var/lib/dpkg/lock”

I am new to Linux (installed Ubuntu for the first time yesterday), and have never dealt with any unix-based OS. I started using Linux for the sole purpose of collaborating code with my partners via ...
4
votes
1answer
72 views

Sharing code between dpkg scripts

What is the standard way to share code between the dpkg scripts (preinst, postinst, prerm, postrm)? I can see how to share code between just postinst and prerm (by installing it as part of the ...
9
votes
4answers
749 views

How can I reliably “hold” a package in Debian?

I have a package in Debian that has been manually patched (not ideal, I know) that I must hold at its current version so upgrades don't overwrite the patched changes (I will manually inspect and apply ...
5
votes
1answer
388 views

Conflict? dpkg, apt, apt-get, aptitude, and synaptic

So, I ssh into a (very) remote Ubuntu 10.4 server to do some admin and web dev+design. And I was looking through the various package manager options. There's a lot. The big ones are dpkg, apt, ...
7
votes
1answer
1k views

How to make dpkg faster?

Package (un)installation on a Debian system is horribly slow, partly because it works with a whole bunch of (small) files. Short of getting a faster storage, how do I speed it up? I'm thinking maybe ...
4
votes
3answers
720 views

How to list currently not installed packages?

I'd like to output a list of all, currently not installed, packages (they are visible in Synaptic for example) using only shell commands. How do I do this?