我目前正在尝试从ubuntu22.04ISO中添加和删除包,在尝试删除firefox时,我得到了以下内容:
root@cubic:~# apt remove firefox
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'firefox' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.在此之后,我尝试将新获取作为一个测试来安装,结果如下:
root@cubic:~# apt install neofetch -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package neofetch我正在使用标准的ubuntu22.04桌面ISO从经典网站,我没有多少经验的立方体。我已经看过针对旧版本linux的立方体教程,但是在尝试了与其版本相同的过程之后,问题就没有变了。任何想法都会很好,谢谢!
发布于 2022-05-12 00:28:41
我先回答你问题的第二部分。
您无法安装软件包,因为您没有在/etc/apt/sources.list中添加适当的存储库。
neofetch包位于universe存储库中。
确保您拥有所有重要的响应是一个好主意;要做到这一点,请使用以下命令:
add-apt-repository --yes main
add-apt-repository --yes restricted
add-apt-repository --yes universe
add-apt-repository --yes multiverse然后执行apt install neofetch,它就能工作了。
关于问题的第一部分,@user535733是正确的: Firefox是Ubuntu22.04中的一个快照,所以您不能使用apt来管理它。
不幸的是,您不能在立方终端环境中使用snap命令,因为snapd之类的服务不运行。
但是,您可以删除snap (从而删除所有snap包),然后只需安装这些包的deb版本。
若要删除snap,请执行:
apt purge snapd要安装火狐的deb版本,请按照这个答案中的说明进行操作。
https://askubuntu.com/questions/1408033
复制相似问题