当前位置: 技术问答>linux和unix
虚拟机上linux GDB无法安装
来源: 互联网 发布时间:2017-02-20
本文导语: 在输入命令sudo apt-get install gdb之后, 就出现了下面这些提示信息: Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: gdb-doc gdbserver The following NEW packages will be...
在输入命令sudo apt-get install gdb之后,
就出现了下面这些提示信息:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
gdb-doc gdbserver
The following NEW packages will be installed:
gdb
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 2,115 kB of archives.
After this operation, 5,657 kB of additional disk space will be used.
Err http://cn.archive.ubuntu.com/ubuntu/ precise/main gdb i386 7.4-2012.02-0ubuntu2
Temporary failure resolving 'cn.archive.ubuntu.com'
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/main/g/gdb/gdb_7.4-2012.02-0ubuntu2_i386.deb Temporary failure resolving 'cn.archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
好像是安装失败了,请问这是怎么回事?难道是我Linux没联网?
就出现了下面这些提示信息:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
gdb-doc gdbserver
The following NEW packages will be installed:
gdb
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 2,115 kB of archives.
After this operation, 5,657 kB of additional disk space will be used.
Err http://cn.archive.ubuntu.com/ubuntu/ precise/main gdb i386 7.4-2012.02-0ubuntu2
Temporary failure resolving 'cn.archive.ubuntu.com'
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/main/g/gdb/gdb_7.4-2012.02-0ubuntu2_i386.deb Temporary failure resolving 'cn.archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
好像是安装失败了,请问这是怎么回事?难道是我Linux没联网?
|
Temporary failure resolving 'cn.archive.ubuntu.com'
检查网络设置,特别是DNS设置
检查网络设置,特别是DNS设置
|
明显是楼主没有联网
|
Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/main/g/gdb/gdb_7.4-2012.02-0ubuntu2_i386.deb Temporary failure resolving 'cn.archive.ubuntu.com'
检查网络连接
没有问题的话先sudo apt-get update
检查网络连接
没有问题的话先sudo apt-get update
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。