PCHIFI.ORG

 找回密码
 立即注册
搜索
查看: 3862|回复: 1

在单硬盘上安装WIN10和Ubuntu 20.04 Server双系统

[复制链接]

82

主题

192

帖子

751

积分

高级会员

Rank: 4

积分
751
发表于 2023-9-4 16:37:03 | 显示全部楼层 |阅读模式
用Rufus在MBR模式将Ubuntu-20.04.2-live-server镜像写入U盘,插好网线,启动电脑。先安装WIN10,空出30G以上空间只分区后不格式化不分配盘符。
安装好WIN10后,安装Ubuntu-20.04.2-live-server,在选择安装盘时千万不要选全全盘安装,选择空余出来的上述30G空间,编辑,选择格式化为ext4格式并挂载到/
选择安装OPENSSH及安全更新
安装完毕重启
注意不要安装 net-tools,已淘汰,ifconfig也不要用了。

更改源为中科大镜像
sudo sed -i 's@//.*archive.ubuntu.com@//mirrors.ustc.edu.cn@g' /etc/apt/sources.list

更新后的源为:
sudo nano /etc/apt/sources.list
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://mirrors.ustc.edu.cn/ubuntu focal main restricted
# deb-src http://mirrors.ustc.edu.cn/ubuntu focal main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://mirrors.ustc.edu.cn/ubuntu focal-updates main restricted
# deb-src http://mirrors.ustc.edu.cn/ubuntu focal-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://mirrors.ustc.edu.cn/ubuntu focal universe
# deb-src http://mirrors.ustc.edu.cn/ubuntu focal universe
deb http://mirrors.ustc.edu.cn/ubuntu focal-updates universe
# deb-src http://mirrors.ustc.edu.cn/ubuntu focal-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://mirrors.ustc.edu.cn/ubuntu focal multiverse
# deb-src http://mirrors.ustc.edu.cn/ubuntu focal multiverse
deb http://mirrors.ustc.edu.cn/ubuntu focal-updates multiverse
# deb-src http://mirrors.ustc.edu.cn/ubuntu focal-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://mirrors.ustc.edu.cn/ubuntu focal-backports main restricted universe multiverse
# deb-src http://mirrors.ustc.edu.cn/ubuntu focal-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu focal partner
# deb-src http://archive.canonical.com/ubuntu focal partner

deb http://mirrors.ustc.edu.cn/ubuntu focal-security main restricted
# deb-src http://mirrors.ustc.edu.cn/ubuntu focal-security main restricted
deb http://mirrors.ustc.edu.cn/ubuntu focal-security universe
# deb-src http://mirrors.ustc.edu.cn/ubuntu focal-security universe
deb http://mirrors.ustc.edu.cn/ubuntu focal-security multiverse

更新
sudo apt-get -y update
sudo apt-get -y dist-upgrade
sudo reboot

回复

使用道具 举报

82

主题

192

帖子

751

积分

高级会员

Rank: 4

积分
751
 楼主| 发表于 2023-9-4 16:40:06 | 显示全部楼层
如果重装Ubuntu的话,要先删除Ubuntu的启动项,并且把该盘格式化为NTFS后删除再建立分区,这样安装不容易出错。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|PCHIFI.ORG

GMT+8, 2026-5-31 07:58 , Processed in 0.041251 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表