yum command not working in Fedora !
When I try to update software packages in my Fedora workstation I run this command
yum update and I get this error message : Traceback (most recent call last): File "/usr/bin/yum", line 57, in <module> from dnf.cli import main ImportError: No module named 'dnf' What's wrong ? |
that means - in general - dnf is not installed, so you need to [re]install it.
But dnf is used to be installed, so I think something went wrong on your linux. |
Quote:
|
yes, look for the official documentation: https://fedoraproject.org/wiki/DNF?rd=Dnf
|
Fedora 27 :
The update command is not really # yum update ... but # dnf update |
Quote:
Traceback (most recent call last): File "/usr/bin/dnf", line 57, in <module> from dnf.cli import main ImportError: No module named 'dnf' |
Quote:
You updated/moved/bothered python, so now things that depend on python aren't working. Since you don't say what you did, we can't tell you how to undo it. |
Quote:
845 yum install logwatch 846 vim /etc/logwatch/conf/logwatch.conf 847 yum install sysstat.x86_64 848 cat /etc/cron.d/0hourly 849 mail 850 sar -u | less 851 man sar 852 df 853 df -h 854 NetworkManager 855 cd /var/www/ 856 ls 857 cd /root/ 858 find /var/www -type f -exec grep /php/malware {} \; -print 859 man sed 860 help sed 861 sed --help 862 man sed 863 cat sitelistfile.txt | grep ‘clean clean’ | wc -l 864 ls 865 touch sitelistfile.txt 866 ls 867 gedit sitelistfile.txt 868 cat sitelistfile.txt | grep ‘clean clean’ | wc -l 869 cat sitelistfile.txt | grep 'clean clean' | wc -l 870 cat sitelistfile.txt | grep 'blacklisted blacklisted' | wc -l 871 cat sitelistfile.txt | grep 'blacklisted malwarefound ' | wc -l 872 cat sitelistfile.txt | grep 'blacklisted' | wc -l 873 cat sitelistfile.txt | grep 'malwarefound' | wc -l 874 cp /root/Documents/Commands/Shell_Script/automation /usr/local/bin/ 875 chmod 755 /usr/local/bin/automation 876 cd /root/Documents/Commands/Shell_Script/ 877 ls 878 ./automation 879 chmod 755 automation 880 ./automation 881 cp /root/sitelistfile.txt /root/Documents/Commands/Shell_Script/ 882 ./automation 883 rm /usr/local/bin/automation 884 ./automation 885 cp /root/Documents/Commands/Shell_Script/automation /usr/local/bin/ 886 cd /root 887 automation 888 cd /root/Documents/ 889 automation 890 cd /root/ 891 automation 892 rm /usr/local/bin/automation 893 automation 894 cp /root/Documents/Commands/Shell_Script/automation /usr/local/bin/ 895 automation 896 yum update 897 poweroff 898 history | grep /var/www 899 reboot 900 cd Documents/ 901 ls 902 cd Python/ 903 ls 904 python test.py 905 python hello.py 906 cd /root/ 907 ip addr show 908 yum install Scrapy 909 conda install -c conda-forge scrapy 910 cd /root/Documents/ 911 ls 912 cd Python/ 913 ls 914 scrapy startproject tutorial 915 ls 916 cd tutorial/ 917 ls 918 cd tutorial/ 919 ls 920 cd spiders/ 921 touch quotes_spider.py 922 gedit quotes_spider.py 923 ls 924 cd .. 925 ls 926 cd .. 927 ls 928 cd .. 929 cd tutorial/ 930 ls 931 scrapy crawl quotes 932 ls 933 scrapy shell 'http://quotes.toscrape.com/page/1/' 934 scrapy shell 'http://quotes.toscrape.com' 935 scrapy crawl quotes 936 cd /root/ 937 history 938 ip addr show 939 infconfig 940 fuck 941 ip addr show 942 ifconfig wlp3s0 943 route 944 Kernel IP routing table 945 poweroff 946 history 947 exit 948 fuck 949 exit 950 yum remove the_fuck 951 yum remove fuck 952 exit 953 history 954 yum remove thefuck 955 exit 956 poweroff 957 yum install fuck 958 yum install dnf 959 yum install thefuck 960 pip install thefuck 961 exit 962 yum update 963 yum install dnf -y 964 yum update 965 pip install yum 966 yum update 967 sudo dnf update 968 yum update 969 sudo yum install dnf 970 yum update 971 osinfo-db-path 972 os 973 uname -a 974 lsb_release 975 sudo find /etc | xargs grep -i fedora > searchFedora 976 cat /etc/issue 977 cat /etc/fedora-release 978 yum install dnf 979 rpm -Vv dnf-yum python3-dnf dnf-conf 980 yum update 981 rpm -qa | grep dnf 982 rpm -Vv dnf-yum python3-dnf dnf-conf 983 dnf update 984 traceroute google.com 985 traceroute cibc.com 986 traceroute cibc.com > cibc_route 987 ls 988 gedit cibc_route 989 rm cibc_route 990 traceroute google.co 991 hostname 992 dnsdomainname 993 man dnsdomainname 994 dnf update 995 exi 996 fuck 997 pip install dnf-yum 998 yum-deprecated 999 rpm -qa | egrep "^python3" | sed ':a;N;$!ba;s/\n/ /g' | xargs sudo yum-deprecated reinstall -y 1000 yum update 1001 yum-deprecated 1002 yum-deprecated reinstall "dnf*" 1003 yum clean all 1004 rpm -qa | egrep "^python3" | sed ':a;N;$!ba;s/\n/ /g' | xargs sudo yum-deprecated reinstall -y 1005 history |
Quote:
|
This is what I get :
rpm -qa | egrep "^python3" | sed ':a;N;$!ba;s/\n/ /g' | xargs sudo yum-deprecated reinstall -y File "/bin/yum-deprecated", line 36 except KeyboardInterrupt, e: ^ SyntaxError: invalid syntax |
Quote:
|
Quote:
When I run this command : rpm -qa | egrep python I got this message : python3-cairo-1.15.3-1.fc27.x86_64 python2-idna-2.5-2.fc27.noarch python3-inotify-0.9.6-9.fc27.noarch python-xpyb-1.3.1-9.fc27.x86_64 python-mako-1.0.6-4.fc27.noarch python2-gobject-3.26.1-1.fc27.x86_64 python3-caribou-0.4.21-5.fc27.noarch python3-crypto-2.6.1-22.fc27.x86_64 python3-colorama-0.3.7-6.fc27.noarch Where Python part is in orange colour. So does it mean they are not installed in the system ? right ? Now if I wish to install python3-cairo-1.15.3-1.fc27.x86_64 with rpm command how can I do that ? |
Quote:
Quote:
Quote:
|
Quote:
|
Quote:
So tell me why we shouldn't get frustrated at this behavior? |
All times are GMT -5. The time now is 02:48 PM. |