Re: upgrading nodejs fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 23 Nov 2016, arnaud gaboury wrote:



On Wed, Nov 23, 2016 at 3:16 PM Max Pyziur <pyz@xxxxxxxxx> wrote:
      On Wed, 23 Nov 2016, arnaud gaboury wrote:

      > I am upgrading my box to F25 from F24.
      >
      > First I ran # dnf upgrade --refresh , but some packages did not upgarde. All these packages are nodejs ones.
      > Below is the error I get when trying to upgrade one package, nodejs:
      >
      > # dnf upgrade nodejs
      > .............................
      > Running transaction check
      > Transaction check succeeded.
      > Running transaction test
      > Transaction test succeeded.
      > Running transaction
      >   Upgrading  :nodejs-1:4.6.1-6.fc24.x86_64                                                                                                                                      
??
      ??? ?                            1/2
      > Error unpacking rpm package nodejs-1:4.6.1-6.fc24.x86_64
      > Error unpacking rpm package nodejs-1:4.6.1-6.fc24.x86_64
      > error: unpacking of archive failed on file /usr/lib/node_modules/npm/doc: cpio: rename
      > nodejs-1:4.6.1-6.fc24.x86_64 was supposed to be installed but is not!
      >   Verifying  :nodejs-1:4.6.1-6.fc24.x86_64                                                                                                                                      
??
      ??? ?                            1/2
      > nodejs-0.10.42-4.fc23.x86_64 was supposed to be removed but is not!
      >   Verifying  :nodejs-0.10.42-4.fc23.x86_64                                                                                                                                      
??
      ??? ?                            2/2
      >
      > Failed:
      >   nodejs.x86_64 1:4.6.1-6.fc24  
      >
      > .......................................
      >
      > This is same kind of errors for all nodejs packages.
      > Can someone help me solving this issue?
      > TY for help

      This happened on all three of my fedora machines when upgrading from F23
      to F24.

      I removed the packages (dnf remove nodejs);


If I remove nodejs, all other node packages will be removed. Fine. But when reinstalling, how can I reinstall exactly all the node packages? I would say best would
be to get a list of the removed node packages, then install this list.
Any tips to get such a list of packages to reinstall ?

I would make some notes of what nodejs packages you are using to make sure that you reinstall them later.

Start w/ running
$ rpm -qa | grep -i nodejs | sort

and put it in a file for reference.

Then once you've done the dnf upgrade, reinstall nodejs referring to the list that you created.

This is a general rule that should apply to similar situations. PostGIS/PostgreSQL (worhorse software for me) both moved into major releases that required extensive workarounds to the F23->F24 dnf upgrade process. My (messy) notes available on request.

Max Pyziur
pyz@xxxxxxxxx

 
      did the upgrade; 

      then reinstalled nodejs.

      That worked each time.

      fyi,

      Max Pyziur
      pyz@brama.com_______________________________________________
      users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
      To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx


_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]
  Powered by Linux