我在哪里可以找到 Tk 包?
$ sudo apt-get install tk8.5
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package tk8.5 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 'tk8.5' has no installation candidate
答案1
这些是我在以下帮助下得到的结果apt-cache search tk8.5
frank@august:~$ apt-cache search tk8.5
tk8.5 - Tk toolkit for Tcl and X11, v8.5 - run-time files
tk8.5-dev - Tk toolkit for Tcl and X11, v8.5 - development files
tk8.5-doc - Tk toolkit for Tcl and X11, v8.5 - manual pages
您值得尝试一下sudo apt-get update
,然后重试安装。
否则,您可以从结果中选择包apt-cache search
,正如我上面提到的。
答案2
由于某种原因,我的 apt 资源几乎为空。
通过“Ubuntu 软件中心”的设置添加所有可用资源解决了该问题。
谢谢大家的努力!
答案3
尝试这个:
sudo apt-get install Tk8.5
Tk 前面有一个大写的“T”。这对我来说很有用。