Find the answer to your Linux question:
Results 1 to 5 of 5
I was in the middle of installing SELinux, I got to the point where you do a full system update to rebuild changes into the system by running: Code: emerge ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2011
    Posts
    67

    [SOLVED] emerge fetch failed for 'sys-libs/db-4.8.30'


    I was in the middle of installing SELinux, I got to the point where you do a full system update to rebuild changes into the system by running:
    Code:
    emerge -uDN world
    The problem starts when someone destroyed a transformer down the road in the middle of my compile. (when the transformer went down the power was temporarily cut, forcing my box to do a hard stop) And so I think it has to do with SELinux being half way installed.
    Anyways this is what the output looks like:
    Code:
    >>> Emerging (1 of 100) sys-libs/db-4.8.30
    Traceback (most recent call last):
      File "/usr/lib64/portage/pym/_emerge/EbuildFetcher.py", line 113, in _spawn
        allow_missing_digests=False):
      File "/usr/lib64/portage/pym/portage/package/ebuild/fetch.py", line 489, in fetch
        if _userpriv_test_write_file(mysettings, write_test_file):
      File "/usr/lib64/portage/pym/portage/package/ebuild/fetch.py", line 122, in _userpriv_test_write_file
        returncode = _spawn_fetch(settings, args)
      File "/usr/lib64/portage/pym/portage/package/ebuild/fetch.py", line 90, in _spawn_fetch
        rval = spawn_func(args, env=settings.environ(), **kwargs)
      File "/usr/lib64/portage/pym/portage/_selinux.py", line 105, in wrapper_func
        setexec(con)
      File "/usr/lib64/portage/pym/portage/_selinux.py", line 79, in setexec
        if selinux.setexeccon(ctx) < 0:
    OSError: [Errno 22] Invalid argument
     * Fetch failed for 'sys-libs/db-4.8.30', Log file:
     *  '/var/tmp/portage/sys-libs/db-4.8.30/temp/build.log'
    
    >>> Failed to emerge sys-libs/db-4.8.30, Log file:
    
    >>>  '/var/tmp/portage/sys-libs/db-4.8.30/temp/build.log'
    
     * Messages for package sys-libs/db-4.8.30:
    
     * Fetch failed for 'sys-libs/db-4.8.30', Log file:
     *  '/var/tmp/portage/sys-libs/db-4.8.30/temp/build.log'

  2. #2
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Anything useful in
    Code:
    /var/tmp/portage/sys-libs/db-4.8.30/temp/build.log
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  3. #3
    Just Joined!
    Join Date
    Mar 2011
    Posts
    67
    Quote Originally Posted by MikeTbob View Post
    Anything useful in
    Code:
    /var/tmp/portage/sys-libs/db-4.8.30/temp/build.log
    It is just the same error message that I posted.

  4. #4
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Check this link, it may help.
    Gentoo Forums :: View topic - can't emerge anything OSError [Errno 22]
    I'm thinking the problem isn't with db-4.8. but rather portage or something else.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  5. #5
    Just Joined!
    Join Date
    Mar 2011
    Posts
    67
    Quote Originally Posted by MikeTbob View Post
    I'm thinking the problem isn't with db-4.8. but rather portage or something else.
    Thanks. (^_^)
    I ended up booting into single user mode changing up my USE flags and go rid of the half installed SELinux which turned out to be the problem. So now I can start over (and hopefully the power won't cut halfway through this time!)

Posting Permissions

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