User Scripts & Dragons - No internet connectivity after removing kde-trinity [Solved]

ShakaZ - 15.04.2011, 11:17
Post subject: No internet connectivity after removing kde-trinity [Solved]
Though installing Trinity didn't reveal any conflicts with Kde4 as there were no common packages with the ones already on the system, removing it has crippled the internet. And ceni can't get an address from the dhcp server anymore.

Start-Date: 2011-04-15  12:39:59
Commandline: apt-get remove arts-trinity avahi-daemon bind9-host desktop-base-trinity enscript fam hal-trinity icc-profiles juk-trinity kamera-trinity kappfinder-trinity kate-plugins-trinity kate-trinity kbstate-trinity kcharselect-trinity kcontrol-trinity kcron-trinity kdat-trinity kde-core-trinity kdeadmin-kfile-plugins-trinity kdeadmin-trinity kdeadmin-trinity-doc-html kdeartwork-emoticons-trinity kdeartwork-misc-trinity kdeartwork-style-trinity kdeartwork-theme-icon-trinity kdeartwork-theme-window-trinity kdeartwork-trinity kdebase-data-trinity kdebase-kio-plugins-trinity kdebase-runtime-data-common-trinity kdebase-trinity kdebase-trinity-bin kdebase-trinity-doc-html kdelibs-data-trinity kdelibs-trinity kdelibs4c2a-trinity kdemultimedia-kio-plugins-trinity kdepasswd-trinity kdeprint-trinity kdesktop-trinity kdewallpapers-trinity kdm-trinity kfind-trinity khelpcenter-trinity kicker-applets-trinity kicker-trinity klipper-trinity kmenuedit-trinity knetworkconf-trinity konq-plugins-trinity konqueror-nsplugins-trinity konqueror-trinity konsole-trinity kpackage-trinity kpager-trinity kpersonalizer-trinity kregexpeditor-trinity kscreensaver-trinity ksmserver-trinity ksplash-trinity ksysguard-trinity ksysguardd-trinity ksysv-trinity ktip-trinity kuser-trinity kwin-trinity launchpad-integration libakode2 libarts1c2a-trinity libartsc0-trinity libavahi-compat-libdnssd1 libavahi-core7 libbind9-60 libdbus-qt-1-1c2 libdns69 libisc62 libisccc60 libisccfg62 libjpeg-progs libjpeg8 libkcddb1-trinity libkonq4-trinity liblwres60 libnss-mdns librsvg2-common libsensors3 libtidy-0.99-0 libtqtinterface libxxf86misc1 lm-sensors pmount portmap poster psutils sudo-trinity tidy unison x11-apps xbase-clients xcalib xdg-user-dirs
Remove: x11-apps:amd64 (7.6+4), kbstate-trinity:amd64 (3.5.12-0debian7+r1158414), kcron-trinity:amd64 (3.5.12-0debian7+r1174283), kwin-trinity:amd64 (3.5.12-0debian7+r1181781), ksmserver-trinity:amd64 (3.5.12-0debian7+r1181781), bind9-host:amd64 (9.7.3.dfsg-1), libsensors3:amd64 (2.10.8-2), konqueror-trinity:amd64 (3.5.12-0debian7+r1181781), kate-plugins-trinity:amd64 (3.5.12-0debian7+r1166484), ksysguard-trinity:amd64 (3.5.12-0debian7+r1181781), kde-core-trinity:amd64 (54), xbase-clients:amd64 (7.6+6), libjpeg8:amd64 (8c-1), kdeartwork-style-trinity:amd64 (3.5.12-0debian7+r1177246), kate-trinity:amd64 (3.5.12-0debian7+r1181781), unison:amd64 (2.32.52-3), kdebase-data-trinity:amd64 (3.5.12-0debian7+r1181781), libjpeg-progs:amd64 (8c-1), konsole-trinity:amd64 (3.5.12-0debian7+r1181781), libdns69:amd64 (9.7.3.dfsg-1), ktip-trinity:amd64 (3.5.12-0debian7+r1181781), libkonq4-trinity:amd64 (3.5.12-0debian7+r1181781), ksysv-trinity:amd64 (3.5.12-0debian7+r1174283), xdg-user-dirs:amd64 (0.13-2), kdm-trinity:amd64 (3.5.12-0debian7+r1181781), kdat-trinity:amd64 (3.5.12-0debian7+r1174283), kdeadmin-trinity:amd64 (3.5.12-0debian7+r1174283), kdeartwork-theme-icon-trinity:amd64 (3.5.12-0debian7+r1177246), kicker-applets-trinity:amd64 (3.5.12-0debian7+r1166484), desktop-base-trinity:amd64 (5.0.3-5), libisccc60:amd64 (9.7.3.dfsg-1), kdelibs-trinity:amd64 (3.5.12-0debian7+r1181792), kdeartwork-trinity:amd64 (3.5.12-0debian7+r1177246), kdesudo:amd64 (, kpersonalizer-trinity:amd64 (3.5.12-0debian7+r1181781), libarts1c2a-trinity:amd64 (3.5.12-0debian7+r1167610+rebuild1), libnss-mdns:amd64 (0.10-3.1), librsvg2-common:amd64 (2.32.1-1), libavahi-core7:amd64 (0.6.30-2), ksysguardd-trinity:amd64 (3.5.12-0debian7+r1181781), kdebase-trinity:amd64 (3.5.12-0debian7+r1181781), ksplash-trinity:amd64 (3.5.12-0debian7+r1181781), tidy:amd64 (20091223cvs-1), lib32nss-mdns:amd64 (0.10-3.1), libakode2:amd64 (2.0.2-3debian0), launchpad-integration:amd64 (3.5.12-0ubuntu0-dummy2), libkcddb1-trinity:amd64 (3.5.12-0debian7+r1175295), fam:amd64 (2.7.0-17), liblwres60:amd64 (9.7.3.dfsg-1), kdebase-kio-plugins-trinity:amd64 (3.5.12-0debian7+r1181781), kscreensaver-trinity:amd64 (3.5.12-0debian7+r1177246), kappfinder-trinity:amd64 (3.5.12-0debian7+r1181781), kpackage-trinity:amd64 (3.5.12-0debian7+r1174283), kmenuedit-trinity:amd64 (3.5.12-0debian7+r1181781), kfind-trinity:amd64 (3.5.12-0debian7+r1181781), lm-sensors:amd64 (3.3.0-1), juk-trinity:amd64 (3.5.12-0debian7+r1175295), libbind9-60:amd64 (9.7.3.dfsg-1), poster:amd64 (20050907-1), kdeadmin-kfile-plugins-trinity:amd64 (3.5.12-0debian7+r1174283), arts-trinity:amd64 (3.5.12-0debian7+r1167610+rebuild1), libartsc0-trinity:amd64 (3.5.12-0debian7+r1167610+rebuild1), klipper-trinity:amd64 (3.5.12-0debian7+r1181781), q4wine:amd64 (0.120-r1-4), konqueror-nsplugins-trinity:amd64 (3.5.12-0debian7+r1181781), kdeprint-trinity:amd64 (3.5.12-0debian7+r1181781), kdemultimedia-kio-plugins-trinity:amd64 (3.5.12-0debian7+r1175295), libdbus-qt-1-1c2:amd64 (0.62.git.20060814-2build2), kdeartwork-emoticons-trinity:amd64 (3.5.12-0debian7+r1177246), kregexpeditor-trinity:amd64 (3.5.12-0debian7+r1172882), kdelibs4c2a-trinity:amd64 (3.5.12-0debian7+r1181792), kpager-trinity:amd64 (3.5.12-0debian7+r1181781), kamera-trinity:amd64 (3.5.12-0debian7+r1173991), kdebase-trinity-bin:amd64 (3.5.12-0debian7+r1181781), libxxf86misc1:amd64 (1.0.1-3), psutils:amd64 (1.17-29), libisccfg62:amd64 (9.7.3.dfsg-1), kdewallpapers-trinity:amd64 (3.5.12-0debian7+r1177246), avahi-daemon:amd64 (0.6.30-2), knetworkconf-trinity:amd64 (3.5.12-0debian7+r1174283), kdebase-trinity-doc-html:amd64 (3.5.12-0debian7+r1181781), icc-profiles:amd64 (2.0-2), xcalib:amd64 (0.8.dfsg1-2), kdesktop-trinity:amd64 (3.5.12-0debian7+r1181781), pmount:amd64 (0.9.23-2), libavahi-compat-libdnssd1:amd64 (0.6.30-2), sudo-trinity:amd64 (1.7.2p7-1), kdeartwork-misc-trinity:amd64 (3.5.12-0debian7+r1177246), kdelibs-data-trinity:amd64 (3.5.12-0debian7+r1181792), libtqtinterface:amd64 (3.5.12-0debian7+r1170159), kdeadmin-trinity-doc-html:amd64 (3.5.12-0debian7+r1174283), kuser-trinity:amd64 (3.5.12-0debian7+r1174283), kcharselect-trinity:amd64 (3.5.12-0debian7+r1172882), kcontrol-trinity:amd64 (3.5.12-0debian7+r1181781), libisc62:amd64 (9.7.3.dfsg-1), khelpcenter-trinity:amd64 (3.5.12-0debian7+r1181781), konq-plugins-trinity:amd64 (3.5.12-0debian7+r1166484), portmap:amd64 (6.0.0-3), kdepasswd-trinity:amd64 (3.5.12-0debian7+r1181781), hal-trinity:amd64 (0-0debian1), kdebase-runtime-data-common-trinity:amd64 (3.5.12-0debian7+r1181781), kdeartwork-theme-window-trinity:amd64 (3.5.12-0debian7+r1177246), libtidy-0.99-0:amd64 (20091223cvs-1), enscript:amd64 (, kicker-trinity:amd64 (3.5.12-0debian7+r1181781)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2011-04-15  12:41:13

/var/log/apt/term.log is empty when opened in kwrite although it's size it 10x that of history.log. Cat command can't read it either.

The apt error was about apt not being able to remove ksmserver-trinity. As this is the session manager for KDE it shouldn't be the cause of the issue.

With a chroot I get this.
Removing ksmserver-trinity ...
dpkg-divert: error: mismatch on package
  when removing `diversion of /usr/bin/plasma by ksmserver-trinity'
  found `local diversion of /usr/bin/plasma to /usr/bin/plasma.kde4'
dpkg: error processing ksmserver-trinity (--remove):
 subprocess installed post-removal script returned error exit status 2
configured to not write apport reports
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

Trying to reinstall bind9-host...
EDIT : that did restore connectivity though I know for sure I installed along with trinity.

ksmserver-trinity still refuses to be removed
slh - 15.04.2011, 12:37
Post subject: RE: No internet connectivity after removing kde-trinity
All bets are off, after installing such an invasive bunch of packages from 3rd party sources with extremely questionable quality. I'd do a clean re-install,
blackhole - 15.04.2011, 13:04
Post subject: RE: No internet connectivity after removing kde-trinity
Did you try a "apt-get install kde --reinstall" or, maybe better, "apt-get install kde-full --reinstall"?

Or, if you have kde from qt-debian 4.5.x, "apt-get -t experimental-snapshots dist-upgrade"?
ShakaZ - 15.04.2011, 14:34
Post subject:
@Blackhole : no that command tries to install a lot of packages I don't need and won't solve the issue being able to remove ksmserver-trinity.

dpkg-divert --list
local diversion of /usr/bin/plasma-desktop to /usr/bin/plasma-desktop.kde4
local diversion of /usr/bin/plasma to /usr/bin/plasma.kde4
diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash
diversion of /usr/bin/firefox to /usr/bin/firefox.real by iceweasel
diversion of /usr/share/vim/vim73/doc/help.txt to /usr/share/vim/vim73/doc/help.txt.vim-tiny by vim-runtime
diversion of /usr/share/dict/words to /usr/share/dict/words.pre-dictionaries-common by dictionaries-common
diversion of /bin/sh to /bin/sh.distrib by dash
diversion of /usr/share/vim/vim73/doc/tags to /usr/share/vim/vim73/doc/tags.vim-tiny by vim-runtime

This seems to show the diversion of /usr/bin/plasma by ksmserver-trinity isn't there anymore.
So dpkg-divert tries to remove a diversion that's already been removed or replaced by the plasma.kde4 diversion.
My guess is to remove that diversion, then remove ksmserver-trinity, then reapply that diversion.
Just not sure how to do it, something along the lines of :
dpkg-divert --package plasma --rename --remove /usr/bin/plasma
apt-get remove ksmserver-trinity
dpkg-divert --package plasma --divert /usr/bin/plasma.kde4 --rename /usr/bin/plasma

Haven't found what package /usr/bin/plasma comes from yet, it isn't from plasma-desktop or kdebase-workspace-bin according to information in /var/lib/dpkg/info/
This search doesn't show all the files containing plasma as it should (for example it doesn't show /usr/bin/plasma-desktop) : http://packages.debian.org/search?searc ... arch=amd64
# dpkg-divert --listpackage /usr/bin/plasma

This command should in theory give the package that the diversion comes from, but it doesn't. So either it doesn't work or the package was renamed or changed configuration and the diversion shouldn't be there anymore.
It turns out all non-local diversion display the package and the local diversions diplay LOCAL. Maybe that is the intended behaviour, the man page isn't clear about this.

Also don't know the difference between local diversion and diversion, and how it would affect the commands I have to do.
Ok found that one, from the man page :
Specifies that all packages' versions of this file are diverted. This means, that there are no exceptions, and whatever package is installed, the file is diverted. This can be used by an admin to install a locally modified version

Workaround :
# dpkg-divert --remove --rename /usr/bin/plasma
Removing 'local diversion of /usr/bin/plasma to /usr/bin/plasma.kde4'
root@AfricanPower:/home/shakaz/Downloads/Debian/gfusion# apt-get remove ksmserver-trinity
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
0 upgraded, 0 newly installed, 1 to remove and 26 not upgraded.
1 not fully installed or removed.
After this operation, 573 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 170725 files and directories currently installed.)
Removing ksmserver-trinity ...
No diversion 'diversion of /usr/bin/plasma by ksmserver-trinity', none removed.
dpkg-divert: error: mismatch on package
  when removing `diversion of /usr/bin/plasma-desktop by ksmserver-trinity'
  found `local diversion of /usr/bin/plasma-desktop to /usr/bin/plasma-desktop.kde4'
dpkg: error processing ksmserver-trinity (--remove):
 subprocess installed post-removal script returned error exit status 2
configured to not write apport reports
                                      Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@AfricanPower:/home/shakaz/Downloads/Debian/gfusion# dpkg-divert --remove --rename /usr/bin/plasma-desktop
Removing 'local diversion of /usr/bin/plasma-desktop to /usr/bin/plasma-desktop.kde4'
dpkg-divert: error: rename involves overwriting `/usr/bin/plasma-desktop' with
  different file `/usr/bin/plasma-desktop.kde4', not allowed

Removed the plasma-desktop diversion by editing /var/lib/dpkg/diversions after backing up /usr/bin/plasma-desktop.kde4. Then removed ksmserver-trinity and reenabled the diversions :
mv /var/lib/dpkg/diversionsBAK /var/lib/dpkg/diversions
dpkg-divert --divert /usr/bin/plasma.kde4 --rename /usr/bin/plasma

Not really clean, but seems to work so far... hope I wont get any surprises at the next reboot Confused
blackhole - 15.04.2011, 15:41
Post subject:
maybe this could help

http://www.linuxposts.com/ubuntu/90850- ... -dpkg.html

see second post:

> I temporarily renamed plasma and plasma.kde4, then reran it, and renamed
> them back. That seems to have gotten rid of the fail condition

Not sure that if you must rename them back...I don't have /usr/bin/plasma or /usr/bin/plasma.kde4 in my kde4 configuration.
ShakaZ - 15.04.2011, 15:59
Post subject:
Thanks blackhole, I tried my own way in the mean time hope it will be ok.
Maybe I should remove the diversions instead...

EDIT : I did reinstall plasma-desktop and kdebase-workspace-bin just in case and rebooted... so far so good Wink
The kdebase reinstall did fix a leftover from trinity, related to update-alternatives or something. I'll leave the rest to the coming dist-upgrades if everything continues to work fine.
All times are GMT - 12 Hours
Powered by PNphpBB2 © 2003-2010 The Zafenio Group