Apt-get 如何在Ubuntu/Debian上正常工作
2015-10-26 16:22
381 查看
1. 为避免80:80错误,编辑文件 ‘/root/.bashrc’, 并设置如下。
### set http proxy variables
export http_proxy="http://itgproxy.redmond.corp.microsoft.com:80"
export https_proxy="https://itgproxy.redmond.corp.microsoft.com:80"
2. 将 ‘/etc/apt/sources.list’ 配置如下:
# deb cdrom:[Debian GNU/Linux 7.0.0 _Wheezy_ -Official amd64 DVD Binary-1 20130504-14:44]/ wheezy contrib main
deb
http://ftp.us.debian.org/debian/
wheezy main
deb-src
http://ftp.us.debian.org/debian/ wheezy main
deb
http://security.debian.org/ wheezy/updates main contrib
deb-src
http://security.debian.org/ wheezy/updates main contrib
# wheezy-updates, previously known as 'volatile'
# A network mirror was not selected duringinstall.
The following entries
# are provided as examples, but you should amend themas appropriate
# for your mirror of choice.
deb
http://ftp.debian.org/debian/ wheezy-updates main contrib
deb-src
http://ftp.debian.org/debian/ wheezy-updates main contrib
注:wheezy
[Debain 7], [Debain 6] squeeze,[Debian 8]
jessie.
3. Reboot
4. 更新资源库
apt-get update
5. 此命令生效。
apt-get install xxxx
### set http proxy variables
export http_proxy="http://itgproxy.redmond.corp.microsoft.com:80"
export https_proxy="https://itgproxy.redmond.corp.microsoft.com:80"
2. 将 ‘/etc/apt/sources.list’ 配置如下:
# deb cdrom:[Debian GNU/Linux 7.0.0 _Wheezy_ -Official amd64 DVD Binary-1 20130504-14:44]/ wheezy contrib main
deb
http://ftp.us.debian.org/debian/
wheezy main
deb-src
http://ftp.us.debian.org/debian/ wheezy main
deb
http://security.debian.org/ wheezy/updates main contrib
deb-src
http://security.debian.org/ wheezy/updates main contrib
# wheezy-updates, previously known as 'volatile'
# A network mirror was not selected duringinstall.
The following entries
# are provided as examples, but you should amend themas appropriate
# for your mirror of choice.
deb
http://ftp.debian.org/debian/ wheezy-updates main contrib
deb-src
http://ftp.debian.org/debian/ wheezy-updates main contrib
注:wheezy
[Debain 7], [Debain 6] squeeze,[Debian 8]
jessie.
3. Reboot
4. 更新资源库
apt-get update
5. 此命令生效。
apt-get install xxxx
相关文章推荐
- 例说javascript作用域
- PB取网页内容的方法
- Java代码优化(转)
- AndroidStudio1.4 manifest 中注册Activity时的错误提示解决办法
- css tricks
- 3 :面向对象初级
- 建立链串的算法库
- 【POI1999】【BZOJ2936】降 水
- Mac OS X 下部分Android手机无法连接adb问题之解决方案
- ofbiz--操作数据库
- 51服务的开启方式
- MySql的存储过程和触发器
- LNK2005 连接错误解决办法
- 学习日志---linuxの 源码编译使用及实例运行
- Python 机器学习——线性代数和矩阵运算:从matlab迁移到python
- Servlet之读取资源文件
- 第8周项目1建立顺序串的算法库
- linux系统中cut sort tee 和uniq命令的使用
- pomelo命令行详解
- 第九周 数组与广义表 项目1 -- 猴子选大王(数组版)