WSL1804(Universe 已启用):无法安装 p7zip-full

WSL1804(Universe 已启用):无法安装 p7zip-full

我需要在 wsl-ub1804 上使用7z,所以我尝试通过它安装,sudo apt-get install p7zip-full但失败了。我检查了ubuntu 软件包所以我确信它就在那里。

我已经检查过了其他问题,并且我的 universe repo 已启用

如果需要的话这是我的控制台日志。

问题是什么?我该如何解决?

longwsl@DESKTOP-3NGNNKU:~$ sudo apt-get install p7zip-full
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package p7zip-full is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'p7zip-full' has no installation candidate
longwsl@DESKTOP-3NGNNKU:~$ sudo add-apt-repository universe
'universe' distribution component is already enabled for all sources.
longwsl@DESKTOP-3NGNNKU:~$ sudo apt-get install p7zip-full
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package p7zip-full is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'p7zip-full' has no installation candidate
longwsl@DESKTOP-3NGNNKU:~$

答案1

尝试:sudo apt-get updatesudo apt update

对源进行任何更改后(例如添加 Universe 存储库),您必须更新 apt 的可用包数据库。

相关内容