debian 无法使用apt-get解决办法
2014-03-20 14:15
1526 查看
刚装完debian,发现直接apt-get是用不了的,系统会提示你插入DVD,其实是源的配置问题,只需要在apt的源里面修改下配置就可以了。
打开apt源文件
修改后的代码为
保存退出,执行更新命令
打开apt源文件
sudo vi /etc/apt/sources.list加入代码
deb http://http.us.debian.org/debian/ stable main同时把deb cdrom:[Debian GNU/Linux 7.4.0 _Wheezy_ - Official i386 DVD Binary-1 20 140208-12:26]/ wheezy contrib main注释掉
修改后的代码为
# # deb cdrom:[Debian GNU/Linux 7.4.0 _Wheezy_ - Official i386 DVD Binary-1 20 140208-12:26]/ wheezy contrib main # deb cdrom:[Debian GNU/Linux 7.4.0 _Wheezy_ - Official i386 DVD Binary-1 20 140208-12:26]/ wheezy contrib main deb http://security.debian.org/ wheezy/updates main contrib deb-src http://security.debian.org/ wheezy/updates main contrib deb http://http.us.debian.org/debian/ stable main # wheezy-updates, previously known as 'volatile' # A network mirror was not selected during install. The following entries # are provided as examples, but you should amend them as 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
保存退出,执行更新命令
sudo apt-get update更新完后就可以使用apt-get来安装软件了
相关文章推荐
- debian下误删除“/var/lib/dpkg/status”后apt-get无法使用的解决办法
- 使用 apt-get 的時候,出现目录或者被锁住的解决办法(E: 无法获得锁 /var/lib/dpkg/lock - open (11: 资源临时不可用) E: 无法对管理目录(/var/lib/dpkg/)加锁,是不是另一个包管理)
- Ubuntu中apt-get 安装失败,导致无法安装其他软件的解决办法。
- ubuntu 11.04使用apt-get安装软件时一直提示E:unable to locate package的解决办法
- Ubuntu/Debian下 apt-get command not found 命令无法找到的解决方法
- Debian 中使用apt-get update 出现NO_PUBKEY 解决方法
- ubuntu16.04使用sudo apt-get autoremove导致系统崩溃的解决办法
- 使用apt安装pip时无法打开锁文件的解决办法
- debian使用apt安装时出现“更换介质,插入驱动器"/media/chrom/"再按回车键”的提示,无法从网络安装,解决?
- 在使用apt-get出现如下错误解决办法
- apt-get update 提示没有公钥,无法验证签名的解决办法
- Linux旧版本无法apt-get安装软件问题解决办法
- ubuntu中apt-get install 无法使用的解决办法
- debian 6.0 默认安装后,无法使用sftp的解决办法
- 编译使用 libmp4v2库 libmp4v2.lib(atom_tkhd.obj) : error LNK2001: 无法解析的外部符号 _gettimeofday 错误解决办法.
- ubuntu 使用apt-get install sqlite3 出现问题的解决办法
- ubuntu 使用sudo apt-get update 出现 被配置多次导致无法升级错误解决方法
- PHP无法使用file_get_contents或者curl_init()函数解决办法
- apt-get 错误“无法获得锁 /var/lib/dpkg/lock...” 解决办法