我想在 Ubuntu 14.04 上安装 ns2.35。当我执行此命令时:
$ sudo apt-get install tcl8.5-dev tk8.5-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package tcl8.5-dev
E: Couldn't find any package by regex 'tcl8.5-dev'
E: Unable to locate package tk8.5-dev
E: Couldn't find any package by regex 'tk8.5-dev'
我应该怎样解决这个问题?
答案1
这些软件包存在,并且可以在 Ubuntu 14.04 中使用,下面是我在 Ubuntu 14.04.4 中执行命令的输出:
galoget@hackem:~$ sudo apt install tcl8.5-dev tk8.5-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libfontconfig1-dev libfreetype6 libfreetype6-dev libpng12-dev
libpthread-stubs0-dev libtcl8.5 libtk8.5 libx11-dev libx11-doc libxau-dev
libxcb1-dev libxdmcp-dev libxext-dev libxft-dev libxrender-dev libxss-dev
tcl8.5 tk8.5 x11proto-core-dev x11proto-input-dev x11proto-kb-dev
x11proto-render-dev x11proto-scrnsaver-dev x11proto-xext-dev
xorg-sgml-doctools xtrans-dev
Suggested packages:
libxcb-doc libxext-doc tcl-tclreadline tcl8.5-doc tk8.5-doc
The following NEW packages will be installed:
libfontconfig1-dev libfreetype6-dev libpng12-dev libpthread-stubs0-dev
libtcl8.5 libtk8.5 libx11-dev libx11-doc libxau-dev libxcb1-dev libxdmcp-dev
libxext-dev libxft-dev libxrender-dev libxss-dev tcl8.5 tcl8.5-dev tk8.5
tk8.5-dev x11proto-core-dev x11proto-input-dev x11proto-kb-dev
x11proto-render-dev x11proto-scrnsaver-dev x11proto-xext-dev
xorg-sgml-doctools xtrans-dev
The following packages will be upgraded:
libfreetype6
1 upgraded, 27 newly installed, 0 to remove and 261 not upgraded.
Need to get 8.262 kB of archives.
After this operation, 37,2 MB of additional disk space will be used.
Do you want to continue? [Y/n]
提示:你可以在以下位置搜索适用于 Ubuntu 任何发行版本的任何软件包:本网站,您也可以从该站点下载文件,以下是您要安装的两个软件包:
下载.DEB 文件后,要安装它们,请按照以下步骤操作:
假设 .DEB 文件适用于 am64 且位于
~/Downloads
:cd ~/Downloads sudo dpkg -i tcl8.5-dev_8.5.15-2ubuntu1_amd64.deb sudo dpkg -i tk8.5-dev_8.5.15-2ubuntu3_amd64.deb
但我相信您需要一些依赖项才能正确安装和运行这两个包,您可以在一开始检查我的终端的输出。
答案2
尝试添加主要的存储库
sudo add-apt-repository main
并重试安装
sudo apt-get update
sudo apt-get install tcl8.5-dev tk8.5-dev