Ubuntu 24.04LTS卸载snapd后无法重新安装的问题求助
大家好,我最近碰到了个头疼的问题,想请各位大佬帮忙支支招:
之前我的Ubuntu 24.04 Desktop上有一款snap应用突然启动不了了,我试着卸载再重装这个应用,结果完全没用。情急之下我犯了个傻——用apt-get把snapd给卸载了:
sudo apt-get remove snapd
之后我整整花了三天时间尝试重新安装snapd,却一直没能成功。期间我已经删除了所有和snap相关的数据(提前备份了~/snap目录),现在执行安装命令时,会出现下面的情况:
执行的命令:
sudo apt-get install snap snapd -y
对应的输出:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
snap snapd
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 28.4 MB of archives.
After this operation, 113 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 snapd amd64 2.63+24.04 [28.1 MB]
Get:2 http://archive.ubuntu.com/ubuntu noble/universe amd64 snap amd64 2013-11-29-11 [377 kB]
Fetched 28.4 MB in 15s (1,896 kB/s)
有没有朋友遇到过类似的情况?或者能给我一些排查和解决的建议?真的非常感谢!
备注:内容来源于stack exchange,提问作者Maikel

