博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
debian源配置
阅读量:2355 次
发布时间:2019-05-10

本文共 1519 字,大约阅读时间需要 5 分钟。

说明:在没有接入网络的情况下,采用最小话方式安装debian,默认是没有配置apt-get源、没有安装远程管理服务SSH的,这个时候是无法使用apt-get install 在线安装软件的,也无法使用putty等远程管理客户端连接服务器,下面教大家配置apt-get源,在线安装SSH服

1、配置apt-get源

cp /etc/apt/sources.list /etc/apt/sources.listbak #备份原有配置文件

nano /etc/apt/sources.list #编辑

注释掉本地光盘源这一行:

deb cdrom:[Debian GNU/Linux 6.0.4 _Squeeze_ - Official i386 DVD Binary-1 20120128-12:53]/ squeeze contrib main

取消下面两行官方源前面的注释,添加以下代码:

deb http://mirrors.163.com/debian/ squeeze main non-free contrib 

deb http://mirrors.163.com/debian/ squeeze-proposed-updates main contrib non-free 

deb http://mirrors.163.com/debian-security/ squeeze/updates main contrib non-free 

deb-src http://mirrors.163.com/debian/ squeeze main non-free contrib 

deb-src http://mirrors.163.com/debian/ squeeze-proposed-updates main contrib non-free 

deb-src http://mirrors.163.com/debian-security/ squeeze/updates main contrib non-free 

deb http://ftp.sjtu.edu.cn/debian/ squeeze main non-free contrib 

deb http://ftp.sjtu.edu.cn/debian/ squeeze-proposed-updates main contrib non-free 

deb http://ftp.sjtu.edu.cn/debian-security/ squeeze/updates main contrib non-free 

deb-src http://ftp.sjtu.edu.cn/debian/ squeeze main non-free contrib 

deb-src http://ftp.sjtu.edu.cn/debian/ squeeze-proposed-updates main contrib non-free 

deb-src http://ftp.sjtu.edu.cn/debian-security/ squeeze/updates main contrib non-free

ctrl+o #保存配置

ctrl+x #退出

apt-get update #更新源

apt-get upgrade #更新系统

2、安装SSH服务

apt-get install ssh #安装ssh服务

至此,Debian配置apt-get源安装SSH服务教程完成,现在可以使用apt-get install安装软件、使用putty远程连接服务器了。

文章来源:

转载地址:http://osztb.baihongyu.com/

你可能感兴趣的文章
iOS UICollectionView 和 UITableView cell更新 详解
查看>>
iOS UINavigationController 详解
查看>>
iOS UIViewController 和 xib 绑定 详解
查看>>
Hue 安装部署 详解
查看>>
Linux 安装Scala 详解
查看>>
MySQL 分支版本对比 详解
查看>>
MyCat 注解 详解
查看>>
MySQL 循环方法 while loop repeat 详解
查看>>
Java 创建对象以及类加载 详解
查看>>
JavaScript 闭包 详解
查看>>
Oracle 基础知识 详解
查看>>
JVM 命令参数 详解
查看>>
Java 产生随机数 详解
查看>>
Linux 后台执行命令 详解
查看>>
SpringBoot @ConfigurationProperties参数绑定 详解
查看>>
Nginx+Lua 开发的 hello world 案例 详解
查看>>
OpenResty 基础知识 和 Linux部署 详解
查看>>
图的一些算法题
查看>>
图的一些算法题2
查看>>
git merge 之后文件被删除
查看>>