今天又把deepin玩坏了,原因是在安装python3-opencv时候,依赖问题直接把我的dde干掉了..(日志文件存放在/var/log/apt/history.log )
代码语言:javascript复制Start-Date: 2019-03-23 17:03:01
Commandline: apt-get install python3-opencv
Requested-By: yumu
Remove: dde-introduction:amd64 (1.1.5-1), libdtkwidget2:amd64 (2.0.9.17-1), deepin-deepinid-client:amd64 (1.0.1-1), libdmr:amd64 (3.2.20-1), deepin-font-installer:amd64 (1.1.4-1), qt5dxcb-plugin:amd64 (1.1.24-1), dde-qt5integration:amd64 (0.3.7.2-2), deepin-manual:amd64 (2.0.17-1), onboard:amd64 (1.4.1.6-1), printer-driver-deepin-cloud-print:amd64 (1.2.5.2-1), dde-dock-onboard-plugin:amd64 (4.9.0-1), dde-control-center:amd64 (4.9.4-1), deepin-appstore:amd64 (5.2.0.6-1), dde:amd64 (15.9 2), dde-disk-mount-plugin:amd64 (4.7.7.1-1), dde-desktop:amd64 (4.7.7.1-1), libdeepin-font-installer:amd64 (1.1.4-1), deepin-graphics-driver-manager:amd64 (1.1.6-1), deepin-terminal:amd64 (3.2.1.1), deepin-wm:amd64 (1.9.35-1), deepin-cloud-scanner:amd64 (1.0.9.2-1), deepin-image-viewer:amd64 (1.3.8-1), deepin-screenshot:amd64 (4.1.8-1), deepin-system-monitor:amd64 (1.4.8.1-1), deepin-shortcut-viewer:amd64 (1.3.5-1), hplip:amd64 (3.17.10 repack0-5), deepin-menu:amd64 (3.4.1-1), deepin-metacity:amd64 (3.22.24-1), dde-launcher:amd64 (4.6.6-1), dde-file-manager:amd64 (4.7.7.1-1), netease-cloud-music:amd64 (1.1.3.2), deepin-editor:amd64 (1.2.6.3-1), deepin-movie:amd64 (3.2.20-1), libqcef1:amd64 (1.1.4.6-2), startdde:amd64 (3.12.1-1), deepin-feedback:amd64 (1.0.19-1), libdde-file-manager:amd64 (4.7.7.1-1), dde-dock:amd64 (4.9.0-1), dde-session-ui:amd64 (4.8.12-1), deepin-deb-installer:amd64 (1.3.0-1), dde-daemon:amd64 (3.23.0-2), dde-polkit-agent:amd64 (0.2.4-1)
End-Date: 2019-03-23 17:08:46
一开始我并没有发现出现了问题。直到我的文件管理器打不开了,我才想起去查看APT日志,发现了以上问题。上次重装系统就是因为不小心卸载了dde环境,但是这次我决定要解决这个问题。
- 首先既然是这个出现的问题,就卸载掉吧
[email protected]:~$ sudo apt remove python3-opencv
- 把源还原为官方源
[email protected]:~$ cat /etc/apt/sources.list
## Generated by deepin-installer
deb [by-hash=force] http://packages.deepin.com/deepin panda main contrib non-free
#deb-src http://packages.deepin.com/deepin panda main contrib non-free
#163kali源
#deb http://mirrors.ustc.edu.cn/kali kali-rolling main contrib non-free
[email protected]:~$ sudo apt update
- 尝试安装dde
[email protected]:~$ sudo apt install dde
但是,此时告诉我。。依赖环境不满足 我找到了有人遇见了同样的问题 https://bbs.deepin.org/forum.php?mod=viewthread&tid=145708 原来dde环境依赖的qt是老版本的,而我安装python3-opencv的同时更新了qt,然后就把不满足依赖的dde给卸载了….
- 回退qt版本再重新安装dde环境
[email protected]:~$ sudo apt remove libqt5core5a
(出现高版本是因为之前修改过deepin的源)
[email protected]:~$ sudo apt install libqt5core5a
(这里安装的就是deepin源里面适配当前dde环境的qt)
[email protected]:~$ sudo apt install dde
(这里就可以正常安装了)
总结一下
- 如果不更改deepin的源的话,是不会误操作卸载掉dde环境的
- 需要装其他源的软件时,尽量安装完毕要恢复deepin源
- 当误操作卸载了dde环境,千万不要关机,因为一关机就起不来了…
- 心态一定要稳,先查日志看缺少了哪些东西,再查资料看看是否有人遇到过同样的问题