我在 Ubuntu 14.04 上安装ns2-allinone-2.29.2
(不是最新版本,我需要这个来测试 st),但遇到了上述问题。即使安装了依赖项,也无法识别。请帮忙!我喜欢 Linux!!!
asrat@asrat-B85M-D3H:~$ **sudo apt-get -f install gcc-4.8 libstdc++-4.8-dev**
Reading package lists... Done
Building dependency tree
Reading state information... Done
gcc-4.8 is already the newest version.
gcc-4.8 set to manually installed.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libstdc++-4.8-dev : Depends: gcc-4.8-base (= 4.8.2-19ubuntu1) but 4.8.4-2ubuntu1~14.04 is to be installed
Depends: libgcc-4.8-dev (= 4.8.2-19ubuntu1) but 4.8.4-2ubuntu1~14.04 is to be installed
E: Unable to correct problems, you have held broken packages.
asrat@asrat-B85M-D3H:~$ **sudo apt-get -f install gcc-4.8-base libgcc-4.8-dev**
Reading package lists... Done
Building dependency tree
Reading state information... Done
libgcc-4.8-dev is already the newest version.
gcc-4.8-base is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
asrat@asrat-B85M-D3H:~$ **sudo apt-get -f install gcc-4.8 libstdc++-4.8-dev**
Reading package lists... Done
Building dependency tree
Reading state information... Done
gcc-4.8 is already the newest version.
gcc-4.8 set to manually installed.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libstdc++-4.8-dev : Depends: gcc-4.8-base (= 4.8.2-19ubuntu1) but 4.8.4-2ubuntu1~14.04 is to be installed
Depends: libgcc-4.8-dev (= 4.8.2-19ubuntu1) but 4.8.4-2ubuntu1~14.04 is to be installed
E: Unable to correct problems, you have held broken packages.