sudo apt-get install -f gdebi-core
[sudo] password for sdksdk:
Reading package lists ... Done
Building dependency tree
Loading state information ... Done
Gdebi-core package is not available, but is referred to by another package. This may mean,
that the package is missing, it has been obsoleted, or is only available from another source
答案1
首先检查是否universe
已启用。您可以通过以下方式启用它:
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"
然后运行命令:
sudo apt-get update
sudo apt-get install gdebi
答案2
该包裹gdebi-core
位于主要存储库. 检查你的/etc/apt/sources.list
类似这样的条目,例如 trusty:
对于 Trusty 发行版,例如:
deb http://archive.ubuntu.com/ubuntu trusty main
使用命令查看你的发行版
lsb_release -sc
从man lsb_release
-c, --codename
Display the code name of the currently installed distribution.
-s, --short
Use the short output format for any information displayed.
This format omits the leading header(s).
如果缺少条目,请使用以下命令:
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main"
在那之后:
sudo apt-get update
sudo apt-get install gedbi-core