【已解决】Bleachbit打不开也删不掉
Tofloor
poster avatar
153******90
deepin
2017-12-24 00:45
Author
本帖最后由 ghost005 于 2018-1-10 22:18 编辑

点击图标后没有任何反应,删除也提示删除失败。
donald@donald-PC:~$ sudo apt-get remove bleachbit
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages were automatically installed and are no longer required:
  0ad-data 0ad-data-common fonts-freefont-ttf fonts-texgyre libboost-date-time1.62.0 libenet7 libglew2.0 libgloox15 libminiupnpc10 libnvtt2
  libsdl2-image-2.0-0 libwxbase3.0-0v5 libwxgtk3.0-0v5 minissdpd python-notify supertux-data
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  bleachbit
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 1,897 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 186648 files and directories currently installed.)
Removing bleachbit (1.12-1) ...
  File "/usr/bin/pyclean", line 63
    except (IOError, OSError), e:
                             ^
SyntaxError: invalid syntax
dpkg: error processing package bleachbit (--remove):
subprocess installed pre-removal script returned error exit status 1
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 35, in
    from debpython.version import SUPPORTED, debsorted, vrepr, \
  File "/usr/share/python/debpython/version.py", line 24, in
    from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
bleachbit
E: Sub-process /usr/bin/dpkg returned an error code (1)


Reply Favorite View the author
All Replies
avatar
jingle
deepin
2017-12-24 03:37
#1
wiki搜索error code
Reply View the author
avatar
153******90
deepin
2017-12-26 18:53
#2
这个有解决办法了么?
Reply View the author
avatar
jingle
deepin
2017-12-26 19:23
#3
https://bbs.deepin.org/post/150566
这个有解决办法了么?

https://wiki.deepin.org/index.php?title=%E8%BD%AF%E4%BB%B6%E5%8C%85%E7%AE%A1%E7%90%86#.E9.97.AE.E9.A2.98.E4.B8.80 上面回复你了的
Reply View the author
avatar
153******90
deepin
2017-12-27 02:35
#4
https://bbs.deepin.org/post/150566
https://wiki.deepin.org/index.php?title=%E8%BD%AF%E4%BB%B6%E5%8C%85%E7%AE%A1%E7%90%86#.E9.97.AE.E9 ...


然并卵!
Reply View the author
avatar
comzhong
deepin
2017-12-27 02:45
#5
用dpkg 命令卸载试试

使用dpkg命令卸载软件
Reply View the author
avatar
153******90
deepin
2017-12-27 02:50
#6
https://bbs.deepin.org/post/150566
用dpkg 命令卸载试试

使用dpkg命令卸载软件

(Reading database ... 183081 files and directories currently installed.)
Removing bleachbit (1.12-1) ...
  File "/usr/bin/pyclean", line 63
    except (IOError, OSError), e:
                             ^
SyntaxError: invalid syntax
dpkg: error processing package bleachbit (--remove):
subprocess installed pre-removal script returned error exit status 1
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 35, in
    from debpython.version import SUPPORTED, debsorted, vrepr, \
  File "/usr/share/python/debpython/version.py", line 24, in
    from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
bleachbit
Reply View the author
avatar
comzhong
deepin
2017-12-27 03:13
#7
https://bbs.deepin.org/post/150566
(Reading database ... 183081 files and directories currently installed.)
Removing bleachbit (1.12- ...

你用的是 apt 命令,我是说用 dpkg 命令
Reply View the author
avatar
153******90
deepin
2017-12-27 04:50
#8
https://bbs.deepin.org/post/150566
你用的是 apt 命令,我是说用 dpkg 命令

dpkg -r bleachbit
让您失望了
Reply View the author
avatar
comzhong
deepin
2017-12-27 04:58
#9
Reply View the author
avatar
153******90
deepin
2017-12-27 05:28
#10
https://bbs.deepin.org/post/150566
你是不是动过 Python?

“except (IOError, OSError), e: SyntaxError: invalid syntax” when configurin ...

没有,它提示没有“ConfigParser”我用pip安装这个包后还是一样的提示。
遇到了妖了
Reply View the author
avatar
iminto
deepin
2017-12-27 05:47
#11
本帖最后由 iminto 于 2017-12-26 21:55 编辑

手动删除就好了
  1. sudo ls -al /var/lib/dpkg/info|grep bleachbit|xargs rm -rf
  2. rm -rf  /usr/share/applications/bleachbit-root.desktop
  3. rm -rf /usr/share/applications/bleachbit.desktop
  4. rm -rf /usr/share/bleachbit
  5. rm -rf /usr/share/locale/en_CA/LC_MESSAGES/bleachbit.mo
  6. rm -rf /usr/bin/bleachbit
Copy the Code

然后
  1. apt-get autoclean
  2. apt-get autoremove
Copy the Code


完美.
Reply View the author
avatar
153******90
deepin
2017-12-27 20:32
#12
https://bbs.deepin.org/post/150566
手动删除就好了

然后

donald@donald-PC:~$ sudo ls -al /var/lib/dpkg/info|grep bleachbit|xargs rm -rf
rm: invalid option -- 'w'
Try 'rm --help' for more information.

第一步就不顺利
Reply View the author
avatar
153******90
deepin
2017-12-27 21:01
#13
https://bbs.deepin.org/post/150566
手动删除就好了

然后

还是很感谢,按这个思路删掉了
Reply View the author