How do I deal with this problem?
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2019
    Location
    Seoul
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    DNF Error on dnf upgrade to Fedora 31

    To upgrade to fedora 31, in a while after executing command
    Code:
    **dnf update**
    ,

    I met power loss. After rebooting, I tried
    Code:
    **dnf update**
    again.

    there come out "dnf error" with this message as below:

    Code:
    > Traceback (most recent call last):   File
    > "/usr/lib64/python3.7/site-packages/libdnf/conf.py", line 14, in
    > swig_import_helper
    >     return importlib.import_module(mname)   File "/usr/lib64/python3.7/importlib/__init__.py", line 127, in
    > import_module
    >     return _bootstrap._gcd_import(name[level:], package, level)   File "<frozen importlib._bootstrap>", line 1006, in _gcd_import   File
    > "<frozen importlib._bootstrap>", line 983, in _find_and_load   File
    > "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked 
    > File "<frozen importlib._bootstrap>", line 670, in _load_unlocked  
    > File "<frozen importlib._bootstrap>", line 583, in module_from_spec  
    > File "<frozen importlib._bootstrap_external>", line 1043, in
    > create_module   File "<frozen importlib._bootstrap>", line 219, in
    > _call_with_frames_removed ImportError: /lib64/libglib-2.0.so.0: file too short
    > 
    > During handling of the above exception, another exception occurred:
    > 
    > Traceback (most recent call last):   File "/usr/bin/dnf", line 57, in
    > <module>
    >     from dnf.cli import main   File "/usr/lib/python3.7/site-packages/dnf/__init__.py", line 30, in
    > <module>
    >     import dnf.base   File "/usr/lib/python3.7/site-packages/dnf/base.py", line 29, in <module>
    >     import libdnf.transaction   File "/usr/lib64/python3.7/site-packages/libdnf/__init__.py", line 4, in
    > <module>
    >     from . import conf   File "/usr/lib64/python3.7/site-packages/libdnf/conf.py", line 17, in
    > <module>
    >     _conf = swig_import_helper()   File "/usr/lib64/python3.7/site-packages/libdnf/conf.py", line 16, in
    > swig_import_helper
    >     return importlib.import_module('_conf')   File "/usr/lib64/python3.7/importlib/__init__.py", line 127, in
    > import_module
    >     return _bootstrap._gcd_import(name[level:], package, level) ModuleNotFoundError: No module named '_conf'
    
    even i couldn't get internet connection...ping test failed.
    
    HOW do I get "internet connection" & "dnf installation"?
    Last edited by zethro67; 16th August 2019 at 05:51 PM. Reason: immature writing

  2. #2
    Join Date
    Jul 2004
    Location
    Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
    Age
    74
    Posts
    23,804
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I deal with this problem?

    moved to Rawhide. F31 has not reached branching yet.
    Linux & Beer - That TOTALLY Computes!
    Registered Linux User #362651


    Don't use any of my solutions on working computers or near small children.

  3. #3
    Join Date
    Jul 2004
    Location
    Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
    Age
    74
    Posts
    23,804
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I deal with this problem?

    ...and now F31's been branched, so you get Premiere Spot in F31 Development Forum and hopefully a fix!
    Linux & Beer - That TOTALLY Computes!
    Registered Linux User #362651


    Don't use any of my solutions on working computers or near small children.

  4. #4
    Join Date
    Feb 2019
    Location
    Seoul
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: DNF Error on dnf upgrade to Fedora 31

    I fix the problem by manually modifying dnf with rpm installation.

    first,
    # dnf provides libglib-2.0.so.0
    glib2-2.60.1-2.fc30.i686 : A library of handy utility functions
    Repo : fedora
    Matched from:
    Provide : libglib-2.0.so.0

    glib2-2.60.6-1.fc30.i686 : A library of handy utility functions
    Repo : updates
    Matched from:
    Provide : libglib-2.0.so.0
    then,installed glib2-2.60.1-2.fc30.i686 from the ropos
    and dnf with alldependancies manually...with rpm install from http://download~/dnf-~.rpm
    means;
    rpm installation with url from http://repository
    finally, ended with dnf update..
    That's what I done. thanks.

  5. #5
    Join Date
    Feb 2019
    Location
    Seoul
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: DNF Error on dnf upgrade to Fedora 31

    Ahem....
    ㅠ.ㅠ;
    I made the same mistake. Again, I need install glib2 . At this time, I wanna install it with shell script.
    Any Idea(hint) about it?

  6. #6
    Join Date
    Jun 2005
    Location
    Montreal, Que, Canada
    Posts
    6,169
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I deal with this problem?

    The beta repros for Fedora 31 are due August 27, in 4 days, from today. Try your stuff then.
    Leslie in Montreal

    Interesting web sites list
    http://forums.fedoraforum.org/showth...40#post1697840

Similar Threads

  1. what's the deal with OpenGL in F14
    By HMSS013 in forum Using Fedora
    Replies: 6
    Last Post: 8th December 2010, 08:38 AM
  2. How do I deal with this ?
    By saywot in forum Fedora Focus
    Replies: 5
    Last Post: 8th February 2009, 01:38 AM
  3. Ok, so here's the deal!
    By gourlema in forum Using Fedora
    Replies: 14
    Last Post: 23rd February 2008, 12:59 AM
  4. Is this a big Deal?
    By ziro_axis in forum Using Fedora
    Replies: 11
    Last Post: 26th June 2005, 11:20 AM
  5. Is this a big Deal?
    By ziro_axis in forum Guides & Solutions (Not For Questions)
    Replies: 3
    Last Post: 25th June 2005, 11:58 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •