unable to install the latest nodejs - node.js

I have tried many ways, via nvm etc.. nodejs stays stubbornly at v10 which is outdated, what could i do?
Err:12 http://ppa.launchpad.net/ubuntu-vn/ppa/ubuntu focal Release
404 Not Found [IP: 2001:67c:1560:8008::19 80]
Err:13 https://deb.nodesource.com/node_8.x focal Release
404 Not Found [IP: 2001:ee0:3244::71ab:c39 443]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/ubuntu-vn/ppa/ubuntu focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'https://deb.nodesource.com/node_8.x focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

i used nvm install --lts and it worked

Related

How do i fix the issue bellow during "sudo apt update"

Err:15 https://ppa.launchpadcontent.net/bhdouglass/indicator-remindor/ubuntu jammy Release
404 Not Found [IP: 185.125.190.52 443]
Reading package lists... Done
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://apt.postgresql.org/pub/repos/apt jammy-pgdg InRelease' doesn't support architecture 'i386'
W: https://cli-assets.heroku.com/apt/./InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: http://apt.kubernetes.io/dists/kubernetes-xenial/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
E: The repository 'https://ppa.launchpadcontent.net/bhdouglass/indicator-remindor/ubuntu jammy Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Try this commands before doing the apt-get update.
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
deb https://apt.kubernetes.io/ kubernetes-xenial main EOF

E: The repository 'http://ppa.launchpad.net/bashtop-monitor/bashtop/ubuntu jammy Release' does not have a Release file

Tried to to do the command sudo apt-get update but kept running into this error:
E: The repository 'http://ppa.launchpad.net/bashtop-monitor/bashtop/ubuntu jammy Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Does anybody know how to fix this?

when i try to run sudo apt-get update,I got this much errors,

<pre>
Err:17 http://repo.mongodb.org/apt/ubuntu impish/mongodb-org/3.0 Release
404 Not Found [IP: 2600:9000:2242:2200:1e:e933:9800:93a1 80]
Get:18 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 Release [3,457 B]
Get:19 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 Release.gpg [801 B]
Ign:19 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 Release.gpg
Reading package lists... Done
N: Skipping acquire of configured file &apos;main/binary-i386/Packages&apos; as
repository &apos;https://packages.microsoft.com/repos/vscode stable InRelease&apos;
doesn&apos;t support architecture &apos;i386&apos;
W: GPG error: https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 Release: The
following signatures couldn&apos;t be verified because the public key is not
available: NO_PUBKEY 656408E390CFB1F5
E: The repository &apos;https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4
Release&apos; is not signed.
N: Updating from such a repository can&apos;t be done securely, and is therefore
disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository &apos;http://repo.mongodb.org/apt/ubuntu impish/mongodb-org/3.0
Release&apos; does not have a Release file.
N: Updating from such a repository can&apos;t be done securely, and is therefore
disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 Release: The
following signatures couldn&apos;t be verified because the public key is not
available: NO_PUBKEY BC711F9BA15703C6
E: The repository &apos;http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4
Release&apos; is not signed.
N: Updating from such a repository can&apos;t be done securely, and is therefore
disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
</pre>
When i try to run sudo apt-get update i got this much errors,I am running pop os in my pc,Anyone know how to solve this? if so please help me!
If you not interested in mongo db remove mongo db repositories from sources.list but if you are trying to install mongo dB try the following method
Unsigned repository is caused due to not adding mongo Db public key for its repository
wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
run the command for your required mongo Db version
the above mention command is for mongodB version 5
If you want to install mongo db version 3 follow this documentation
https://docs.mongodb.com/v3.4/tutorial/install-mongodb-on-ubuntu/

How do I fix GLib Error when updating packages?

Hello I'm getting the following error trying sudo apt-get update. What may be the problem? I use Ubuntu 20.04
GLib:ERROR:../../../glib/gutf8.c:1782:g_utf8_strreverse: assertion failed: (r >= result)
Aborted
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/fkrull/deadsnakes-python2.7/ubuntu focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

sudo apt-get update fail on Ubuntu 17.04

While running the sudo apt-get update on ubuntu 17.04 Zesty Zapus, I am getting the following error. I have posted on the error lines. I wanted to install python libraries like matplotlib and tkinter which failed to installed because above command wasn't running succesfully. Please suggest me what to do.
Err:9 http://security.ubuntu.com/ubuntu zesty-security/main amd64 Packages
404 Not Found [IP: 2001:67c:1560:8001::14 80]
Err:25 http://in.archive.ubuntu.com/ubuntu zesty/main i386 Packages
404 Not Found [IP: 2001:67c:1360:8001::21 80]
Err:81 http://in.archive.ubuntu.com/ubuntu zesty-updates/main amd64 Packages
404 Not Found [IP: 2001:67c:1360:8001::21 80]
Err:113 http://in.archive.ubuntu.com/ubuntu zesty-backports/main amd64 Packages
404 Not Found [IP: 2001:67c:1360:8001::21 80]
Reading package lists... Done
W: The repository 'http://security.ubuntu.com/ubuntu zesty-security Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://in.archive.ubuntu.com/ubuntu zesty Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://in.archive.ubuntu.com/ubuntu zesty-updates Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://in.archive.ubuntu.com/ubuntu zesty-backports Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/zesty-security/main/binary-amd64/Packages 404 Not Found [IP: 2001:67c:1560:8001::14 80]
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/zesty/main/binary-i386/Packages 404 Not Found [IP: 2001:67c:1360:8001::21 80]
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/zesty-updates/main/binary-amd64/Packages 404 Not Found [IP: 2001:67c:1360:8001::21 80]
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/zesty-backports/main/binary-amd64/Packages 404 Not Found [IP: 2001:67c:1360:8001::21 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
you can solve it by: just replace us.archive.ubuntu.com and security.ubuntu.com in /etc/apt/sources.list with old-releases.ubuntu.com and then you'll be able to finish updating.
refer to source 1 and ubuntu forum
it work for me
In my case:
sed -e 's/archive.ubuntu.com/old-releases.ubuntu.com/g' -i /etc/apt/sources.list
sed -e 's/security.ubuntu.com/old-releases.ubuntu.com/g' -i /etc/apt/sources.list
In my case, I was able to download some of the packages by doing the following:
I had to replace "us.archive.ubuntu.com" and "security.ubuntu.com" in /etc/apt/sources.list WITH "old-releases.ubuntu.com" and then I was able to finish downloading some of the packages, like Ayush Kumar said.
For the other updates that were listed by my Hosting company, Linode, I used the following:
I had to use the --allow-unauthenticated flag with sudo apt-get update.
sudo apt-get update --allow-unauthenticated
Then I was able to finish updating.
17.04 isn't getting further support from Ubuntu. So, the solution that worked for me was to upgrade it to 17.10 as none other solutions helped.

Resources