Last update at :2024-03-19,Edit by888u
Today, this site bought a Linode VPS. The system selected is the latest CentOS 8. When modifying the default port 22, I found that Linode enabled SELinux by default. When installing semanage to open a new SSH port, Unable to install was returned. Policycoreutils-python errors, this article shares the error causes and solutions.
1. Tutorials related to modifying the SSH port
Because many VPS merchants use port 22 by default, your VPS may be violently cracked by scripts to log in via SSH. Previously, this site has shared how to modify the default port 22 for VPS. Please refer to the detailed steps and tutorials. :
- "How to modify the default SSH port 22 in Linux and specify the SSH port"
For CentOS systems, some systems provided by merchants will enable Firewalld or SELinux firewall by default, so after modifying the SSH port, we also need to configure the firewall and open the designated port. Detailed tutorial:
- "CentOS7 modifies the SSH port, you need to set up the firewall Firewalld and SELinux to release the new port"
Today when we modified port 22 on Linode VPS, we found that Linode enabled SELinux by default. However, when installing semanage, an error of Unable to install policycoreutils-python was returned. Detailed error message: < /p>
No match for argument: policycoreutils-python Error: Unable to find a match: policycoreutils-python
As shown below:
2. Solution to installation failure
After checking the relevant information, I found that this package has been renamed on CentOS8:
It’s renamed in el8: policycoreutils-python-utils-2.9-9.el8.noarch
So use the command yum -y install policycoreutils-python-utils to successfully install semanage:
After that, just check the SSH port and add the SSH port just like CentOS 7.
Recommended site searches: free domain names, free IP agents, space rental foreign trade space, ICP registration number, registration network, Hong Kong vps, high-defense US servers, space service providers, US host reviews,
发表评论