Currently I’m using Linux Mint 21 Cinnamon.
And I need to downgrade my openvpn version from currently installed version 2.5.9 to 2.4.7.
I need to downgrade it because version 2.5.9 not works with my linux.
To do it I need to first remove openssl-3.0 package and then install openvpn 2.4.7.
But when I try to remove openssl:
➜ ~ sudo apt-get remove openssl
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mintsources : Depends: python3-requests but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
➜
But when I try to list held items by command:
apt-mark showhold
There is nothing.
I tried install or remove this package python3-requests but the result was the same.
When I try to install openvpn in version 2.4.7 then I have error:
Making install in openvpn
make[3]: Entering directory '/home/dominik/Downloads/openvpn-2.4.7/src/openvpn'
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../../src/compat -DPLUGIN_LIBDIR="/usr/local/lib/openvpn/plugins" -Wall -Wno-unused-parameter -Wno-unused-function -g -O2 -std=c99 -MT crypto_openssl.o -MD -MP -MF .deps/crypto_openssl.Tpo -c -o crypto_openssl.o crypto_openssl.c
In file included from crypto_openssl.c:44:
openssl_compat.h:269:1: error: static declaration of ‘EVP_PKEY_id’ follows non-static declaration
269 | EVP_PKEY_id(const EVP_PKEY *pkey)
| ^~~~~~~~~~~
In file included from crypto_openssl.h:32,
from crypto_backend.h:33,
from crypto.h:128,
from crypto_openssl.c:42:
/usr/local/include/openssl/evp.h:992:5: note: previous declaration of ‘EVP_PKEY_id’ with type ‘int(const EVP_PKEY *)’ {aka ‘int(const struct evp_pkey_st *)’}
992 | int EVP_PKEY_id(const EVP_PKEY *pkey);
| ^~~~~~~~~~~
How to fix error that not let me remove current openssl package?
Thank you.