thufir@dur:~$
thufir@dur:~$ sudo apt-get update
Hit:1 http://old-releases.ubuntu.com/ubuntu cosmic InRelease
Reading package lists... Done
thufir@dur:~$
thufir@dur:~$ apt-cache search alpine
nano - small, friendly text editor inspired by Pico
thufir@dur:~$
thufir@dur:~$ head -n 1 /etc/apt/sources.list
deb http://old-releases.ubuntu.com/ubuntu cosmic main
thufir@dur:~$
thufir@dur:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.10
Release: 18.10
Codename: cosmic
thufir@dur:~$
我是丢失的repo?假设是这样,只需添加什么即可安装 alpine?
答案1
使用 18.04 sources.list:
sudo mv /etc/apt/sources.list /home/user/sources.list.bk
sudo vi /etc/apt/sources.list
将存储库粘贴到其中:
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ bionic universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
然后更新软件包并安装 alpine:
sudo apt update && sudo apt install alpine
Alpine 已安装并正确启动:
$ alpine
Creating subdirectory "/home/spacer/mail" where Alpine will store
its mail folders.
Alpine finished -- Closed empty folder "INBOX"
user@ubuntu18:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.10
DISTRIB_CODENAME=cosmic
DISTRIB_DESCRIPTION="Ubuntu 18.10"
此外,正如 FedonKadifeli 在评论中所建议的那样,你可以做下一步:
如果您想继续使用过时的版本,请 编辑
/etc/apt/sources.list
并archive.ubuntu.com
更改security.ubuntu.com
old-releases.ubuntu.com
但事实上它对我来说并不起作用。