陈晓猫

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: :: 管理 ::
  364 随笔 :: 0 文章 :: 130 评论 :: 126万 阅读
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

ubuntu通过MobaXterm或者xshell连接更换源
1、在ubuntu服务器上面运行sudo passwd root,输入密码,然后su root可以切换到root用户。
2、在windows客户端上面安装xshell或者MobaXterm,连接上ubuntu服务器。
MobaXterm21.2.zip - 蓝奏云 https://lanxh.lanzoup.com/igNLYy3111a
3、通过windows上面的MobaXterm或者xshell换源:
(7条消息) Ubuntu快速更换源_Lanyan9的博客-CSDN博客_ubuntu更换源 https://blog.csdn.net/Lanyan9/article/details/125493390
输入lsb_release -a查勘车Ubuntu代号名称是jammy
输入以下命令备份源列表;
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
再输入命令打开sources.list文件进行修改;
sudo vim /etc/apt/sources.list
按ESC→gg→dG清空所有内容。
按ESC+i进入编辑模式,右击鼠标,粘贴
deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
按ESC→:x保存退出。
更新源列表
输入sudo apt-get update命令更新源列表。

 

 

posted on   陈晓猫  阅读(465)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 2025年我用 Compose 写了一个 Todo App
· 张高兴的大模型开发实战:(一)使用 Selenium 进行网页爬虫
历史上的今天:
2018-10-09 WinHTTrack Website Copier使用说明
点击右上角即可分享
微信分享提示