FedoraForum.org - Fedora Support Forums and Community
Results 1 to 10 of 10
  1. #1
    Join Date
    Sep 2016
    Location
    Kiyv
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question dnf nodejs update fail

    Hello! I use fedora 24
    when i run:
    $ sudo dnf update

    i have error with update nodejs-1:4.5.0-1.fc24.x86_64

    Code:
    Error unpacking rpm package nodejs-1:4.5.0-1.fc24.x86_64
    Code:
    error: unpacking of archive failed on file /usr/lib/node_modules/npm/doc: cpio: rename
    I don't know how resolve this error, can you helps me?

  2. #2
    Join Date
    Oct 2011
    Posts
    1,917
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: dnf nodejs update fail

    Can you give the output of command:
    Code:
    $ file /usr/lib/node_modules/npm/doc
    Where did you get that packages from and did you have nodejs installed before, if so from where?

  3. #3
    Join Date
    Aug 2009
    Posts
    11,390
    Mentioned
    98 Post(s)
    Tagged
    0 Thread(s)

    Re: dnf nodejs update fail

    Might be an issue of a package setting the immutable flag on a file. I have seen several issues where the immutable bit was set and it caused this same error when the package tried to update.

    You might try setting it's immutable bit off and see if you can update it then.

    Code:
    chattr -i /usr/lib/node_modules/npm/doc

  4. #4
    Join Date
    Sep 2016
    Location
    Kiyv
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: dnf nodejs update fail

    i make
    Code:
    chattr -i /usr/lib/node_modules/npm/doc
    But it`s not helps for me, when i do
    Code:
    dnf upgrade
    I've got same error((

    ---------- Post added at 11:06 AM ---------- Previous post was at 11:02 AM ----------

    Quote Originally Posted by semiRocket
    Can you give the output of command:
    Code:
    $ file /usr/lib/node_modules/npm/doc
    Where did you get that packages from and did you have nodejs installed before, if so from where?
    Code:
    file /usr/lib/node_modules/npm/doc
    /usr/lib/node_modules/npm/doc: directory
    I do not remember where I got nodejs, but I am guessing that i use "dnf" for get it.

  5. #5
    Join Date
    Oct 2011
    Posts
    1,917
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: dnf nodejs update fail

    Ok, new set of command so that I figure out what is going on.

    Code:
    $ sudo dnf list nodejs
    $ sudo dnf repolist
    $ rpm -qi nodejs

  6. #6
    Join Date
    Sep 2016
    Location
    Kiyv
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: dnf nodejs update fail

    Quote Originally Posted by semiRocket
    Ok, new set of command so that I figure out what is going on.

    Code:
    $ sudo dnf list nodejs
    $ sudo dnf repolist
    $ rpm -qi nodejs
    Code:
    sudo dnf list nodejs
    result
    Code:
    Last check expiration metadata steps: 9:54:14 ago, Sun Sep 18 00:02:43 2016.
    Installed Packages
    nodejs.x86_64                      1:4.4.7-2.fc24                       @updates
    Available packages
    nodejs.i686                           1:4.5.0-1.fc24                       updates 
    nodejs.x86_64                      1:4.5.0-1.fc24                        updates
    Code:
    sudo dnf repolist
    result
    Code:
    Repository identifier repository                                  state
    Dropbox                   Dropbox Repository                                4
    *fedora                   Fedora 24 - x86_64                           49*722
    fedora-cisco-openh264     Fedora 24 openh264 (From Cisco) - x86_64          7
    rpmfusion-free            RPM Fusion for Fedora 24 - Free                 352
    rpmfusion-free-updates    RPM Fusion for Fedora 24 - Free - Updates       289
    rpmfusion-nonfree         RPM Fusion for Fedora 24 - Nonfree               89
    rpmfusion-nonfree-updates RPM Fusion for Fedora 24 - Nonfree - Updates    127
    *updates                  Fedora 24 - x86_64 - Updates                 10*232
    Code:
    rpm -qi nodejs
    result
    Code:
    Name        : nodejs
    Epoch       : 1
    Version     : 4.4.7
    Release     : 2.fc24
    Architecture: x86_64
    Install Date: Вс 31 июл 2016 09:43:29
    Group       : Development/Languages
    Size        : 21938986
    License     : MIT and ASL 2.0 and ISC and BSD
    Signature   : RSA/SHA256, Чт 21 июл 2016 19:00:25, Key ID 73bde98381b46521
    Source RPM  : nodejs-4.4.7-2.fc24.src.rpm
    Build Date  : Чт 21 июл 2016 18:29:54
    Build Host  : buildvm-13.phx2.fedoraproject.org
    Relocations : (not relocatable)
    Packager    : Fedora Project
    Vendor      : Fedora Project
    URL         : http://nodejs.org/
    Summary     : JavaScript runtime
    Description :
    Node.js is a platform built on Chrome's JavaScript runtime
    for easily building fast, scalable network applications.
    Node.js uses an event-driven, non-blocking I/O model that
    makes it lightweight and efficient, perfect for data-intensive
    real-time applications that run across distributed devices.

  7. #7
    Join Date
    Oct 2011
    Posts
    1,917
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: dnf nodejs update fail

    The .rpm scriplet is trying to make symbolic link in place of /usr/lib/node_modules/npm/doc but it is confused by finding a directory there I am guessing. I don't know how that directory got created in the first place, but if you remove it, new package should install fine.

    ln -sf %{_pkgdocdir}/npm/html %{buildroot}%{_prefix}/lib/node_modules/npm/doc
    To remove it:
    Code:
    $ sudo rm -rf /usr/lib/node_modules/npm/doc
    Also, left a comment on package update: https://bodhi.fedoraproject.org/upda...016-d77212291e

  8. #8
    Join Date
    Sep 2016
    Location
    Kiyv
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: dnf nodejs update fail

    Quote Originally Posted by semiRocket
    The .rpm scriplet is trying to make symbolic link in place of /usr/lib/node_modules/npm/doc but it is confused by finding a directory there I am guessing. I don't know how that directory got created in the first place, but if you remove it, new package should install fine.



    To remove it:
    Code:
    $ sudo rm -rf /usr/lib/node_modules/npm/doc
    Also, left a comment on package update: https://bodhi.fedoraproject.org/upda...016-d77212291e
    After remove /usr/lib/node_modules/npm/doc i try updates, but i have same error for
    Code:
    /usr/lib/node_modules/npm/html
    i remove, /usr/lib/node_modules/npm/doc
    for
    Code:
    /usr/lib/node_modules/npm/man
    i remove /usr/lib/node_modules/npm/man
    and when i've got same error for
    Code:
    /usr/lib/node_modules/npm/abbrev
    I stood useless delete

  9. #9
    Join Date
    Oct 2011
    Posts
    1,917
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: dnf nodejs update fail

    /usr/lib/node_modules/npm/abbrev should belong to nodejs-abbrev package. Do you have it installed?
    Code:
    $ rpm -qi nodejs-abbrev
    Also, do you have npm package installed
    Code:
    $ rpm -qi npm
    Quote Originally Posted by bigkrp
    I stood useless delete
    I wouldn't say useless, we've got new clues!

  10. #10
    Join Date
    Sep 2016
    Location
    Kiyv
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: dnf nodejs update fail

    Quote Originally Posted by semiRocket
    /usr/lib/node_modules/npm/abbrev should belong to nodejs-abbrev package. Do you have it installed?
    Code:
    $ rpm -qi nodejs-abbrev
    Also, do you have npm package installed
    Code:
    $ rpm -qi npm

    I wouldn't say useless, we've got new clues!
    Thanks for the help!))

    I remove nodjs, npm by "dnf remove" and node_modules by "rm -rf"
    Then i reinstall nodejs and npm, using the "dnf" and while I did not have a similar error

Similar Threads

  1. Errors installing npm & other nodejs packages
    By ILMostro in forum Using Fedora
    Replies: 2
    Last Post: 16th May 2014, 08:36 PM
  2. Why does yum update fail so often?
    By tashirosgt in forum Using Fedora
    Replies: 2
    Last Post: 23rd March 2014, 01:55 PM
  3. Help installing NodeJS package manager on Fedora 19.
    By esepich in forum Using Fedora
    Replies: 0
    Last Post: 3rd September 2013, 05:22 AM
  4. update fail
    By ldima55 in forum Using Fedora
    Replies: 2
    Last Post: 17th March 2010, 07:06 PM
  5. Yum Update fail
    By freshmeat in forum Using Fedora
    Replies: 1
    Last Post: 28th December 2006, 01:43 PM

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
  •