我需要7z
在wsl-ub1804上使用,所以我尝试安装它,sudo apt-get install p7zip-full
但它失败了。我检查了ubuntu 包,所以我确定它在那里。
我检查了其他问题,并且我的宇宙回购已启用
如果需要,这是我的控制台日志。
什么是问题,我该如何解决?
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:~$
尝试:
sudo apt-get update
或sudo apt update
在对源代码进行任何更改(例如添加 Universe 存储库)后,您必须更新 apt 的可用软件包数据库。