Update failed from 2.x to the latest version. NR no work now

Putting the bullet in my mouth, I decided to update another machine.
(My MAIN one)

It had/has an OLD version (v2.x).
So when I started the install I got a complaint about non supported node v10.

Ok, from the previous attempt I know what to do.
Append --node16 to it.

Then the wheels fell off.

From the log file

Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libjs-highlight.js libnode72 nodejs-doc
Suggested packages:
  npm
The following NEW packages will be installed:
  libjs-highlight.js libnode72 nodejs nodejs-doc
0 to upgrade, 4 to newly install, 0 to remove and 0 not to upgrade.
Need to get 11.5 MB of archives.
After this operation, 51.2 MB of additional disk space will be used.
Get:1 http://ftp.iinet.net.au/pub/ubuntu hirsute/universe amd64 libjs-highlight.js all 9.18.5+dfsg1-1 [367 kB]
Err:2 http://ftp.iinet.net.au/pub/ubuntu hirsute/universe amd64 libnode72 amd64 12.21.0~dfsg-3ubuntu1
  404  Not Found [IP: 150.101.135.3 80]
Ign:3 http://ftp.iinet.net.au/pub/ubuntu hirsute/universe amd64 nodejs-doc all 12.21.0~dfsg-3ubuntu1
Err:4 http://ftp.iinet.net.au/pub/ubuntu hirsute/universe amd64 nodejs amd64 12.21.0~dfsg-3ubuntu1
  503  Service Temporarily Unavailable [IP: 150.101.135.3 80]
Err:3 http://ftp.iinet.net.au/pub/ubuntu hirsute/universe amd64 nodejs-doc all 12.21.0~dfsg-3ubuntu1
  503  Service Temporarily Unavailable [IP: 150.101.135.3 80]
Fetched 367 kB in 1s (535 kB/s)
E: Failed to fetch http://ftp.iinet.net.au/pub/ubuntu/pool/universe/n/nodejs/libnode72_12.21.0%7edfsg-3ubuntu1_amd64.deb  404  Not Found [IP: 150.101.135.3 80]
E: Failed to fetch http://ftp.iinet.net.au/pub/ubuntu/pool/universe/n/nodejs/nodejs-doc_12.21.0%7edfsg-3ubuntu1_all.deb  503  Service Temporarily Unavailable [IP: 150.101.135.3 80]
E: Failed to fetch http://ftp.iinet.net.au/pub/ubuntu/pool/universe/n/nodejs/nodejs_12.21.0%7edfsg-3ubuntu1_amd64.deb  503  Service Temporarily Unavailable [IP: 150.101.135.3 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Versions: node:missing npm:missing

And now when I do node-red-start I get:

me@me-desktop:~/.node-red$ node-red-start
node-red-start: command not found
me@me-desktop:~/.node-red$ 

HELP!

Please.

Update

(not good)
the old version was 2.1.4
When I tried:
npm install -g --unsafe-perm node-red@2.1.4
npm command not found.
I can't install npm as when I try I get a lot of 404 errors.
So it seems I am now without Node-Red.

Make sure your pi is up to date first. Run
sudo apt update
sudo apt full-upgrade
If there are any errors then you need to fix those first

And please copy/paste text, not screenshot.

[Edit] You are using Ubuntu 21.04 which went out of support in January. You will need to update that first.

I (again) bit the bullet and updated to Ubuntu 22.04 (LTS)

Problem:
npm is no longer installed.

I update the system and get errors:

So now I am at Jammy from Hippo.

me@me-desktop:~$ sudo apt update
[sudo] password for me: 
Get:1 http://ftp.iinet.net.au/pub/ubuntu jammy InRelease [270 kB]
Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease                              
Get:3 http://ftp.iinet.net.au/pub/ubuntu jammy-updates InRelease [114 kB]           
Get:4 http://ftp.iinet.net.au/pub/ubuntu jammy-backports InRelease [99.8 kB]
Get:5 http://ftp.iinet.net.au/pub/ubuntu jammy-security InRelease [110 kB]
Fetched 594 kB in 1s (443 kB/s)    
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: Skipping acquire of configured file 'hippo/binary-amd64/Packages' as repository 'http://archive.ubuntu.com/ubuntu jammy InRelease' doesn't have the component 'hippo' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'hippo/binary-i386/Packages' as repository 'http://archive.ubuntu.com/ubuntu jammy InRelease' doesn't have the component 'hippo' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'hippo/i18n/Translation-en_AU' as repository 'http://archive.ubuntu.com/ubuntu jammy InRelease' doesn't have the component 'hippo' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'hippo/i18n/Translation-en' as repository 'http://archive.ubuntu.com/ubuntu jammy InRelease' doesn't have the component 'hippo' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'hippo/dep11/Components-amd64.yml' as repository 'http://archive.ubuntu.com/ubuntu jammy InRelease' doesn't have the component 'hippo' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'hippo/dep11/icons-48x48.tar' as repository 'http://archive.ubuntu.com/ubuntu jammy InRelease' doesn't have the component 'hippo' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'hippo/dep11/icons-64x64.tar' as repository 'http://archive.ubuntu.com/ubuntu jammy InRelease' doesn't have the component 'hippo' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'hippo/dep11/icons-64x64@2.tar' as repository 'http://archive.ubuntu.com/ubuntu jammy InRelease' doesn't have the component 'hippo' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'hippo/dep11/icons-128x128.tar' as repository 'http://archive.ubuntu.com/ubuntu jammy InRelease' doesn't have the component 'hippo' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'hippo/cnf/Commands-amd64' as repository 'http://archive.ubuntu.com/ubuntu jammy InRelease' doesn't have the component 'hippo' (component misspelt in sources.list?)
me@me-desktop:~$ 

So what is going on with all the Hippo stuff?
(Ok, kind of off topic kind of)

But when I try to install npm it just fails:

(Last part of what I see)

Get:39 http://ftp.iinet.net.au/pub/ubuntu jammy/universe amd64 node-tmatch all 5.0.0-4 [6,002 B]
Ign:40 http://ftp.iinet.net.au/pub/ubuntu jammy/universe amd64 node-chalk all 4.1.2-1
Get:6 http://ftp.iinet.net.au/pub/ubuntu jammy/universe amd64 node-readable-stream all 3.6.0+~cs3.0.0-1 [32.6 kB]                                   
Get:9 http://ftp.iinet.net.au/pub/ubuntu jammy/universe amd64 node-glob all 7.2.1+~cs7.6.15-1 [131 kB]                                              
Get:14 http://ftp.iinet.net.au/pub/ubuntu jammy/universe amd64 node-colors all 1.4.0-3 [12.3 kB]                                                    
Get:15 http://ftp.iinet.net.au/pub/ubuntu jammy/universe amd64 node-defaults all 1.0.3+~1.0.3-1 [4,288 B]                                           
Get:16 http://ftp.iinet.net.au/pub/ubuntu jammy/universe amd64 node-columnify all 1.5.4+~1.5.1-1 [12.6 kB]                                          
Ign:17 http://ftp.iinet.net.au/pub/ubuntu jammy/universe amd64 node-js-yaml all 4.1.0+dfsg+~4.0.5-6                                                 
Ign:18 http://ftp.iinet.net.au/pub/ubuntu jammy/universe amd64 node-log-driver all 1.2.7+git+20180219+bba1761737-7                                  
Get:25 http://ftp.iinet.net.au/pub/ubuntu jammy/universe amd64 node-coveralls all 3.1.1-1 [14.2 kB]                                                 
Ign:26 http://ftp.iinet.net.au/pub/ubuntu jammy/universe amd64 node-mimic-response all 3.1.0-7                                                      
Ign:27 http://ftp.iinet.net.au/pub/ubuntu jammy/universe amd64 node-has-unicode all 2.0.1-4                                                         
Ign:28 http://ftp.iinet.net.au/pub/ubuntu jammy/universe amd64 node-slice-ansi all 5.0.0+~cs9.0.0-4                                                 
Ign:30 http://ftp.iinet.net.au/pub/ubuntu jammy/universe amd64 node-hosted-git-info all 4.0.2-1                                                     
Err:17 http://ftp.iinet.net.au/pub/ubuntu jammy/universe amd64 node-js-yaml all 4.1.0+dfsg+~4.0.5-6                                                 
  503  Service Temporarily Unavailable [IP: 150.101.135.3 80]
Get:18 http://ftp.iinet.net.au/pub/ubuntu jammy/universe amd64 node-log-driver all 1.2.7+git+20180219+bba1761737-7 [5,436 B]                        
Ign:36 http://ftp.iinet.net.au/pub/ubuntu jammy/universe amd64 node-stack-utils all 2.0.5+~2.0.1-1                                                  
Ign:37 http://ftp.iinet.net.au/pub/ubuntu jammy/universe amd64 node-supports-color all 8.1.1+~8.1.1-1                                               
Ign:38 http://ftp.iinet.net.au/pub/ubuntu jammy/universe amd64 node-text-table all 0.2.0-4                                                          
Ign:40 http://ftp.iinet.net.au/pub/ubuntu jammy/universe amd64 node-chalk all 4.1.2-1                                                               
Err:26 http://ftp.iinet.net.au/pub/ubuntu jammy/universe amd64 node-mimic-response all 3.1.0-7                                                      
  503  Service Temporarily Unavailable [IP: 150.101.135.3 80]
Err:27 http://ftp.iinet.net.au/pub/ubuntu jammy/universe amd64 node-has-unicode all 2.0.1-4                                                         
  503  Service Temporarily Unavailable [IP: 150.101.135.3 80]
Err:28 http://ftp.iinet.net.au/pub/ubuntu jammy/universe amd64 node-slice-ansi all 5.0.0+~cs9.0.0-4                                                 
  503  Service Temporarily Unavailable [IP: 150.101.135.3 80]
Err:30 http://ftp.iinet.net.au/pub/ubuntu jammy/universe amd64 node-hosted-git-info all 4.0.2-1                                                     
  503  Service Temporarily Unavailable [IP: 150.101.135.3 80]
Get:36 http://ftp.iinet.net.au/pub/ubuntu jammy/universe amd64 node-stack-utils all 2.0.5+~2.0.1-1 [9,368 B]                                        
Err:37 http://ftp.iinet.net.au/pub/ubuntu jammy/universe amd64 node-supports-color all 8.1.1+~8.1.1-1                                               
  503  Service Temporarily Unavailable [IP: 150.101.135.3 80]
Err:38 http://ftp.iinet.net.au/pub/ubuntu jammy/universe amd64 node-text-table all 0.2.0-4                                                          
  503  Service Temporarily Unavailable [IP: 150.101.135.3 80]
Err:40 http://ftp.iinet.net.au/pub/ubuntu jammy/universe amd64 node-chalk all 4.1.2-1                                                               
  503  Service Temporarily Unavailable [IP: 150.101.135.3 80]
Fetched 919 kB in 8s (111 kB/s)                                                                                                                     
E: Failed to fetch http://ftp.iinet.net.au/pub/ubuntu/pool/universe/n/node-js-yaml/node-js-yaml_4.1.0%2bdfsg%2b%7e4.0.5-6_all.deb  503  Service Temporarily Unavailable [IP: 150.101.135.3 80]
E: Failed to fetch http://ftp.iinet.net.au/pub/ubuntu/pool/universe/n/node-mimic-response/node-mimic-response_3.1.0-7_all.deb  503  Service Temporarily Unavailable [IP: 150.101.135.3 80]
E: Failed to fetch http://ftp.iinet.net.au/pub/ubuntu/pool/universe/n/node-has-unicode/node-has-unicode_2.0.1-4_all.deb  503  Service Temporarily Unavailable [IP: 150.101.135.3 80]
E: Failed to fetch http://ftp.iinet.net.au/pub/ubuntu/pool/universe/n/node-slice-ansi/node-slice-ansi_5.0.0%2b%7ecs9.0.0-4_all.deb  503  Service Temporarily Unavailable [IP: 150.101.135.3 80]
E: Failed to fetch http://ftp.iinet.net.au/pub/ubuntu/pool/universe/n/node-hosted-git-info/node-hosted-git-info_4.0.2-1_all.deb  503  Service Temporarily Unavailable [IP: 150.101.135.3 80]
E: Failed to fetch http://ftp.iinet.net.au/pub/ubuntu/pool/universe/n/node-supports-color/node-supports-color_8.1.1%2b%7e8.1.1-1_all.deb  503  Service Temporarily Unavailable [IP: 150.101.135.3 80]
E: Failed to fetch http://ftp.iinet.net.au/pub/ubuntu/pool/universe/n/node-text-table/node-text-table_0.2.0-4_all.deb  503  Service Temporarily Unavailable [IP: 150.101.135.3 80]
E: Failed to fetch http://ftp.iinet.net.au/pub/ubuntu/pool/universe/n/node-chalk/node-chalk_4.1.2-1_all.deb  503  Service Temporarily Unavailable [IP: 150.101.135.3 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
me@me-desktop:~/.npm$ 

OK, sorry.

--fix-missing.

Progressing.

(Spoke too soon)

Now I see this at the end:

Setting up node-cacache (15.0.5+~cs13.9.21-3) ...
Setting up node-read-package-json (4.1.1-1) ...
Setting up node-fetch (2.6.7+~2.5.12-1) ...
Setting up node-gauge (4.0.2-1) ...
Setting up node-npmlog (6.0.1+~4.1.4-1) ...
Setting up node-coveralls (3.1.1-1) ...
Setting up node-gyp (8.4.1-1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for doc-base (0.11.1) ...
Processing 1 added doc-base file...
Errors were encountered while processing:
 npm
E: Failed to fetch http://ftp.iinet.net.au/pub/ubuntu/pool/universe/n/node-text-table/node-text-table_0.2.0-4_all.deb  503  Service Temporarily Unavailable [IP: 150.101.135.3 80]
E: Sub-process /usr/bin/dpkg returned an error code (1)
me@me-desktop:~/.npm$ 

(Puts head in hands a weeps)

(Second update)

Belive me: I don't like this situation any more than you. :wink:
Ok, sudo apt install -f helped.
It seems NR is now being installed (after a few other steps)

node-red-start seems to be working.

99.9% now working.
Sorry folks.

Good to see you worked through it

Unless you have a specific reason for Ubuntu you might be better off going to Debian (at least you will not get tripped up by all the SNAP stuff etc)

At the very least if you stay with Ubuntu - then stay on the LTS releases (22.04) etc as they will not give you the same level of grief

Craig

Yeah, but is that trading one problem (known) for other problems (as yet unknown).

And now I'm updated, SNAP is deprecated and FLATPACK is how things are done.

But thanks.

Now I have to learn all the differences / changes from 21.04 and 22.04.
Fun fun fun.

Sorry, that is rubbish, snap is becoming more and more dominant in Ubuntu. Many do not like that.

Ok.

I am not in a position to know any better.

I had 21.04 which used SNAP and tried to update.
To me everything said FLATPAK is now used and SNAP isn't.

Ok maybe that isn't exactly falling under deprecated, but if an OLD version used it and a newer version is using something else.....
They've given up on the older way.

Ok, I searched and 22.04 is using SNAP.
Maybe 21.10 used flatpak.

Which app are you talking about? There are some apps available as flatpak and some as snap. I don't think any of the officially supported packages use flatpak.

I honestly can't remember. (Though I could look back at the thread I posted)

I was on 21.04 and want to do/install something and when I tried I was told it is/was FLATPAKed.
So I tried to install FLATPAK and then the problems kind of started with my confusion.
Ok, I didn't say what it was.

Again: sorry, but this is still way above my head for knowledge.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.