首先我像这样更新,sudo apt-get update
最后显示如下:
Fetched 323 kB in 1s (247 kB/s)
Reading package lists... Done
然后我安装 g++ 编译器。显示如下:
bharat@bharat-OptiPlex-3050:~$ sudo apt-get install g++
Reading package lists... Done
Building dependency tree
Reading state information... Done
g++ is already the newest version (4:5.3.1-1ubuntu1).
The following packages were automatically installed and are no longer required:
canonical-poke libappindicator1 libbonobo2-0 libbonobo2-common libgnome-2-0
libgnome2-common libgnomevfs2-0 libgnomevfs2-common liborbit-2-0
linux-headers-4.4.0-23 linux-headers-4.4.0-23-generic
linux-image-4.4.0-23-generic linux-image-extra-4.4.0-23-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
我需要解决方案,请帮助我。
答案1
g++ 已经是最新版本
看来你已经安装了最新版本
尝试:
sudo apt 自动删除
sudo apt-get 更新
sudo apt-get 升级