apt-get update或aptitude update来更新源列表
来源:互联网 发布:人工智能与虚拟现实 编辑:程序博客网 时间:2024/06/13 09:39
From: http://www.linuxdiyf.com/viewarticle.php?id=79546
apt-get update或aptitude update来更新源列表
sudo apt-get update
sudo apt-get dist-upgrade
debian通过下面的命令来从debian源上自动下载和安装软件。
apt-get或aptitude
apt-get update更新源列表
apt-cache search xxx,在源中搜索xxx软件
apt-get install xxx,从源中安装xxx软件
apt-get download xxx,从源中下载xxx debian deb包
apt-get source xxx,从源中下载xxx的源码包
apt-get remove xxx删除包
建议使用更高级的工具aptitude
aptitude 不仅能用命令行包管理还有图像界面
aptitude update
aptitude get xxx
aptitude search xxx
aptitude remove xxx
aptitude purge xxx
aptitude download xxx
`apt-spy'会根据站点回应时间和带宽自动创建`sources.list'。
#apt-get install apt-spy
#mv sources.list sources.list.bak //backup
#man apt-spy //获取详细的使用方法
#apt-spy update //更新您的镜像列表文件 /var/lib/apt-spy/mirrors.txt
# apt-spy -d testing -a Asia
//在亚洲区寻找速度最快的testing版镜像,并生成 sources.list文件,也可使用 -o 参数指定写入文件
设置DNS,直接写/etc/resolv.conf即可
设置IP,可以直接编辑/etc/network/interfaces这个文件,固定IP这样写:
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address 192.168.2.2
netmask 255.255.255.0
broadcast 192.168.2.255
gateway 192.168.2.1
里面把地址和网关设好即可。用DHCP时后一段是这样:
auto eth0
iface eth0 inet dhcp
这个文件改动之后,应该重启网络:
/etc/init.d/networking restart
- apt-get update或aptitude update来更新源列表
- sudo apt-get update更新源失败
- apt-get update 更新源Ubuntu 10.10
- ubuntu apt-get update 更新源失败总结
- ubuntu apt-get update 更新源失败的解决办法
- 关于Ubuntu 9.10 的apt-get update 一直无法更新源的点点滴滴
- Ubuntu 关于引起更新源索引(apt-get update)时Hash Sum mismatch的问题
- apt-get update更新源时,出现“Hash Sum mismatch”问题
- linux update更新源
- apt-get,apt-update
- Ubuntu更新源来获取apt-get包
- apt-get update 出错
- apt-get update sourcelist
- sudo apt-get update
- apt-get update errors
- sudo apt-get update
- 使用apt-get update
- apt-get update 失败
- Test
- http://www.soho-work.info/?2712.htm
- CWebBrowser2的用法
- 从solaris向linux移植应用程序的技术指导
- SAP ERP学习笔记 -- 采购
- apt-get update或aptitude update来更新源列表
- 压抑的生活
- quick reference for sed and awk
- bootLoader
- 最有可能被老板干掉的十类人
- 自动点击网页按钮
- 温度转换
- 为什么我找不到怎么才能拿到积分
- [转]前国美高管讲述:首富黄光裕的另一面