sudo apt-get install build-essential提示E:Couldn't find package build-essential

mz5052 2013-06-11 11:42:17
ubuntu 9.10 下面sudo apt-get update更新不成功
都是诸如如下的问题:
404 Not Found [IP: 91.189.92.177 80]
Err http://hk.archive.ubuntu.com karmic/restricted Packages
404 Not Found [IP: 91.189.92.177 80]
Err http://hk.archive.ubuntu.com karmic/main Sources
404 Not Found [IP: 91.189.92.177 80]
Err http://hk.archive.ubuntu.com karmic/restricted Sources
404 Not Found [IP: 91.189.92.177 80]
Err http://hk.archive.ubuntu.com karmic/universe Packages
404 Not Found [IP: 91.189.92.177 80]
Err http://hk.archive.ubuntu.com karmic/universe Sources
404 Not Found [IP: 91.189.92.177 80]
Err http://security.ubuntu.com karmic-security/main Sources
404 Not Found [IP: 91.189.92.190 80]
Err http://security.ubuntu.com karmic-security/restricted Sources
404 Not Found [IP: 91.189.92.190 80]
Err http://security.ubuntu.com karmic-security/universe Packages
404 Not Found [IP: 91.189.92.190 80]
Err http://security.ubuntu.com karmic-security/universe Sources
404 Not Found [IP: 91.189.92.190 80]
Err http://hk.archive.ubuntu.com karmic/multiverse Packages
404 Not Found [IP: 91.189.92.177 80]
Err http://hk.archive.ubuntu.com karmic/multiverse Sources
404 Not Found [IP: 91.189.92.177 80]
Err http://hk.archive.ubuntu.com karmic-updates/main Packages
404 Not Found [IP: 91.189.92.177 80]
Err http://hk.archive.ubuntu.com karmic-updates/restricted Packages
404 Not Found [IP: 91.189.92.177 80]
Err http://hk.archive.ubuntu.com karmic-updates/main Sources
404 Not Found [IP: 91.189.92.177 80]

软件包也无法安装sudo apt-get install build-essential提示E: Couldn't find package build-essential
求大神指教啊
...全文
1100 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
MD_LV 2013-06-14
  • 打赏
  • 举报
回复
首先确保自己的网络是连接成功的 可以使用apt-get update更新一下 如果还是不行就去网上找其他源
FancyMouse 2013-06-12
  • 打赏
  • 举报
回复
换个源。这地址连不上。
关于 Wireshark 不用多说,网上的介绍很多!如何编译? 安装编译工具:   $sudo apt-get install build-essential   为了成功编译Wireshark,您需要安装GTK+的开发文件和GLib库(libraries)。   $sudo apt-get install libgtk2.0-dev libglib2.0-dev   安装Checkinstall以便管理您系统中直接由源代码编译安装的软件。   $sudo apt-get install checkinstall 下载后的文件名:wireshark-1.2.2.tar.bz2 cd到文件目录解压:$tar -xvf wireshark-1.2.2.tar.bz2 $cd wireshark-1.2.2 编译安装命令如下: $./configure $make $sudo make install 其中make编译时间会比较长,这样下来就基本安装了。 下面是我这篇文章的关键,也是用ubuntu安装的过程中极有可能遇到的问题,且都是在进行./configure编译过程中出现,两个问题如下: 问题1: configure: error: I couldn't find yacc (or bison or ...); make sure it's installed and in your path 解决办法: sudo apt-get install flex bison yacc(Yet Another Compiler Compiler),是Unix/Linux上一个用来生成编译器的编译器(编译器代码生成器)。 问题2: configure: error: Header file pcap.h not found; if you installed libpcap from source, did you also do "make install-incl", and if you installed a binary package of libpcap, is there also a developer's package of libpcap, and did you also install that package? 问题原因是ubuntu下缺少pcap.h等文件。 解决方法: 编译安装libpcap. 在www.tcpdump.org页面中可下载源码:libpcap-1.0.0.tar.gz cd到文件目录: view plaincopy to clipboardprint? $tar -xvf libpcap-1.0.0.tar.gz $cd libpcap-1.0.0.tar.gz $./configure $make $sudo make install $tar -xvf libpcap-1.0.0.tar.gz $cd libpcap-1.0.0.tar.gz $./configure $make $sudo make install
wireshark源码 安装步骤和方法,供大家参考。 安装编译工具:   $sudo apt-get install build-essential   为了成功编译Wireshark,您需要安装GTK+的开发文件和GLib库(libraries)。   $sudo apt-get install libgtk2.0-dev libglib2.0-dev   安装Checkinstall以便管理您系统中直接由源代码编译安装的软件。   $sudo apt-get install checkinstall 下载后的文件名:wireshark-1.2.2.tar.bz2 cd到文件目录解压:$tar -xvf wireshark-1.2.2.tar.bz2 $cd wireshark-1.2.2 编译安装命令如下: $./configure $make $sudo make install 其中make编译时间会比较长,这样下来就基本安装了。 下面是我这篇文章的关键,也是用ubuntu安装的过程中极有可能遇到的问题,且都是在进行./configure编译过程中出现,两个问题如下: 问题1: configure: error: I couldn't find yacc (or bison or ...); make sure it's installed and in your path 解决办法: sudo apt-get install flex bison yacc(Yet Another Compiler Compiler),是Unix/Linux上一个用来生成编译器的编译器(编译器代码生成器)。 问题2: configure: error: Header file pcap.h not found; if you installed libpcap from source, did you also do "make install-incl", and if you installed a binary package of libpcap, is there also a developer's package of libpcap, and did you also install that package? 问题原因是ubuntu下缺少pcap.h等文件。 解决方法: 编译安装libpcap. 在www.tcpdump.org页面中可下载源码:libpcap-1.0.0.tar.gz cd到文件目录: view plaincopy to clipboardprint? $tar -xvf libpcap-1.0.0.tar.gz $cd libpcap-1.0.0.tar.gz $./configure $make $sudo make install $tar -xvf libpcap-1.0.0.tar.gz $cd libpcap-1.0.0.tar.gz $./configure $make $sudo make install

18,829

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 专题技术讨论区
社区管理员
  • 专题技术讨论区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧