How do I fix GLib Error when updating packages? - linux

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.

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/

unable to install the latest nodejs

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

unable to install mongodb properly on Ubuntu 17.04

Hello i'm getting errors in my terminal everytime i try to apt-get install something or update , i guess it has something to do with installing mongodb , i'm new to linux , i followed this guide exactly on how to install it , i couldnt find a guide for 17.04 version so i did the 16.10 , now everytime i try to apt-get something i get this error
Reading package lists... Done
W: GPG error:
http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.0
Release: The
following signatures couldn't be verified because the public key is
not available: NO_PUBKEY 9ECBEC467F0CEB10
W: The repository
'http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.0 Release' is
not signed.
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.
plus i have an alert in my top bar:
an error occured please run package manager from the right-click menu
or apt-get in a terminal to see what is wrong
the error message was :
Error brokenCount > 0. this usually means that your installed packages
have unmet dependencies.
I think the problem is that the mongodb repository is not signed. You need to signed using apt-key adv ...
In the URL https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ there're some ubuntu repositories for mongodb, last available version is 16.04 . Tutorial for setup is also available.
Best luck

Resources