LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 701|回复: 1

删除包x11-common时遇到错误

[复制链接]
发表于 2007-9-16 10:11:14 | 显示全部楼层 |阅读模式
我的系统是从knoppix安装的,在用apt-get remove x11-common时遇到错误如下:
artwiz-cursor和kdebluetooth这两个包出现dpkg-divert:mismatch on diver-to
的错误而不能删除,导致x11-common也不能删除。这种dpkg-divert:mismatch on diver-to
的问题应该如何解决?
 楼主| 发表于 2007-9-16 11:26:33 | 显示全部楼层
已经解决了。解决方法如下:
root@Knoppix:~# dpkg-query -l|grep kdebluetooth
ii  kdebluetooth                     0.99+1.0beta2-2                    KDE Bluetooth Framework
root@Knoppix:~# apt-get --purge remove kdebluetooth
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
  kdebluetooth*
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
Need to get 0B of archives.
After unpacking 5296kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 110752 files and directories currently installed.)
Removing kdebluetooth ...
dpkg-divert: mismatch on divert-to
  when removing `diversion of /usr/bin/kdesktop_lock to /usr/bin/kdesktop_lock_nobt by kdebluetooth'
  found `diversion of /usr/bin/kdesktop_lock to /usr/bin/kdesktop_lock.orig by kdelock-knoppix'
dpkg: error processing kdebluetooth (--purge):
subprocess post-removal script returned error exit status 2
Errors were encountered while processing:
kdebluetooth
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@Knoppix:~# rm /usr/bin/kdesktop_lock
rm: remove regular file `/usr/bin/kdesktop_lock'? y
root@Knoppix:~# dpkg-divert --rename --remove /usr/bin/kdesktop_lock
Removing `diversion of /usr/bin/kdesktop_lock to /usr/bin/kdesktop_lock.orig by kdelock-knoppix'
root@Knoppix:~# apt-get --purge remove kdebluetooth
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
  kdebluetooth
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 5296kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 110218 files and directories currently installed.)
Removing kdebluetooth ...
No diversion `diversion of /usr/bin/kdesktop_lock to /usr/bin/kdesktop_lock_nobt by kdebluetooth', none removed
root@Knoppix:~# dpkg-query -l|grep kdebluetooth
rc  kdebluetooth                     0.99+1.0beta2-2                    KDE Bluetooth Framework
root@Knoppix:~# dpkg -P kdebluetooth
(Reading database ... 110218 files and directories currently installed.)
Removing kdebluetooth ...
Purging configuration files for kdebluetooth ...
root@Knoppix:~# dpkg-query -l|grep kdebluetooth
root@Knoppix:~# dpkg-query -l|grep artwiz-cursor
ii  artwiz-cursor                    1.3-5                              artwiz futuristic mouse cursor for x11
root@Knoppix:~# dpkg -P artwiz-cursor
(Reading database ... 110217 files and directories currently installed.)
Removing artwiz-cursor ...
dpkg-divert: mismatch on divert-to
  when removing `diversion of /usr/share/fonts/X11/misc/cursor.pcf.gz to /usr/share/fonts/X11/misc/cursor.pcf.gz-artwiz by artwiz-cursor'
  found `diversion of /usr/share/fonts/X11/misc/cursor.pcf.gz to /usr/share/doc/artwiz-cursor/cursor.pcf.gz-artwiz by artwiz-cursor'
dpkg: error processing artwiz-cursor (--purge):
subprocess post-removal script returned error exit status 2
Errors were encountered while processing:
artwiz-cursor
root@Knoppix:~# rm /usr/share/fonts/X11/misc/cursor.pcf.gz
rm: cannot lstat `/usr/share/fonts/X11/misc/cursor.pcf.gz': No such file or directory
root@Knoppix:~# dpkg-divert --rename --remove /usr/share/fonts/X11/misc/cursor.pcf.gz
Removing `diversion of /usr/share/fonts/X11/misc/cursor.pcf.gz to /usr/share/doc/artwiz-cursor/cursor.pcf.gz-artwiz by artwiz-cursor'
root@Knoppix:~# dpkg -P artwiz-cursor
(Reading database ... 110213 files and directories currently installed.)
Removing artwiz-cursor ...
No diversion `diversion of /usr/share/fonts/X11/misc/cursor.pcf.gz to /usr/share/fonts/X11/misc/cursor.pcf.gz-artwiz by artwiz-cursor', none removed
Purging configuration files for artwiz-cursor ...
root@Knoppix:~# dpkg-query -l|grep artwiz-cursor
root@Knoppix:~#
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表