Ubuntu :: Apt-get (use Aptitude Purge To Remove All Associated Files Of A Package)?
May 2, 2010
Did a fresh install of 10.04 Desktop 86_64 this weekend. One of the first issues I noticed right away was that apt was not function properly. Say for example you install the packages tor and vidalia (assume I'm running everything from root). #apt-get install tor vidalia This command will check and install necessary dependencies, for example 'privoxy'. Now if you decide that you don't want to use privoxy and instead use polipo, you would probably feel inclined to remove privoxy. Well I found that apt-get autoremove, apt-get remove, apt-get purge WILL NOT remove all the files/directories associated with the package. You'll find that after running each of these commands, there will still be directories, scripts, etc. in /etc/init, /etc, and /etc/rc*.d. The only solution I've found to completely removing a package is aptitude purge [package].
I faced on these days a very nasty problem, during the upgrading of my system... something bad happened and I can not remove, purge, install, reinstall the package flashplugin-nonfree no matter what tries I did till now.
root@intra-micro:/home/mikek# apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done
I faced on these days a very nasty problem, during the upgrading of my system... something bad happened and I can not remove, purge, install, reinstall the package flashplugin-nonfree no matter what tries I did till now. To see my tries please read bellow.Do any of you have any advanced advice how can solve this BIG problem that occurs to me?
i installed a package with dpkg --install and told it to ignore an unmet dependency because the package it depended on could not be installed with apt-get (it was a perl module) and i have manually installed the perl module, it works... however every time i do "apt-get upgrade" or anything like that it wants to remove the package i forced to install because it still thinks there are unmet dependencies, is there a way to either tell it to ignore that the package has unmet dependencies (i mean ignore that always, not something i will have to add every time i use aptitude) or is there a way to convince it that the package it thinks is missing (the unmet dependency) is actually met.
I'm trying to replace the ubuntu version of openoffice with the official release. During this procedure I ran the command:sudo aptitude remove openoffice.org-*and get the error: Couldn't find any package whose name or description matched "openoffice.org-re_1.6.1-18_amd64.deb"I went in to synaptic and removed all the openoffice packages through the GUI (none of which matched that name) as well as the UNO and URE packages. Even after uninstalling all the packages, if I run the aptitude command again get the same error.What is going on here? Does it indicate that my package database has been corrupted? Can I rebuild the database? Should I just ignore this error
I went to remove FreeNX from my Ubuntu Lucid machine so I opened the terminal and typed: "sudo aptitude purge freenx" The command worked but when I used the command "locate nx" I got a list of FreeNX associated files (as well as nxserver files). Is it possible to completely remove a program from my system? I thought "sudo aptitude purge" would do it but apparently not. My only concern is that in the future if I decide to install something related to this program it will interfere and cause problems.
How to remove package with his configuration files. rpm -e doesnt delete any configuration files, is there any similar command to debians apt-get --purge ?
I am trying to upgrade an amd64 lenny system to squeeze.I've got a 2.6.32 kernel running, done aptitude update and aptitude install aptitude.When I try "aptitude safe-upgrade", it sits forever resolving dependencies.it seems to search with the resolver counting up more and more open/conflict/ whatever.I stopped it once it got over 100,000)Is it possible to get aptitude to do a safe-upgrade, perhaps using a command line option?
When I remove an application from YaST does it remove its config files too? If it does not, is there any command by which I can remove the config files for all the uninstalled applications?
I'm trying to install Apache2+PHP5+MySQL-cluster on a Ubuntu 10.10 server. I've done many installs like this but with just plain MySQL so this is my first time using mysql-cluster. After getting mysql-cluster working I went back and installed the packages for apache and php5, but somehow I forgot to install the php5-mysql package (not sure how I missed that!) so when I got back to install it it tells me it wants to uninstall mysql-cluster. The "error" I see is:
mysql-cluster-client will be automatically removed because of dependency errors:
* mysql-cluster-client depends on mysql-cluster-client-5.1 [universe]
I put a lot of time in to get mysql-cluster working and don't want to lose it. How do I tell aptitude to just leave it alone and install the php5-mysql package?
writing a script that would keep the last three versions of tcpdump files.Due to the version of tcpdump I must use -C and cannot use -G. Using -C generates a new file after X MB's have been written and adds a .x after each new one. The problem is that these files are filling up the disk too quickly. The main part of the script will kill tcpdump when a certain condition is met but in the meantime I need to purge and only keep say the three last iterations of the dump file. So for example, there is dump.pcap.1, dump.pcap.2, dump.pcap.3, dump.pcap.4 and dump.pcap.5. I'd like the script to look at the datestamps and delete dump.pcap.1 and dump.pcap2 since the other three are the three newest files. comparing files based on dump.pcap.*, check the dates and only keep the three 'youngest' files?
I was wondering if anyone knew how to get long package descriptions which searching for packages with aptitude.my search results have package descriptions that are truncated even if the terminal is expanded to allow longer one-line package descriptions.
I stopped using ubuntu for a while at 9.04 (went to mint and came back) because it was not installing properly. I thought it had aptitude in it then, but I did not have it after installing 10.10 (installed it twice it is not on either). I am just wondering why, even debian includes aptitude.
Using Xubuntu,I have upgraded from Karmic to Lucid. Post upgrading when attempting to install a new package with aptitude, it is reported that cups is "BROKEN" and a host of packages are marked for removal.
Im having an issue with sudo aptitude install. If i attempt to install anything, it says it will remove all of the packages below. On the other hand,if i use the Synaptic Package Manager, it doesn't remove any packages what is going on here? Any ideas? I have added some karmic repositories, but i dont think that should do anything?
sudo aptitude install libossp-uuid-dev Reading package lists... Done Building dependency tree Reading state information... Done
Seems like always if I add a package with apt-get, next time I use aptitude to update packages on a server, the packages I added with apt-get are automatically marked for removal.
I must, in aptitude, "forget new packages" and "cancel pending actions" then update the package list, remark packages needing updating, THEN aptitude has forgotten it wanted to remove packages.
Why can aptitude and apt-get NOT get along!?
Currently I have 10.04 on all servers, thus where it still is a problem.
I've build a package using dpkg-buildpackage but whenever I run aptitude safe-upgrade it upgrades the package I compiled as well even though it's the same version is there a way to tell it to leave it alone?
The reason for installing the Lucid version is because Karmic version is 3 years old and crashes on my machine. The Lucid Amsynth package depends on newer versions of libatk1 and libjack0 than Karmic has, but I thought I would take a risk, and turns out Amsynth runs fine. However aptitude tries to uninstall Amsynth every time I do an upgrade. I think I've managed to put it on hold but now aptitude aborts. How can I tell aptitude to ignore the broken package and carry on.
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
I had debian squeeze on my personal computer at home, 3 days ago i've upgraded it to the debian testing. last day i've installed virtualbox which i've gotten from virtualbox.org . today non of package managers work. an example of installing sumthin new with apt:
I changed to testing repository in my Debian 6.0 and I used command "apt-get update". Now, everytime I want to do something with apt-get or aptitude, I receive this:
With apt-get: Reading package lists... Error! E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/apt/lists/ftp.cz.debian.org_debian_dists_squeeze_main_i18n_Translation-cs E: The package lists or status file could not be parsed or opened.
or with aptitude: [ ERR] Reading package lists E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/apt/lists/ftp.cz.debian.org_debian_dists_squeeze_main_i18n_Translation-cs E: The package lists or status file could not be parsed or opened. E: Couldn't rebuild package cache E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/apt/lists/ftp.cz.debian.org_debian_dists_squeeze_main_i18n_Translation-cs E: The package lists or status file could not be parsed or opened.....
I regularly compile something from a source repository that has a certain set of dependencies. Some of these dependencies are dev libraries that are provided via other libraries but are not considered installed packages in themselves, so I cannot test for some dependencies directly.
I am currently parsing an "apt-cache showpkg" output to check for some of these provided dependencies. This is somewhat kludge-y and messy, and I was looking for a more elegant solution.
Is there an APTITUDE option that will directly test for the presence of a library that is part of some other package without having to know the name of the package that the library is part of?
Is it possible to do an aptitude remove for all packages installed in, say, the past hour? I'm looking for an easy way to keep track of lots of installed packages without having to look through the logs and write them all down.
I have a few Debian Squeeze installations which I perform upgrades on average on weekly basis. Last week one of my laptops, gave me this while all others did not, The following packages have unmet dependencies: gnome-desktop-environment: Depends: gnome-core (= 1:2.30+1) but 1:2.30+4 is to be installed. gnome: Depends: gnome-desktop-environment (= 1:2.30+4) but 1:2.30+1 is installed and it is kept back. The following actions will resolve these dependencies: Remove the following packages: 1) gnome Keep the following packages at their current version 2)gnome-accessibility [1:2.30+1 (now) 3) gnome-core [1:2.30+1 (now) Accept this solution? [Y/n/q/?] Has anyone encountered this? Is it safe to accept the proposal?