데비안에서는 wireguard를 설치할 수 없습니다

데비안에서는 wireguard를 설치할 수 없습니다

나는 마지막 데비안 버전을 가지고 있고 wg를 설치하려고 여러 번 시도했지만 성공하지 못했습니다. 터미널의 명령줄은 다음과 같습니다.

: ~ / Downloads $ sudo apt install wireguard
Reading Package Lists ... Done
Building the dependency tree
Reading status information ... Done
E: Cannot find the wireguard package
james @ ninja: ~ / Downloads $ cd
james @ ninja: ~ $ sudo dpkg --force-all -i wireguard
dpkg: error: cannot access archive 'wireguard': No file or folder of this type
james @ ninja: ~ $ apt update
Reading Package Lists ... Done
E: Unable to open lock file / var / lib / apt / lists / lock - open (13: Permission not granted)
E: Unable to lock directory / var / lib / apt / lists /
W: Problem with removing link /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission not granted)
W: Problem with removing link /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission not granted)
james @ ninja: ~ $ apt install wireguard-dkms wireguard-tools
E: Unable to open lock file / var / lib / dpkg / lock-frontend - open (13: Permission not granted)
E: Failed to get dpkg lock (/ var / lib / dpkg / lock-frontend). Do you have superuser rights?
james @ ninja: ~ $ su
Password :
root @ ninja: / home / james # apt update
Achieved: 1 http://security.debian.org/debian-security buster / updates InRelease
Reached: 2 http://debian.mirror.iweb.ca/debian buster InRelease
Achieved: 3 http://debian.mirror.iweb.ca/debian buster-updates InRelease
Reached: 4 https://dl.winehq.org/wine-builds/debian buster InRelease
Reached: 5 http://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10 ./ InRelease
Reading Package Lists ... Done
Building the dependency tree
Reading status information ... Done
All packages are up to date.
root @ ninja: / home / james # apt install wireguard-dkms wireguard-tools
Reading Package Lists ... Done
Building the dependency tree
Reading status information ... Done
E: Could not find wireguard-dkms package
E: Cannot find wireguard-tools package

답변1

Buster 백포트에서 사용 가능한 패키지:

echo "deb http://deb.debian.org/debian/ buster-backports main " | \
sudo tee /etc/apt/sources.list.d/buster-backports.list
sudo apt update
sudo apt install -t buster-backports wireguard-dkms wireguard-tools

관련 정보