服务器安装Ubuntu的那些坑
2024-08-29 23:34:39
1. 虽然简体中文很亲切,但请选择English,否则极有可能安装途中报错
2. 安装完各种系统文件后,请注意选择启动Disk,一不小心跳过了貌似只好重装
3. 进入后无法使用apt-get,总提示需要cdrom请按以下步骤解决:
sudo vim /etc/apt/sources.list
注释掉cdrom,添加:deb http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
4. 更新源参考:http://wiki.ubuntu.org.cn/模板:16.04source
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ xenial-backports main restricted universe multiverse
5. 设置静态IP,注意设置DNS
sudo vim /etc/network/interfaces
auto enp2s0
iface enp2s0 inet static
address 192.168.10.225
netmask 255.255.255.0
gateway 192.168.10.1
dns-nameserver 223.5.5.5 223.6.6.6
最新文章
- 记一道有意思的算法题Rotate Image(旋转图像)
- class org.springframework.core.type.classreading.ClassMetadataReadingVisitor has interface org.springframework.asm.ClassVisitor as super class
- 编译php时的一个脚本
- 论APP测试中黑盒测试方案的重要性?
- DirectX中的纹理及其创建
- UITableview自定义accessory按钮和ImageView大小一致
- c#自动更新+安装程序的制作
- python pip升级失败
- 20162323周楠《Java程序设计与数据结构》第六周总结
- linux网络编程之二-----多播(组播)编程
- 物料REVISION控制
- MVC各层介绍使用---初步理解
- redis基础2
- WIN10下微信崩溃(已经是最新版)的解决方法
- Python记录14:面向对象编程 类和对象
- Mysql thread 与 OS thread
- Leetcode 1020. 将数组分成和相等的三个部分
- apt-get 使用指南
- eclipse启动genymotion插件reg启动visual box 虚拟机
- 机器学习-数据可视化神器matplotlib学习之路(一)