angristan / wireguard-install

WireGuard VPN installer for Linux servers
https://stanislas.blog/2019/01/how-to-setup-vpn-server-wireguard-nat-ipv6/
MIT License
7.96k stars 1.3k forks source link

Add support for Rocky linux distribution #253

Closed mlemiam closed 1 year ago

angristan commented 3 years ago

Doesn't work for me:

[root@scw-elastic-brahmagupta ~]# dnf install -y wireguard-dkms
Copr repo for wireguard owned by jdoss                                                                     13 kB/s | 3.3 kB     00:00
Error:
 Problem: conflicting requests
  - nothing provides dkms needed by wireguard-dkms-1:1.0.20210606-2.el8.noarch
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
mlemiam commented 3 years ago

Doesn't work for me:

[root@scw-elastic-brahmagupta ~]# dnf install -y wireguard-dkms
Copr repo for wireguard owned by jdoss                                                                     13 kB/s | 3.3 kB     00:00
Error:
 Problem: conflicting requests
  - nothing provides dkms needed by wireguard-dkms-1:1.0.20210606-2.el8.noarch
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

you need dkms to install wireguard if you have a lxc vps this is not possible you need a kvm vps

angristan commented 3 years ago

This was a KVM VM :)

mattvx commented 2 years ago

I've managed to run installation script on a rocky linux AWS EC2 istance with no problem at all. it works like a charm.

Rocky is bug to bug compatible with CentOS 8 so the script does the OS check without issues, as in rocky's /etc/ dir you have the "centos-release" file.

the only error that did absolutely not affect installation or performance was an error raised by line 147 on the installation script. Rocky version i tested was 8.4, and the error states:

"[[: 8.4: syntax error: invalid arithmetic operator (error token is ".4""

angristan commented 2 years ago

That would be this line:

elif [[ ${OS} == 'rocky' ]]; then
angristan commented 2 years ago

This PR still doesn't work for me:

+ dnf install -y wireguard-dkms
Copr repo for wireguard owned by jdoss                                                            12 kB/s | 3.3 kB     00:00
Error:
 Problem: conflicting requests
  - nothing provides dkms needed by wireguard-dkms-1:1.0.20210606-2.el8.noarch
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[root@scw-confident-shtern ~]# cat /etc/os-release
NAME="Rocky Linux"
VERSION="8.4 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel fedora"
VERSION_ID="8.4"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.4 (Green Obsidian)"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:rocky:rocky:8.4:GA"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
ROCKY_SUPPORT_PRODUCT="Rocky Linux"
ROCKY_SUPPORT_PRODUCT_VERSION="8"
mattvx commented 2 years ago

This PR still doesn't work for me:

+ dnf install -y wireguard-dkms
Copr repo for wireguard owned by jdoss                                                            12 kB/s | 3.3 kB     00:00
Error:
 Problem: conflicting requests
  - nothing provides dkms needed by wireguard-dkms-1:1.0.20210606-2.el8.noarch
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[root@scw-confident-shtern ~]# cat /etc/os-release
NAME="Rocky Linux"
VERSION="8.4 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel fedora"
VERSION_ID="8.4"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.4 (Green Obsidian)"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:rocky:rocky:8.4:GA"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
ROCKY_SUPPORT_PRODUCT="Rocky Linux"
ROCKY_SUPPORT_PRODUCT_VERSION="8"

@angristan Sorry! with the first comment i meant with your script: "angristan/wireguard-install", not this PR one.

Being Rocky 1:1 with CentOS, there is no need to add "rocky linux support" as is already supported by original release. I'm new here... apologize me! @

angristan commented 2 years ago

Oh, ok, I see. thanks