玩客云刷入armbian系统后安装cloudflared
玩客云刷入armbian系统后安装cloudflared默认无法安装,会出现如下错误:
Reading package lists... Done E: The repository 'http://deb.debian.org/debian bullseye-backports Release' no longer has a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. N: Repository 'http://security.debian.org bullseye-security InRelease' changed its 'Suite' value from 'oldstable-security' to 'oldoldstable-security' N: Repository 'http://deb.debian.org/debian bullseye InRelease' changed its 'Version' value from '11.9' to '11.11' N: Repository 'http://deb.debian.org/debian bullseye InRelease' changed its 'Suite' value from 'oldstable' to 'oldoldstable' N: Repository 'http://deb.debian.org/debian bullseye-updates InRelease' changed its 'Suite' value from 'oldstable-updates' to 'oldoldstable-updates'
解决办法:
删除 bullseye-backports(这是报错的根源)
sudo nano /etc/apt/sources.list
把 这一行删掉或注释掉:前面加#就可以注释掉了
deb http://deb.debian.org/debian bullseye-backports main contrib non-freer
然后重新执行
# Add cloudflare gpg key sudo mkdir -p --mode=0755 /usr/share/keyrings curl -fsSL https://pkg.cloudflare.com/cloudflare-public-v2.gpg | sudo tee /usr/share/keyrings/cloudflare-public-v2.gpg >/dev/null # Add this repo to your apt repositories echo 'deb [signed-by=/usr/share/keyrings/cloudflare-public-v2.gpg] https://pkg.cloudflare.com/cloudflared any main' | sudo tee /etc/apt/sources.list.d/cloudflared.list # install cloudflared sudo apt-get update && sudo apt-get install cloudflared