[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt won't remove/ purge installed package...



On 10/07/2022 9:50 pm, Morgan Read wrote:
I attempted to install firewalld and firewall-config with ufw installed - perhaps not the wisest of moves - but, `apt install firewalld firewall-config` ran anyway, and then hung, together with the whole system and nil ssh access.

I'm now thrashing about in a rescue image with the system mounted on /mnt :
```
[RESCUE] root@vps-2493e43e:~ $ apt -o Dir=/mnt list firewalld firewall-config
Listing... Done
firewall-config/stable,now 0.9.3-2 all [installed]
firewalld/stable,now 0.9.3-2 all [installed]
[RESCUE] root@vps-2493e43e:~ $ apt -o Dir=/mnt purge firewalld firewall-config
...

dpkg: warning: ignoring request to remove firewall-config which isn't installed
dpkg: warning: ignoring request to remove firewalld which isn't installed
...
Attempts at correction have included:
rm /mnt/var/cache/apt/*pkgcache.bin
apt-cache -o Dir=/mnt gencaches
dpkg --root=/mnt --update-avail
dpkg --root=/mnt --configure -a


After a number of iterations of these instructions:
https://www.maketecheasier.com/fix-broken-packages-ubuntu/
firewalld and its dependencies seem to be where they should be:
```
[RESCUE] root@vps-2493e43e:~ $ apt -o Dir=/mnt list firewalld firewall-config gir1.2-atk-1.0 gir1.2-gdkpixbuf-2.0 gir1.2-gtk-3.0 gir1.2-harfbuzz-0.0 gir1.2-nm-1.0 gir1.2-pango-1.0 ipset libipset13 libnftables1 libpangoxft-1.0-0 libxft2 python3-decorator python3-firewall python3-nftables python3-selinux python3-slip python3-slip-dbus
Listing... Done
firewall-config/stable 0.9.3-2 all
firewalld/stable 0.9.3-2 all
gir1.2-atk-1.0/stable 2.36.0-2 amd64
gir1.2-gdkpixbuf-2.0/stable 2.42.2+dfsg-1 amd64
gir1.2-gtk-3.0/stable 3.24.24-4+deb11u2 amd64
gir1.2-harfbuzz-0.0/stable 2.7.4-1 amd64
gir1.2-nm-1.0/stable 1.30.6-1+deb11u1 amd64
gir1.2-pango-1.0/stable 1.46.2-3 amd64
ipset/stable 7.10-1 amd64
libipset13/stable 7.10-1 amd64
libnftables1/stable 0.9.8-3.1 amd64
libpangoxft-1.0-0/stable 1.46.2-3 amd64
libxft2/stable 2.3.2-2 amd64
python3-decorator/stable 4.4.2-2 all
python3-firewall/stable 0.9.3-2 all
python3-nftables/stable 0.9.8-3.1 amd64
python3-selinux/stable 3.1-3 amd64
python3-slip-dbus/stable 0.6.5-2 all
python3-slip/stable 0.6.5-2 all
[RESCUE] root@vps-2493e43e:~ $
```
Thx

--
Morgan Read
Grande Bretagne
Em: <email:mstuffATreadDOTorgDOTnz>

Confused about DRM?
Get all the info you need at:
<http://drm.info/>


Reply to: