Weblog entry #5 for Grimnar

when apt-get fails.
Posted by Grimnar on Tue 20 Jun 2006 at 13:38
Tags: none.
For about 2 weeks ago I tried to remove some unused packages using apt-get remove -purge package.


And I think I was trying to remove clamav-freshclam when the process just stopped. And now I cant install or remove anything because of that process and I have no idea on how to fix this. Sure, I have tried the apt-get -f install and such, but no luck.

So, has anyone any good tips on how to fix this?


gwdebian:/etc/squid# apt-get remove squid
Reading package lists... Done
Building dependency tree... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
clamav-freshclam: Depends: clamav-base (= 0.88.1-1) but 0.88.2-1 is to be installed
sqcwa: Depends: squid but it is not going to be installed
squid-prefetch: Depends: squid but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
gwdebian:/etc/squid# apt-get -f install
Reading package lists... Done
Building dependency tree... Done
Correcting dependencies...Done
The following extra packages will be installed:
clamav-freshclam
Suggested packages:
clamav-docs
The following packages will be upgraded:
clamav-freshclam
1 upgraded, 0 newly installed, 0 to remove and 48 not upgraded.
111 not fully installed or removed.
Need to get 0B/4297kB of archives.
After unpacking 664kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
clamav-freshclam
Authentication warning overridden.
Preconfiguring packages ...
(Reading database ... 36895 files and directories currently installed.)
Preparing to replace clamav-freshclam 0.88.1-1 (using .../clamav-freshclam_0.88.2-1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/clamav-freshclam_0.88.2-1_i386.deb (--unpack):
dpkg: warning - old pre-removal script killed by signal (Interrupt)

Errors were encountered while processing:
/var/cache/apt/archives/clamav-freshclam_0.88.2-1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
gwdebian:/etc/squid#

 

Comments on this Entry

Posted by ybiC (68.96.xx.xx) on Tue 20 Jun 2006 at 14:53
[ Send Message ]
No specific help to offer, but...

On the extremely rare occasion when apt(itude) has given me grief, dropping down to dpkg will generally get me past the problem. Good luck. HTH.

[ Parent | Reply to this comment ]

Posted by Anonymous (193.136.xx.xx) on Tue 20 Jun 2006 at 15:04
If you really want to force the installation for that package type the following:

dpkg -i --force-overwrite /var/cache/apt/archives/clamav-freshclam_0.88.2-1_i386.deb

[ Parent | Reply to this comment ]

Posted by Grimnar (85.221.xx.xx) on Tue 20 Jun 2006 at 15:37
[ Send Message | View Weblogs ]
Well, I sorta posted this entry in a light panic. I had this problem for over 2 weeks and all I had to do was "Apt-get upgrade" and everything worked out great. So this entry is fixed and everything is fine.

BUT, there is always this but.

On my setup right now I use squid on my gateway. So all my local users somehow has to connect via squid to do stuff on the net. Squid has been working fine when my isp was kinda screwed up for a while and squid saved the day many times.
But now my since my ISP is 100% again i really dont need squid and I tried to uninstall it, that worked great to. But now my NAT do not work at all?

Tried to reboot and such, but no luck. The only computer to have access to the internet is my gateway and that is not good enough. So I had to reinstall squid again to write this.

How do I remove squid and make my NAT work as normal again? (It's quite a normal NAT solution).


-Andreas.

[ Parent | Reply to this comment ]

Posted by Steve (62.30.xx.xx) on Sun 25 Jun 2006 at 12:59
[ Send Message | View Steve's Scratchpad | View Weblogs ]

NAT and Squid are unrelated.

What I'd suggest is that you've probably implemented some firewall rules somewhere to get transparent proxying - so of course once you remove the Squid package your outgoing HTTP requests fail.

Check your firewall settings by running:

root@desktop:~# iptables --list

If you have anything in there referring to HTTP then you've found the problem and you just need to remove the rules from wherever they were added.

Steve

[ Parent | Reply to this comment ]

Posted by Anonymous (84.41.xx.xx) on Fri 23 Jun 2006 at 20:43
Try locating the crucial package that's broken your apt. In your case it would be something like clamav-base_0.88.1-1_all.deb, or clamav-base_0.88.1-1_i386.deb or something similar. You may also find it in some repositories. In my case it fixed the problem of a broken apt a few times. Then reinstall the package with dpkg -i . I hope that fixes your broken apt.

[ Parent | Reply to this comment ]

Posted by Grimnar (62.200.xx.xx) on Sat 24 Jun 2006 at 10:53
[ Send Message | View Weblogs ]
Like stated in my above comment, the problem is solved:)
But if if you any tips in "new" problem I would be very grateful.

[ Parent | Reply to this comment ]

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search