在 ubuntu20.04 中装 ns-allinone-2.35,参考以下链接:
https://blog.csdn.net/qq_43715228/article/details/85057295。
在参考上述链接过程中会遇到一些问题,
(1) 运行 apt 报错,则:ps aux|grep apt
Kill -9 PID,如图:
(2)gcc 版本过高,需要降低版本,安装 gcc 过程参考如下:
http://blog.sina.com.cn/s/blog_6cee149d010129bl.html
我安装的是 4.8 版本
但是有可能会提示:Package 'g++-4.8' has no installation candidate,
解决办法如下:修改源,修改后的 sources.list 内容如下:
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/
focal-security main restricted universe
multiverse
deb http://mirrors.aliyun.com/ubuntu/
focal-updates main restricted universe
multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe
multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe
multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe
multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe
multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe
multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe
multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe
multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe
multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe
multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe
multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe
multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe
multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe
multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe
multiverse
(3)在参考的第一个连接中,装完 nam 时,会出现: Can't find a usable tk.tcl in the
following directories:………………………
nam:
Can't
find
a
usable
tk.tcl
in
the
following
directories:
/home/huangfengi/Desktop/myfile/ ns-allinone-2.35……
解决办法如下:
添加红线部分,注意:自己的用户目录和 ns-allinone-2.35 的目录不要写错。