当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 3 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 在win10的wsl下安装g++时遇到问题
帖子发表于 : 2016-08-03 15:23 

注册: 2007-06-23 17:27
帖子: 82
系统: Linux Mint 13
送出感谢: 1
接收感谢: 0 次
我先装了gcc,然后嫌自带的源太慢,就改用了163的源,结果安装g++时遇到问题了,如下:

dyn@DELL:/etc/apt$ sudo apt-get install g++
sudo: unable to resolve host DELL
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
g++ : Depends: g++-4.8 (>= 4.8.2-5~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


dyn@DELL:/etc/apt$ sudo apt-get install g++-4.8
sudo: unable to resolve host DELL
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
g++-4.8 : Depends: gcc-4.8-base (= 4.8.4-2ubuntu1~14.04) but 4.8.4-2ubuntu1~14.04.3 is to be installed
Depends: gcc-4.8 (= 4.8.4-2ubuntu1~14.04) but 4.8.4-2ubuntu1~14.04.3 is to be installed
Depends: libstdc++-4.8-dev (= 4.8.4-2ubuntu1~14.04) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 在win10的wsl下安装g++时遇到问题
帖子发表于 : 2016-08-05 23:50 
头像

注册: 2008-09-18 13:11
帖子: 2781
送出感谢: 1
接收感谢: 453
163的源现在已经废了,大半年都没跟官方同步过了。建议用阿里云的 http://mirrors.aliyun.com/ubuntu/


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 在win10的wsl下安装g++时遇到问题
帖子发表于 : 2016-08-08 8:33 

注册: 2007-06-23 17:27
帖子: 82
系统: Linux Mint 13
送出感谢: 1
接收感谢: 0 次
astolia 写道:
163的源现在已经废了,大半年都没跟官方同步过了。建议用阿里云的 http://mirrors.aliyun.com/ubuntu/

多谢!
后来证实确实是163源的问题,改用ubuntu中国官方源就好了。


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 3 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译