ubuntu update error and cannot install latest version of nodejs - ubuntu-18.04

when I update my ubuntu, I got some long line of error and warning message and also some of ppa cannot be updated like nodejs.
youngjinkim#vm-youngjinkim:~$ sudo apt-get update
Hit:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:2 http://kr.archive.ubuntu.com/ubuntu bionic InRelease
Hit:3 http://kr.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:4 http://kr.archive.ubuntu.com/ubuntu bionic-backports InRelease
Ign:5 http://repos.azulsystems.com/ubuntu stable InRelease
Get:6 http://repos.azulsystems.com/ubuntu stable Release [8604 B]
Get:7 http://repos.azulsystems.com/ubuntu stable Release.gpg [819 B]
Ign:8 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:9 http://dl.google.com/linux/chrome/deb stable Release
Hit:10 https://packages.microsoft.com/repos/vscode stable InRelease
Hit:11 http://ppa.launchpad.net/ansible/ansible/ubuntu bionic InRelease
Ign:7 http://repos.azulsystems.com/ubuntu stable Release.gpg
Ign:13 http://ppa.launchpad.net/docky-core/stable/ubuntu bionic InRelease
Hit:14 http://ppa.launchpad.net/noobslab/icons/ubuntu bionic InRelease
Hit:15 http://ppa.launchpad.net/noobslab/themes/ubuntu bionic InRelease
Err:16 http://ppa.launchpad.net/docky-core/stable/ubuntu bionic Release
404 Not Found [IP: 172.30.252.31 8080]
Reading package lists... Done
W: GPG error: http://repos.azulsystems.com/ubuntu stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B1998361219BD9C9
E: The repository 'http://repos.azulsystems.com/ubuntu stable Release' is not signed.
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.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
E: The repository 'http://ppa.launchpad.net/docky-core/stable/ubuntu bionic 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.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/vscode.list:3
I wanna update nodejs cache policy, but when I do update, I got this message and then I checked nodsjs ppa version is 8, so I cannot install latest version of nodejs.
and I recognize W: warining , E: error but what is N??

I solve the problem by
step 1: install vim
$ sudo apt-get install vim
step 2: enter the source list on your error, eg:
$ sudo vim /etc/apt/sources.list
step 3: comment the line on the error, and the problem will be solved.

Related

Can not upgrade postgis 2.5 to 3.0.1 for postgresql 11 on ubuntu

I need to upgrade my PostgreSQL 11 to PostgreSQL 12 with PostGIT 2.5 to 3.0.1.
I tried to install PostGIS 3 for PostgreSQL 11 on Ubuntu server to upgrade PostGIS first, before upgrading PostgreSQL.
I run
apt-get install postgresql-10-postgis-3
and get the error:
The following NEW packages will be installed:
postgresql-10-postgis-3 postgresql-10-postgis-3-scripts
0 upgraded, 2 newly installed, 0 to remove and 403 not upgraded.
Need to get 1,883 kB of archives.
After this operation, 30.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main amd64 postgresql-10-postgis-3-scripts all 3.0.1+dfsg-4.pgdg16.04+1 [1,052 kB]
Get:2 http://apt.postgresql.org/pub/repos/apt xenial-pgdg/main amd64 postgresql-10-postgis-3 amd64 3.0.1+dfsg-4.pgdg16.04+1 [831 kB]
Fetched 1,883 kB in 19s (97.0 kB/s)
Selecting previously unselected package postgresql-10-postgis-3-scripts.
(Reading database ... 175146 files and directories currently installed.)
Preparing to unpack .../postgresql-10-postgis-3-scripts_3.0.1+dfsg-4.pgdg16.04+1_all.deb ...
Unpacking postgresql-10-postgis-3-scripts (3.0.1+dfsg-4.pgdg16.04+1) ...
dpkg: error processing archive /var/cache/apt/archives/postgresql-10-postgis-3-scripts_3.0.1+dfsg-4.pgdg16.04+1_all.deb (--unpack):
trying to overwrite '/usr/share/postgresql/10/applications/shp2pgsql-gui.desktop', which is also in package postgresql-10-postgis-2.5-scripts 2.5.4+dfsg-1.pgdg16.04+1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Selecting previously unselected package postgresql-10-postgis-3.
Preparing to unpack .../postgresql-10-postgis-3_3.0.1+dfsg-4.pgdg16.04+1_amd64.deb ...
Unpacking postgresql-10-postgis-3 (3.0.1+dfsg-4.pgdg16.04+1) ...
Processing triggers for postgresql-common (216.pgdg16.04+1) ...
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
en_us
Removing obsolete dictionary files:
Errors were encountered while processing:
/var/cache/apt/archives/postgresql-10-postgis-3-scripts_3.0.1+dfsg-4.pgdg16.04+1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Anybody faced such issue? Any hint is appreciated.

ppa error add-apt-repository ppa:guacamole/stable

i'm getting this error while trying to add the ppa for apache guacamole to my ubuntu server. i was following the guide here. it looks like the InRelease archive is found, but I get an error on the Release archive. Is there a way to work around this? Can I use the InRelease archive and not the Release one? It's obviously easier to install via apt-install, but if I have to do it another way I'm not opposed.
thanks.
$ sudo add-apt-repository ppa:guacamole/stable
The most recent stable release of Guacamole and its components. The packages here use the same packaging as the downstream Debian and Ubuntu packages, but are updated more frequently, usually while the corresponding downstream packages are under official review.
More info: https://launchpad.net/~guacamole/+archive/ubuntu/stable
Press [ENTER] to continue or Ctrl-c to cancel adding it.
Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease
Ign:4 http://ppa.launchpad.net/guacamole/stable/ubuntu bionic InRelease
Hit:5 http://us.archive.ubuntu.com/ubuntu bionic-security InRelease
Err:6 http://ppa.launchpad.net/guacamole/stable/ubuntu bionic Release
404 Not Found [IP: 91.189.95.83 80]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/guacamole/stable/ubuntu bionic 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.
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
The ppa is not maintained anymore. The latest package there is from 2013 :/
So, you need to use a tutorial to install it from source.

how come I can't update my endless OS using command line?. It brings this error. Is there something wrong in my sources.list?

Err:1 http://obs-master.endlessm-sf.com:82/shared/eos eos3.7 InRelease
Could not connect to obs-master.endlessm-sf.com:82 (52.25.213.40), connection timed out
Reading package lists... Done
Building dependency tree... Done
All packages are up to date.
W: Failed to fetch http://obs-master.endlessm-sf.com:82/shared/eos/dists/eos3.7/InRelease Could not connect to obs-master.endlessm-sf.com:82 (52.25.213.40), connection timed out
W: Some index files failed to download. They have been ignored, or old ones used instead.
These are the only repositories in my source.list folder and sources.list.d is empty:
deb http://obs-master.endlessm-sf.com:82/shared/eos eos3.7 core endless
deb-src http://obs-master.endlessm-sf.com:82/shared/eos eos3.7 core endless
Endless use a read-only root file system managed by OSTree with application installed using Flatpak. You can use commands like dpkg -l which do not make changes to the system, but you cannot use commands like apt-get install.
Try this in terminal.
( flatpak update --appstream && flatpak update -y )
endlessos debian-based

Unable to resolve 'us.archive.ubuntu.com' when using 'update' command in Ubuntu

When I use the command "sudo apt-get update" I get the following errors:
Err:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Could not resolve 'us.archive.ubuntu.com'
Err:2 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease
Could not resolve 'us.archive.ubuntu.com'
Err:3 http://security.ubuntu.com/ubuntu bionic-security InRelease
Could not resolve 'security.ubuntu.com'
Err:4 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease
Could not resolve 'us.archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/bionic /InRelease Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease Could not resolve 'security.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Could you please help me to solve it?
check your /etc/resovl.conf & send the result

Not able to get sudo update on Ubuntu

I have an issue with my 18.04 Ubuntu Server.
When I try to run "sudo apt-get update" I get this (code 1)
Also I get this error (code 2) when I try to start some services for mastodon (joinmastodon.org)
CODE 1
root#dedi-par-72088:~# sudo apt-get update
Hit:1 http://mirrors.online.net/ubuntu bionic InRelease
Hit:2 http://mirrors.online.net/ubuntu bionic-updates InRelease
Hit:3 http://mirrors.online.net/ubuntu bionic-backports InRelease
Hit:4 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:5 http://ppa.launchpad.net/certbot/certbot/ubuntu bionic InRelease
Hit:6 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:7 https://deb.nodesource.com/node_8.x bionic InRelease
Get:8 https://dl.yarnpkg.com/debian stable InRelease [13.3 kB]
Err:8 https://dl.yarnpkg.com/debian stable InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23E7166788B63E1E
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://dl.yarnpkg.com/debian stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23E7166788B63E1E
W: Failed to fetch https://dl.yarnpkg.com/debian/dists/stable/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23E7166788B63E1E
W: Some index files failed to download. They have been ignored, or old ones used instead.
CODE 2
Failed to start mastodon-web.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
See system logs and 'systemctl status mastodon-web.service' for details.
Failed to start mastodon-sidekiq.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
See system logs and 'systemctl status mastodon-sidekiq.service' for details.
Failed to start mastodon-streaming.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
See system logs and 'systemctl status mastodon-streaming.service' for details
CODE 2.1
mastodon#dedi-par-72088:~$ systemctl status mastodon-streaming.service
● mastodon-streaming.service - mastodon-streaming
Loaded: loaded (/etc/systemd/system/mastodon-streaming.service; disabled; vendor preset: enabl
Active: inactive (dead)
CODE 2.2
mastodon#dedi-par-72088:~$ systemctl enable mastodon-*
Failed to enable unit: The name org.freedesktop.PolicyKit1 was not provided by any .service files
I think this is a Networking issue, but I have no idea how to fix it.
Thank you in advance.
To add the latest key for yarn run
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
the issue of "apt-get update" in CODE 1 is that you are missung the public key 23E7166788B63E1E.
You can add this key to your keyring through executing:
sudo apt-key adv --recv-key 23E7166788B63E1E
It will show you something like:
Executing: /tmp/apt-key-gpghome.6KxIWRrerk/gpg.1.sh --recv-key 23E7166788B63E1E
gpg: key 1646B01B86E50310: public key "Yarn Packaging <yarn#dan.cx>" imported
gpg: Total number processed: 1
gpg: imported: 1
Now you can run "apt-get update", or "apt update" and it will fetch the index of https://dl.yarnpkg.com/debian/dists/stable/InRelease as well.
For this one
sudo apt-get update
I think I know the answer. First identify the Apps that make problems. Here it seems yarn. Then GO TO /var/etc/apt/sources.list.d and delete the related 2 files to that App in this folder.
Worked well for mine.

Resources