最后活跃于 6 months ago

此腳本用於更新 Ubuntu 的軟體源列表,清理舊的快取並添加新的軟體源以便於安裝和更新軟體包。

timmy 修订了这个 Gist 6 months ago. 转到此修订

没有任何变更

timmy 修订了这个 Gist 6 months ago. 转到此修订

2 files changed, 9 insertions

apt_sources_update.sh(文件已创建)

@@ -0,0 +1,5 @@
1 + vi /etc/apt/sources.list
2 +
3 + apt clean
4 + rm -rf /var/lib/apt/lists/*
5 + apt update

sources.list(文件已创建)

@@ -0,0 +1,4 @@
1 + deb http://tw.archive.ubuntu.com/ubuntu/ noble main restricted universe multiverse
2 + deb http://tw.archive.ubuntu.com/ubuntu/ noble-updates main restricted universe multiverse
3 + deb http://tw.archive.ubuntu.com/ubuntu/ noble-security main restricted universe multiverse
4 + deb http://tw.archive.ubuntu.com/ubuntu/ noble-backports main restricted universe multiverse
上一页 下一页