| @@ -0,0 +1,5 @@ | |||
| 1 | + | vi /etc/apt/sources.list | |
| 2 | + | ||
| 3 | + | apt clean | |
| 4 | + | rm -rf /var/lib/apt/lists/* | |
| 5 | + | apt update | |
timmy / 更新 Ubuntu 軟體源
Last active 1 week ago
此腳本用於更新 Ubuntu 的軟體源列表,清理舊的快取並添加新的軟體源以便於安裝和更新軟體包。
timmy revised this gist 2 years ago · 301b28a
No changes
timmy revised this gist 2 years ago · cbebfb1
2 files changed, 9 insertions
| @@ -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 | |