[Desktop] 不小心执行apt autoremove后安装的很多应用打不开了
Tofloor
poster avatar
xiao_辉++
deepin
2023-07-25 21:47
Author

deepin20版本,应该是在不小心执行apt autoremove命令后导致的,安装的很多应用打不开了,包括自带的应用商店没有了,还有搜狗输入法,微信等应用程序打不开,对应bin启动脚本都没啦。怎么重新下载应用商店?重新安装呢?

Reply Favorite View the author
All Replies
阿尼樱奈奈
Moderator
2023-07-25 21:50
#1

试试执行:sudo apt install deepin-app-store

Reply View the author
xiao_辉++
deepin
2023-07-25 21:51
#2
阿尼樱奈奈

试试执行:sudo apt install deepin-app-store

回复神速,多谢

Reply View the author
hanzn-zzx
deepin
2023-07-25 22:04
#3

建议不要乱用这个命令,虽然有时候能救急,但是它还是有副作用的……

你这个应该是把应用包破坏了……

Reply View the author
Ziggy
deepin
2023-07-25 22:11
#4

在执行任何apt操作前建议先看清楚提示要进行变动的包,这个是系统已经被破坏了

可以尝试安装dde这个包看看能不能装回去

由于看不到包变更记录,建议还是备份好数据重新安装系统

Reply View the author
enforcee
deepin
2023-07-25 22:13
#5

要我说移除操作应该默认清除不需要的依赖,防止你们把问题赖到autoremove上

doubt

Reply View the author
xiao_辉++
deepin
2023-07-25 23:03
#6
Ziggy

在执行任何apt操作前建议先看清楚提示要进行变动的包,这个是系统已经被破坏了

可以尝试安装dde这个包看看能不能装回去

由于看不到包变更记录,建议还是备份好数据重新安装系统

当时提示了一堆,我没细看有哪些,现在装了应用商店重新下载应用都可以了

Reply View the author
W2J
deepin
2023-07-25 23:05
#7

冗余依赖的存在,是系统兼容性(鲁棒性)的表现。

我是永远不会去用 apt autoremove 这条破坏性命令,用的基本小白认证

Reply View the author
阿尼樱奈奈
Moderator
2023-07-25 23:25
#8
W2J

冗余依赖的存在,是系统兼容性(鲁棒性)的表现。

我是永远不会去用 apt autoremove 这条破坏性命令,用的基本小白认证

sudo apt autoremove 这条命令有时会非常危险。

Reply View the author
xiao_辉++
deepin
2023-07-25 23:49
#9
阿尼樱奈奈

sudo apt autoremove 这条命令有时会非常危险。

又出现这个问题了,这次没有执行apt autoremove,执行过其他的

Reply View the author
xiao_辉++
deepin
2023-07-25 23:51
#10
阿尼樱奈奈

sudo apt autoremove 这条命令有时会非常危险。

现在安装的app-store连不上网下载不了应用,下面是安装的

root@lxh:~# sudo apt install deepin-app-store
正在读取软件包列表... 完成
正在分析软件包的依赖关系树   
正在读取状态信息... 完成   
下列软件包是自动安装的并且现在不需要了:
  gvfs-bin libcapi20-3 libdtkdeclarative5 libfreeimage3 libglu1-mesa libjxr0
  libkf5syntaxhighlighting-data libkf5syntaxhighlighting5 libleveldb1d libosmesa6 libraw19
  libsqlcipher0 libu2f-udev libvkd3d1 libytnef0 smartmontools
使用'sudo apt autoremove'来卸载它(它们)。
将会同时安装下列软件:
  ca-certificates deepin-elf-verify deepin-home-appstore-daemon openssl
下列【新】软件包将被安装:
  ca-certificates deepin-app-store deepin-elf-verify deepin-home-appstore-daemon openssl
升级了 0 个软件包,新安装了 5 个软件包,要卸载 0 个软件包,有 1 个软件包未被升级。
需要下载 45.6 MB/46.6 MB 的归档。
解压缩后会消耗 70.7 MB 的额外空间。
您希望继续执行吗? [Y/n] y
获取:1 https://com-store-packages.uniontech.com/appstore deepin/appstore amd64 deepin-home-appstore-daemon amd64 7.6.2.0005-1 [496 kB]
获取:2 https://com-store-packages.uniontech.com/appstore deepin/appstore amd64 deepin-app-store amd64 7.7.1.0005-1 [45.1 MB]
已下载 45.6 MB,耗时 1分 41秒 (451 kB/s)                                                                                                                             
正在预设定软件包 ...
正在选中未选择的软件包 openssl。
(正在读取数据库 ... 系统当前共安装有 227220 个文件和目录。)
准备解压 .../openssl_1.1.1d.17-deepin1_amd64.deb  ...
正在解压 openssl (1.1.1d.17-deepin1) ...
正在选中未选择的软件包 ca-certificates。
准备解压 .../ca-certificates_20200601~deb10u2_all.deb  ...
正在解压 ca-certificates (20200601~deb10u2) ...
正在选中未选择的软件包 deepin-elf-verify。
准备解压 .../deepin-elf-verify_1.2.0.6-1_amd64.deb  ...
正在解压 deepin-elf-verify (1.2.0.6-1) ...
正在选中未选择的软件包 deepin-home-appstore-daemon。
准备解压 .../deepin-home-appstore-daemon_7.6.2.0005-1_amd64.deb  ...
正在解压 deepin-home-appstore-daemon (7.6.2.0005-1) ...
正在选中未选择的软件包 deepin-app-store。
准备解压 .../deepin-app-store_7.7.1.0005-1_amd64.deb  ...
正在解压 deepin-app-store (7.7.1.0005-1) ...
正在设置 openssl (1.1.1d.17-deepin1) ...
正在设置 ca-certificates (20200601~deb10u2) ...
Updating certificates in /etc/ssl/certs...
openssl: relocation error: openssl: symbol EVP_PKEY_CTX_new_pkey_id version OPENSSL_1_1_1d not defined in file libcrypto.so.1.1 with link time reference
dpkg: 处理软件包 ca-certificates (--configure)时出错:
 已安装 ca-certificates 软件包 post-installation 脚本 子进程返回错误状态 127
dpkg: 依赖关系问题使得 deepin-elf-verify 的配置工作不能继续:
 deepin-elf-verify 依赖于 ca-certificates;然而:
  软件包 ca-certificates 尚未配置。

dpkg: 处理软件包 deepin-elf-verify (--configure)时出错:
 依赖关系问题 - 仍未被配置
dpkg: 依赖关系问题使得 deepin-home-appstore-daemon 的配置工作不能继续:
 deepin-home-appstore-daemon 依赖于 deepin-elf-verify (>= 1.1.10-1);然而:
  软件包 deepin-elf-verify 尚未配置。

dpkg: 处理软件包 deepin-home-appstore-daemon (--configure)时出错:
 依赖关系问题 - 仍未被配置
dpkg: 依赖关系问题使得 deepin-app-store 的配置工作不能继续:
 deepin-app-store 依赖于 deepin-home-appstore-daemon (>= 7.6.2.0001);然而:
  软件包 deepin-home-appstore-daemon 尚未配置。
 deepin-app-store 依赖于 deepin-elf-verify (>= 1.1.10-1);然而:
  软件包 deepin-elf-verify 尚未配置。

dpkg: 处理软件包 deepin-app-store (--configure)时出错:
 依赖关系问题 - 仍未被配置
正在处理用于 mime-support (3.62) 的触发器 ...
正在处理用于 hicolor-icon-theme (0.17-2) 的触发器 ...
正在处理用于 libglib2.0-0:amd64 (2.58.3.9-1+deepin) 的触发器 ...
正在处理用于 man-db (2.8.5-3) 的触发器 ...
正在处理用于 dbus (1.12.20.6-1+deepin) 的触发器 ...
正在处理用于 bamfdaemon (0.5.4.1-1+eagle) 的触发器 ...
Rebuilding /usr/share/applications/bamf-2.index...
正在处理用于 desktop-file-utils (0.23-4) 的触发器 ...
在处理时有错误发生:
 ca-certificates
 deepin-elf-verify
 deepin-home-appstore-daemon
 deepin-app-store
E: Sub-process /usr/bin/dpkg returned an error code (1)

Reply View the author
xiao_辉++
deepin
2023-07-25 23:53
#11

我在重装openssl,估计是这个导致

Reply View the author
enforcee
deepin
2023-07-26 05:51
#12
W2J

冗余依赖的存在,是系统兼容性(鲁棒性)的表现。

我是永远不会去用 apt autoremove 这条破坏性命令,用的基本小白认证

你应该质疑发明apt的人他们是不是小白,像windows那样装上就没法删才是好设计

joy

Reply View the author
W2J
deepin
2023-07-26 06:54
#13

额,enforcee和安洛两位大佬是我在deepin社区的学习榜样,眼光自然不容置疑。

任何构建都是依据规则添加,而拆除总是带有破坏性的,这有点哲学意味,一时很难说清楚。

Reply View the author
myml
Super Moderator
Developer
2023-07-27 18:50
#14

查看 /var/log/dpkg.log 日志文件,里面有卸载和安装的记录,把卸载的包再安装回来试试

Reply View the author
xiao_辉++
deepin
2023-07-28 17:46
#15
myml

查看 /var/log/dpkg.log 日志文件,里面有卸载和安装的记录,把卸载的包再安装回来试试

我重启后进不了登录界面了,不得不重装了,现在重装了,没弄openssl那个东西了

Reply View the author