问题解决:
dnf may have problems if you are using some proxy configurations.
So if you are using, edit the file /etc/dnf/dnf.conf. Add the follow lines: proxy=http://192.168.0.1:8080 proxy_username=proxy.user proxy_password=myproxypassword
If you are using a specific proxy, just add the follow line with you proxy adress and port: proxy=http://{adress}:{port}
After this try to run some dnf install/search command. For example: dnf install nano
dnf may have problems if you are using some proxy configurations.
So if you are using, edit the file /etc/dnf/dnf.conf. Add the follow lines: proxy=http://192.168.0.1:8080 proxy_username=proxy.user proxy_password=myproxypassword
If you are using a specific proxy, just add the follow line with you proxy adress and port: proxy=http://{adress}:{port}
After this try to run some dnf install/search command. For example: dnf install nano