E: Sub-process /usr/bin/dpkg returned an error code (1)

Asked by redhwan nasser on 2019-10-06

I tried to install Jupyter Notebook from this link
https://www.digitalocean.com/community/tutorials/how-to-set-up-a-jupyter-notebook-to-run-ipython-on-ubuntu-16-04

 but sadly get this error.

Do you want to continue? [Y/n] y
Setting up linux-image-4.15.0-65-generic (4.15.0-65.74~16.04.1) ...
Processing triggers for linux-image-4.15.0-65-generic (4.15.0-65.74~16.04.1) ...
/etc/kernel/postinst.d/apt-auto-removal:
Traceback (most recent call last):
  File "/usr/local/bin/sort", line 6, in <module>
    from sort import cli
  File "/usr/local/lib/python2.7/dist-packages/sort.py", line 3
    print('This is suroegin's package - sort')
                            ^
SyntaxError: invalid syntax
run-parts: /etc/kernel/postinst.d/apt-auto-removal exited with return code 1
dpkg: error processing package linux-image-4.15.0-65-generic (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 linux-image-4.15.0-65-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

I already uesd:

sudo apt-get -f install
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

how to fix it?

Question information

Language:
English Edit question
Status:
Open
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
2019-10-10
Last reply:
2019-10-10
Manfred Hampl (m-hampl) said : #1

The root cause of your problem seems to be an installation of "suroegin's package - sort" which apparently is incompatible with Ubuntu - or even more, or even worse, seems to be a broken nonsense package.

(Note: the quote inside the quoted string would have to be escaped)

I suggest that you remove that package.

Can you please give the output of the commands you gave.

Thanks

redhwan nasser (algabri) said : #3

sure,

1- >>> sudo apt-get -f install: output:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
  libprotoc9v5
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-4.15.0-65-generic (4.15.0-65.74~16.04.1) ...
Processing triggers for linux-image-4.15.0-65-generic (4.15.0-65.74~16.04.1) ...
/etc/kernel/postinst.d/apt-auto-removal:
Traceback (most recent call last):
  File "/usr/local/bin/sort", line 6, in <module>
    from sort import cli
  File "/usr/local/lib/python2.7/dist-packages/sort.py", line 3
    print('This is suroegin's package - sort')
                            ^
SyntaxError: invalid syntax
run-parts: /etc/kernel/postinst.d/apt-auto-removal exited with return code 1
dpkg: error processing package linux-image-4.15.0-65-generic (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 linux-image-4.15.0-65-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

2- >>> sudo apt-get update: output:

Hit:1 http://kr.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://kr.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:3 http://kr.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Hit:4 https://desktop-download.mendeley.com/download/apt stable InRelease
Get:5 http://kr.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [322 kB]
Hit:6 http://linux.teamviewer.com/deb stable InRelease
Get:7 http://kr.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [231 kB]
Ign:8 http://dl.google.com/linux/chrome/deb stable InRelease
Get:9 http://kr.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [274 kB]
Err:4 https://desktop-download.mendeley.com/download/apt stable InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D800C7D66F036044
Get:10 http://kr.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [411 kB]
Get:11 http://kr.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5,964 B]
Get:12 http://kr.archive.ubuntu.com/ubuntu xenial-updates/multiverse DEP-11 64x64 Icons [14.3 kB]
Get:13 http://kr.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3,328 B]
Get:14 http://kr.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [5,324 B]
Get:15 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Hit:16 http://dl.google.com/linux/chrome/deb stable Release
Hit:17 http://ppa.launchpad.net/mystic-mirage/pycharm/ubuntu xenial InRelease
Err:17 http://ppa.launchpad.net/mystic-mirage/pycharm/ubuntu xenial InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY DD969F10A7E2BCD2
Hit:19 http://packages.ros.org/ros/ubuntu xenial InRelease
Hit:20 http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu xenial InRelease
Err:20 http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu xenial InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2CC98497A1231595
Hit:21 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease
Get:22 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [74.8 kB]
Err:21 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886
Get:23 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [83.8 kB]
Get:24 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [124 kB]
Get:25 http://security.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [194 kB]
Get:26 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 DEP-11 Metadata [2,464 B]
Fetched 2,070 kB in 5s (361 kB/s)
Reading package lists... Done
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://desktop-download.mendeley.com/download/apt stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D800C7D66F036044
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ppa.launchpad.net/mystic-mirage/pycharm/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY DD969F10A7E2BCD2
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2CC98497A1231595
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886
W: Failed to fetch https://desktop-download.mendeley.com/download/apt/dists/stable/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D800C7D66F036044
W: Failed to fetch http://ppa.launchpad.net/mystic-mirage/pycharm/ubuntu/dists/xenial/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY DD969F10A7E2BCD2
W: Failed to fetch http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu/dists/xenial/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2CC98497A1231595
W: Failed to fetch http://ppa.launchpad.net/webupd8team/java/ubuntu/dists/xenial/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886
W: Some index files failed to download. They have been ignored, or old ones used instead.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1

3- >>>sudo apt-get upgrade: output:
the same output of the >>>sudo apt-get -f install

4- >>>sudo apt-get dist-upgrade: output:
the same output of the >>>sudo apt-get -f install

also output: cat /usr/local/lib/python2.7/dist-packages/sort.py:

def cli():
    print('This is suroegin's package - sort')

What a mess. You aren't adding PPAs correctly and missing the keys. Hence the warnings.

You can make that better with:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D800C7D66F036044

Repeat for each missing key above in your output. This will help some.

Also run:

sudo rm /etc/apt/sources.list.d/google.list

If you now run:

sudo apt-get update

Is it smooth?

redhwan nasser (algabri) said : #6

>>> sudo apt-get update : output:

Get:1 file:/var/cuda-repo-9-0-local InRelease
Ign:1 file:/var/cuda-repo-9-0-local InRelease
Get:2 file:/var/visionworks-repo InRelease
Ign:2 file:/var/visionworks-repo InRelease
Get:3 file:/var/visionworks-sfm-repo InRelease
Ign:3 file:/var/visionworks-sfm-repo InRelease
Get:4 file:/var/visionworks-tracking-repo InRelease
Ign:4 file:/var/visionworks-tracking-repo InRelease
Get:5 file:/var/cuda-repo-9-0-local Release [574 B]
Get:6 file:/var/visionworks-repo Release [1,999 B]
Get:7 file:/var/visionworks-sfm-repo Release [2,003 B]
Get:5 file:/var/cuda-repo-9-0-local Release [574 B]
Get:8 file:/var/visionworks-tracking-repo Release [2,008 B]
Get:6 file:/var/visionworks-repo Release [1,999 B]
Get:9 file:/var/cuda-repo-9-0-local Release.gpg [819 B]
Get:7 file:/var/visionworks-sfm-repo Release [2,003 B]
Get:10 file:/var/visionworks-repo Release.gpg [819 B]
Get:8 file:/var/visionworks-tracking-repo Release [2,008 B]
Get:11 file:/var/visionworks-sfm-repo Release.gpg [819 B]
Get:9 file:/var/cuda-repo-9-0-local Release.gpg [819 B]
Get:12 file:/var/visionworks-tracking-repo Release.gpg [819 B]
Get:10 file:/var/visionworks-repo Release.gpg [819 B]
Get:11 file:/var/visionworks-sfm-repo Release.gpg [819 B]
Get:12 file:/var/visionworks-tracking-repo Release.gpg [819 B]
Hit:13 http://linux.teamviewer.com/deb stable InRelease
Ign:9 file:/var/cuda-repo-9-0-local Release.gpg
Ign:10 file:/var/visionworks-repo Release.gpg
Hit:14 https://desktop-download.mendeley.com/download/apt stable InRelease
Ign:11 file:/var/visionworks-sfm-repo Release.gpg
Hit:15 file:/var/visionworks-sfm-repo Packages
Ign:16 http://dl.google.com/linux/chrome/deb stable InRelease
Ign:12 file:/var/visionworks-tracking-repo Release.gpg
Hit:17 http://kr.archive.ubuntu.com/ubuntu xenial InRelease
Err:14 https://desktop-download.mendeley.com/download/apt stable InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D800C7D66F036044
Get:18 http://kr.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:19 http://kr.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Hit:20 http://dl.google.com/linux/chrome/deb stable Release
Ign:21 http://kr.archive.ubuntu.com/ubuntu xenial/main arm64 Packages
Ign:22 http://kr.archive.ubuntu.com/ubuntu xenial/universe arm64 Packages
Ign:23 http://kr.archive.ubuntu.com/ubuntu xenial/multiverse arm64 Packages
Ign:21 http://kr.archive.ubuntu.com/ubuntu xenial/main arm64 Packages
Ign:22 http://kr.archive.ubuntu.com/ubuntu xenial/universe arm64 Packages
Ign:23 http://kr.archive.ubuntu.com/ubuntu xenial/multiverse arm64 Packages
Ign:21 http://kr.archive.ubuntu.com/ubuntu xenial/main arm64 Packages
Ign:22 http://kr.archive.ubuntu.com/ubuntu xenial/universe arm64 Packages
Get:24 http://kr.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [1,045 kB]
Get:25 http://kr.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [867 kB]
Ign:26 http://kr.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
Get:27 http://kr.archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [405 kB]
Hit:28 http://ppa.launchpad.net/mystic-mirage/pycharm/ubuntu xenial InRelease
Get:29 http://kr.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [322 kB]
Get:30 http://kr.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [237 kB]
Get:31 http://kr.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [767 kB]
Get:32 http://kr.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [697 kB]
Ign:34 http://kr.archive.ubuntu.com/ubuntu xenial-updates/universe arm64 Packages
Err:28 http://ppa.launchpad.net/mystic-mirage/pycharm/ubuntu xenial InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY DD969F10A7E2BCD2
Get:35 http://kr.archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [321 kB]
Hit:36 http://packages.ros.org/ros/ubuntu xenial InRelease
Get:37 http://kr.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [274 kB]
Get:38 http://kr.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [413 kB]
Ign:39 http://kr.archive.ubuntu.com/ubuntu xenial-updates/multiverse arm64 Packages
Get:40 http://kr.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5,972 B]
Get:41 http://kr.archive.ubuntu.com/ubuntu xenial-updates/multiverse DEP-11 64x64 Icons [14.3 kB]
Ign:23 http://kr.archive.ubuntu.com/ubuntu xenial/multiverse arm64 Packages
Err:21 http://kr.archive.ubuntu.com/ubuntu xenial/main arm64 Packages
  404 Not Found
Ign:22 http://kr.archive.ubuntu.com/ubuntu xenial/universe arm64 Packages
Ign:26 http://kr.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
Ign:42 http://kr.archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
Get:43 http://kr.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3,324 B]
Ign:44 http://kr.archive.ubuntu.com/ubuntu xenial-backports/universe arm64 Packages
Get:45 http://kr.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [5,328 B]
Ign:34 http://kr.archive.ubuntu.com/ubuntu xenial-updates/universe arm64 Packages
Ign:39 http://kr.archive.ubuntu.com/ubuntu xenial-updates/multiverse arm64 Packages
Ign:23 http://kr.archive.ubuntu.com/ubuntu xenial/multiverse arm64 Packages
Ign:26 http://kr.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
Ign:42 http://kr.archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
Ign:44 http://kr.archive.ubuntu.com/ubuntu xenial-backports/universe arm64 Packages
Ign:34 http://kr.archive.ubuntu.com/ubuntu xenial-updates/universe arm64 Packages
Ign:39 http://kr.archive.ubuntu.com/ubuntu xenial-updates/multiverse arm64 Packages
Err:26 http://kr.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
  404 Not Found
Ign:42 http://kr.archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
Ign:44 http://kr.archive.ubuntu.com/ubuntu xenial-backports/universe arm64 Packages
Ign:34 http://kr.archive.ubuntu.com/ubuntu xenial-updates/universe arm64 Packages
Ign:39 http://kr.archive.ubuntu.com/ubuntu xenial-updates/multiverse arm64 Packages
Err:42 http://kr.archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
  404 Not Found
Ign:44 http://kr.archive.ubuntu.com/ubuntu xenial-backports/universe arm64 Packages
Hit:47 http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu xenial InRelease
Err:47 http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu xenial InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2CC98497A1231595
Get:46 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Hit:48 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease
Err:48 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886
Get:49 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [759 kB]
Get:50 http://security.ubuntu.com/ubuntu xenial-security/main i386 Packages [602 kB]
Ign:51 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Get:52 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [295 kB]
Get:53 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [74.8 kB]
Get:54 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [83.8 kB]
Get:55 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [461 kB]
Get:56 http://security.ubuntu.com/ubuntu xenial-security/universe i386 Packages [398 kB]
Ign:57 http://security.ubuntu.com/ubuntu xenial-security/universe arm64 Packages
Get:58 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [189 kB]
Get:59 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [124 kB]
Get:60 http://security.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [194 kB]
Ign:61 http://security.ubuntu.com/ubuntu xenial-security/multiverse arm64 Packages
Get:62 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 DEP-11 Metadata [2,464 B]
Ign:51 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Ign:57 http://security.ubuntu.com/ubuntu xenial-security/universe arm64 Packages
Ign:61 http://security.ubuntu.com/ubuntu xenial-security/multiverse arm64 Packages
Ign:51 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Ign:57 http://security.ubuntu.com/ubuntu xenial-security/universe arm64 Packages
Ign:61 http://security.ubuntu.com/ubuntu xenial-security/multiverse arm64 Packages
Err:51 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
  404 Not Found [IP: 91.189.88.174 80]
Ign:57 http://security.ubuntu.com/ubuntu xenial-security/universe arm64 Packages
Ign:61 http://security.ubuntu.com/ubuntu xenial-security/multiverse arm64 Packages
Fetched 325 kB in 15s (21.3 kB/s)
Reading package lists... Done
W: GPG error: file:/var/cuda-repo-9-0-local Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F60F4B3D7FA2AF80
W: The repository 'file:/var/cuda-repo-9-0-local 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.
W: GPG error: file:/var/visionworks-repo Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1A2E4274AC7A8482
W: The repository 'file:/var/visionworks-repo 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.
W: GPG error: file:/var/visionworks-sfm-repo Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1A2E4274AC7A8482
W: The repository 'file:/var/visionworks-sfm-repo 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.
W: GPG error: file:/var/visionworks-tracking-repo Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1A2E4274AC7A8482
W: The repository 'file:/var/visionworks-tracking-repo 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.
N: Skipping acquire of configured file 'main/binary-arm64/Packages' as repository 'http://linux.teamviewer.com/deb stable InRelease' doesn't support architecture 'arm64'
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://desktop-download.mendeley.com/download/apt stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D800C7D66F036044
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ppa.launchpad.net/mystic-mirage/pycharm/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY DD969F10A7E2BCD2
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2CC98497A1231595
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886
W: Failed to fetch https://desktop-download.mendeley.com/download/apt/dists/stable/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D800C7D66F036044
W: Failed to fetch http://ppa.launchpad.net/mystic-mirage/pycharm/ubuntu/dists/xenial/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY DD969F10A7E2BCD2
W: Failed to fetch http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu/dists/xenial/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2CC98497A1231595
W: Failed to fetch http://ppa.launchpad.net/webupd8team/java/ubuntu/dists/xenial/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886
E: Failed to fetch http://kr.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-arm64/Packages 404 Not Found
E: Failed to fetch http://kr.archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-arm64/Packages 404 Not Found
E: Failed to fetch http://kr.archive.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-arm64/Packages 404 Not Found
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-arm64/Packages 404 Not Found [IP: 91.189.88.174 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.

redhwan nasser (algabri) said : #7

I repeated for each missing key above but I observed nothing from them update

Manfred Hampl (m-hampl) said : #8

What is the output of the following commands:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D800C7D66F036044 DD969F10A7E2BCD2 2CC98497A1231595 C2518248EEA14886

uname -a

dpkg --print-architecture

dpkg --print-foreign-architectures

redhwan nasser (algabri) said : #9

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D800C7D66F036044 DD969F10A7E2BCD2 2CC98497A1231595 C2518248EEA14886
[sudo] password for redhwan:
Executing: /tmp/tmp.ouKplXEIbU/gpg.1.sh --keyserver
keyserver.ubuntu.com
--recv-keys
D800C7D66F036044
DD969F10A7E2BCD2
2CC98497A1231595
C2518248EEA14886
gpg: requesting key 6F036044 from hkp server keyserver.ubuntu.com
gpg: requesting key A7E2BCD2 from hkp server keyserver.ubuntu.com
gpg: requesting key A1231595 from hkp server keyserver.ubuntu.com
gpg: requesting key EEA14886 from hkp server keyserver.ubuntu.com
gpg: key 6F036044: public key "Mendeley Desktop Team <email address hidden>" imported
gpg: key A7E2BCD2: public key "Launchpad PPA for Mystic-Mirage" imported
gpg: key A1231595: public key "Launchpad PPA for Ubuntu Desktop" imported
gpg: key EEA14886: public key "Launchpad VLC" imported
gpg: Total number processed: 4
gpg: imported: 4 (RSA: 4)

redhwan nasser (algabri) said : #10

uname -a
Linux redhwan 4.15.0-64-generic #73~16.04.1-Ubuntu SMP Fri Sep 13 09:56:18 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

redhwan nasser (algabri) said : #11

uname -a
Linux redhwan 4.15.0-64-generic #73~16.04.1-Ubuntu SMP Fri Sep 13 09:56:18 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

redhwan nasser (algabri) said : #12

dpkg --print-architecture
amd64

dpkg --print-foreign-architectures
i386
arm64

redhwan nasser (algabri) said : #13

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1A2E4274AC7A8482
Executing: /tmp/tmp.1BNvCkIcUl/gpg.1.sh --keyserver
keyserver.ubuntu.com
--recv-keys
1A2E4274AC7A8482
gpg: requesting key AC7A8482 from hkp server keyserver.ubuntu.com
gpgkeys: key 1A2E4274AC7A8482 not found on keyserver
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
gpg: keyserver communications error: key not found
gpg: keyserver communications error: bad public key
gpg: keyserver receive failed: bad public key

redhwan nasser (algabri) said : #14

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1A2E4274AC7A8482
Executing: /tmp/tmp.1BNvCkIcUl/gpg.1.sh --keyserver
keyserver.ubuntu.com
--recv-keys
1A2E4274AC7A8482
gpg: requesting key AC7A8482 from hkp server keyserver.ubuntu.com
gpgkeys: key 1A2E4274AC7A8482 not found on keyserver
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
gpg: keyserver communications error: key not found
gpg: keyserver communications error: bad public key
gpg: keyserver receive failed: bad public key

Manfred Hampl (m-hampl) said : #15

I see several different problems on your system.

1. You have got a processor based an amd64 architecture, and this processor can also run i386-architecture programs. This is correctly reflected in the settings of the dpkg package management program.
For reasons unknown to me you have also activated that dpkg searches for packages with arm64 architecture. You have, however, not correctly set up your package management system for that, as this needs references to a specific "ports" server. The "normal" Ubuntu repositories (like kr.archive.ubuntu.com) do not contain the packages for arm64 architecture.

Do you really need the packages for arm64?
If yes, then you have to restructure the contents of the sources.list configuration file to look for the arm64 packages on the ports.ubuntu.com server.
If no, then you should remove the definition of arm64 as accepted architecture in dpkg.

2. You seem to be missing the signature keys for
file:/var/cuda-repo-9-0-local
file:/var/visionworks-repo
file:/var/visionworks-sfm-repo
file:/var/visionworks-tracking-repo
Which instructions did you follow to install these repositories?
Did you follow these instructions completely?

On https://samuel.netlify.com/post/install-cuda-on-ubuntu-16-04/ I see an instruction
sudo apt-key add /var/cuda-repo-9-0-local/7fa2af80.pub

redhwan nasser (algabri) said : #16

I follow this video https://www.youtube.com/watch?v=D7lkth34rgM&t=461s for these:
file:/var/cuda-repo-9-0-local
file:/var/visionworks-repo
file:/var/visionworks-sfm-repo
file:/var/visionworks-tracking-repo

for http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-arm64/Packages I would like to remove it completely, please help me by safe method. I tred used this method but I can't http://ask.xmodulo.com/find-remove-obsolete-ppa-repositories-ubuntu.html

finally, you mention above that I used them without key, please let me know how to know thier keys.

Manfred Hampl (m-hampl) said : #17

For removing the references to the arm64 architecture execute the command
sudo dpkg --remove-architecture arm64

Have you tried running the command
sudo apt-key add /var/cuda-repo-9-0-local/7fa2af80.pub
Does it work, or does it give error messages?

What is now the output of
sudo apt update

redhwan nasser (algabri) said : #18

sudo dpkg --remove-architecture arm64
[sudo] password for redhwan:
dpkg: error: cannot remove architecture 'arm64' currently in use by the database

sudo apt-key add /var/cuda-repo-9-0-local/7fa2af80.pub
OK

sudo apt update
Get:1 file:/var/cuda-repo-9-0-local InRelease
Ign:1 file:/var/cuda-repo-9-0-local InRelease
Get:2 file:/var/visionworks-repo InRelease
Ign:2 file:/var/visionworks-repo InRelease
Get:3 file:/var/visionworks-sfm-repo InRelease
Ign:3 file:/var/visionworks-sfm-repo InRelease
Get:4 file:/var/visionworks-tracking-repo InRelease
Ign:4 file:/var/visionworks-tracking-repo InRelease
Get:5 file:/var/cuda-repo-9-0-local Release [574 B]
Get:6 file:/var/visionworks-repo Release [1,999 B]
Get:7 file:/var/visionworks-sfm-repo Release [2,003 B]
Get:8 file:/var/visionworks-tracking-repo Release [2,008 B]
Get:5 file:/var/cuda-repo-9-0-local Release [574 B]
Get:6 file:/var/visionworks-repo Release [1,999 B]
Get:9 file:/var/cuda-repo-9-0-local Release.gpg [819 B]
Get:7 file:/var/visionworks-sfm-repo Release [2,003 B]
Get:10 file:/var/visionworks-repo Release.gpg [819 B]
Get:8 file:/var/visionworks-tracking-repo Release [2,008 B]
Get:11 file:/var/visionworks-sfm-repo Release.gpg [819 B]
Get:9 file:/var/cuda-repo-9-0-local Release.gpg [819 B]
Get:12 file:/var/visionworks-tracking-repo Release.gpg [819 B]
Get:10 file:/var/visionworks-repo Release.gpg [819 B]
Get:11 file:/var/visionworks-sfm-repo Release.gpg [819 B]
Get:12 file:/var/visionworks-tracking-repo Release.gpg [819 B]
Hit:13 http://kr.archive.ubuntu.com/ubuntu xenial InRelease
Get:14 http://kr.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Ign:9 file:/var/cuda-repo-9-0-local Release.gpg
Get:15 http://kr.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Ign:10 file:/var/visionworks-repo Release.gpg
Hit:16 https://desktop-download.mendeley.com/download/apt stable InRelease
Ign:11 file:/var/visionworks-sfm-repo Release.gpg
Ign:17 http://dl.google.com/linux/chrome/deb stable InRelease
Ign:12 file:/var/visionworks-tracking-repo Release.gpg
Get:18 http://kr.archive.ubuntu.com/ubuntu xenial/multiverse Sources [179 kB]
Get:19 http://kr.archive.ubuntu.com/ubuntu xenial/main Sources [868 kB]
Hit:20 http://dl.google.com/linux/chrome/deb stable Release
Get:21 http://kr.archive.ubuntu.com/ubuntu xenial/universe Sources [7,728 kB]
Get:22 http://kr.archive.ubuntu.com/ubuntu xenial/restricted Sources [4,808 B]
Err:16 https://desktop-download.mendeley.com/download/apt stable InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D800C7D66F036044
Ign:23 http://kr.archive.ubuntu.com/ubuntu xenial/main arm64 Packages
Ign:24 http://kr.archive.ubuntu.com/ubuntu xenial/universe arm64 Packages
Ign:25 http://kr.archive.ubuntu.com/ubuntu xenial/multiverse arm64 Packages
Get:26 http://kr.archive.ubuntu.com/ubuntu xenial-updates/multiverse Sources [8,744 B]
Get:27 http://kr.archive.ubuntu.com/ubuntu xenial-updates/main Sources [340 kB]
Get:29 http://kr.archive.ubuntu.com/ubuntu xenial-updates/universe Sources [262 kB]
Get:30 http://kr.archive.ubuntu.com/ubuntu xenial-updates/restricted Sources [2,536 B]
Get:31 http://kr.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [1,045 kB]
Hit:32 http://packages.ros.org/ros/ubuntu xenial InRelease
Get:33 http://kr.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [867 kB]
Get:34 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Ign:35 http://kr.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
Get:36 http://kr.archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [405 kB]
Get:37 http://kr.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [322 kB]
Get:38 http://kr.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [231 kB]
Get:39 http://kr.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [767 kB]
Get:40 http://kr.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [697 kB]
Ign:41 http://kr.archive.ubuntu.com/ubuntu xenial-updates/universe arm64 Packages
Get:42 http://kr.archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [321 kB]
Get:43 http://kr.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [274 kB]
Get:44 http://kr.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [413 kB]
Ign:45 http://kr.archive.ubuntu.com/ubuntu xenial-updates/multiverse arm64 Packages
Get:46 http://kr.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5,964 B]
Get:47 http://kr.archive.ubuntu.com/ubuntu xenial-updates/multiverse DEP-11 64x64 Icons [14.3 kB]
Get:48 http://kr.archive.ubuntu.com/ubuntu xenial-backports/main Sources [4,848 B]
Get:49 http://kr.archive.ubuntu.com/ubuntu xenial-backports/universe Sources [7,120 B]
Ign:50 http://kr.archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
Get:51 http://kr.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3,328 B]
Ign:52 http://kr.archive.ubuntu.com/ubuntu xenial-backports/universe arm64 Packages
Get:53 http://kr.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [5,328 B]
Ign:23 http://kr.archive.ubuntu.com/ubuntu xenial/main arm64 Packages
Ign:24 http://kr.archive.ubuntu.com/ubuntu xenial/universe arm64 Packages
Ign:25 http://kr.archive.ubuntu.com/ubuntu xenial/multiverse arm64 Packages
Ign:35 http://kr.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
Ign:41 http://kr.archive.ubuntu.com/ubuntu xenial-updates/universe arm64 Packages
Ign:45 http://kr.archive.ubuntu.com/ubuntu xenial-updates/multiverse arm64 Packages
Ign:50 http://kr.archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
Ign:52 http://kr.archive.ubuntu.com/ubuntu xenial-backports/universe arm64 Packages
Ign:23 http://kr.archive.ubuntu.com/ubuntu xenial/main arm64 Packages
Ign:24 http://kr.archive.ubuntu.com/ubuntu xenial/universe arm64 Packages
Ign:25 http://kr.archive.ubuntu.com/ubuntu xenial/multiverse arm64 Packages
Ign:35 http://kr.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
Ign:41 http://kr.archive.ubuntu.com/ubuntu xenial-updates/universe arm64 Packages
Ign:45 http://kr.archive.ubuntu.com/ubuntu xenial-updates/multiverse arm64 Packages
Ign:50 http://kr.archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
Ign:52 http://kr.archive.ubuntu.com/ubuntu xenial-backports/universe arm64 Packages
Err:23 http://kr.archive.ubuntu.com/ubuntu xenial/main arm64 Packages
  404 Not Found
Ign:24 http://kr.archive.ubuntu.com/ubuntu xenial/universe arm64 Packages
Ign:25 http://kr.archive.ubuntu.com/ubuntu xenial/multiverse arm64 Packages
Err:35 http://kr.archive.ubuntu.com/ubuntu xenial-updates/main arm64 Packages
  404 Not Found
Ign:41 http://kr.archive.ubuntu.com/ubuntu xenial-updates/universe arm64 Packages
Ign:45 http://kr.archive.ubuntu.com/ubuntu xenial-updates/multiverse arm64 Packages
Err:50 http://kr.archive.ubuntu.com/ubuntu xenial-backports/main arm64 Packages
  404 Not Found
Ign:52 http://kr.archive.ubuntu.com/ubuntu xenial-backports/universe arm64 Packages
Hit:54 http://ppa.launchpad.net/mystic-mirage/pycharm/ubuntu xenial InRelease
Err:54 http://ppa.launchpad.net/mystic-mirage/pycharm/ubuntu xenial InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY DD969F10A7E2BCD2
Hit:55 http://linux.teamviewer.com/deb stable InRelease
Hit:56 http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu xenial InRelease
Get:57 http://security.ubuntu.com/ubuntu xenial-security/multiverse Sources [3,404 B]
Err:56 http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu xenial InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2CC98497A1231595
Hit:58 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease
Err:58 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886
Get:59 http://security.ubuntu.com/ubuntu xenial-security/main Sources [155 kB]
Get:60 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [113 kB]
Get:61 http://security.ubuntu.com/ubuntu xenial-security/restricted Sources [2,116 B]
Get:62 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [759 kB]
Get:63 http://security.ubuntu.com/ubuntu xenial-security/main i386 Packages [602 kB]
Ign:64 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Get:65 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [295 kB]
Get:66 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [74.8 kB]
Get:67 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [83.8 kB]
Get:68 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [461 kB]
Get:69 http://security.ubuntu.com/ubuntu xenial-security/universe i386 Packages [398 kB]
Ign:70 http://security.ubuntu.com/ubuntu xenial-security/universe arm64 Packages
Get:71 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [189 kB]
Get:72 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [124 kB]
Get:73 http://security.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [194 kB]
Ign:74 http://security.ubuntu.com/ubuntu xenial-security/multiverse arm64 Packages
Get:75 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 DEP-11 Metadata [2,464 B]
Ign:64 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Ign:70 http://security.ubuntu.com/ubuntu xenial-security/universe arm64 Packages
Ign:74 http://security.ubuntu.com/ubuntu xenial-security/multiverse arm64 Packages
Ign:64 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
Ign:70 http://security.ubuntu.com/ubuntu xenial-security/universe arm64 Packages
Ign:74 http://security.ubuntu.com/ubuntu xenial-security/multiverse arm64 Packages
Err:64 http://security.ubuntu.com/ubuntu xenial-security/main arm64 Packages
  404 Not Found [IP: 91.189.88.149 80]
Ign:70 http://security.ubuntu.com/ubuntu xenial-security/universe arm64 Packages
Ign:74 http://security.ubuntu.com/ubuntu xenial-security/multiverse arm64 Packages
Reading package lists... Done
W: GPG error: file:/var/cuda-repo-9-0-local Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F60F4B3D7FA2AF80
E: The repository 'file:/var/cuda-repo-9-0-local 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: GPG error: file:/var/visionworks-repo Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1A2E4274AC7A8482
E: The repository 'file:/var/visionworks-repo 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: GPG error: file:/var/visionworks-sfm-repo Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1A2E4274AC7A8482
E: The repository 'file:/var/visionworks-sfm-repo 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: GPG error: file:/var/visionworks-tracking-repo Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1A2E4274AC7A8482
E: The repository 'file:/var/visionworks-tracking-repo 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: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://desktop-download.mendeley.com/download/apt stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D800C7D66F036044
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ppa.launchpad.net/mystic-mirage/pycharm/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY DD969F10A7E2BCD2
N: Skipping acquire of configured file 'main/binary-arm64/Packages' as repository 'http://linux.teamviewer.com/deb stable InRelease' doesn't support architecture 'arm64'
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2CC98497A1231595
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886

redhwan nasser (algabri) said : #19

 sudo apt-get update | grep "Failed"
W: GPG error: file:/var/cuda-repo-9-0-local Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F60F4B3D7FA2AF80
W: The repository 'file:/var/cuda-repo-9-0-local Release' is not signed.
W: GPG error: file:/var/visionworks-repo Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1A2E4274AC7A8482
W: The repository 'file:/var/visionworks-repo Release' is not signed.
W: GPG error: file:/var/visionworks-sfm-repo Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1A2E4274AC7A8482
W: The repository 'file:/var/visionworks-sfm-repo Release' is not signed.
W: GPG error: file:/var/visionworks-tracking-repo Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1A2E4274AC7A8482
W: The repository 'file:/var/visionworks-tracking-repo Release' is not signed.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://desktop-download.mendeley.com/download/apt stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D800C7D66F036044
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ppa.launchpad.net/mystic-mirage/pycharm/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY DD969F10A7E2BCD2
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2CC98497A1231595
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886
W: Failed to fetch https://desktop-download.mendeley.com/download/apt/dists/stable/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D800C7D66F036044
W: Failed to fetch http://ppa.launchpad.net/mystic-mirage/pycharm/ubuntu/dists/xenial/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY DD969F10A7E2BCD2
W: Failed to fetch http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu/dists/xenial/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2CC98497A1231595
W: Failed to fetch http://ppa.launchpad.net/webupd8team/java/ubuntu/dists/xenial/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886
E: Failed to fetch http://kr.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-arm64/Packages 404 Not Found
E: Failed to fetch http://kr.archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-arm64/Packages 404 Not Found
E: Failed to fetch http://kr.archive.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-arm64/Packages 404 Not Found
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-arm64/Packages 404 Not Found [IP: 91.189.88.173 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.

redhwan nasser (algabri) said : #20

I choose the system is 64-bit, why do you want that I remove it?

Manfred Hampl (m-hampl) said : #21

Don't confuse amd64 and arm64!
amd64 is the 64-bit version of Intel/AMD processors (based on x86 architecture)
arm64 is for a completely different type of CPUs, based on a reduced instruction set (RISC), e.g. those in smartphones.

What is the output of the commands

dpkg --get-selections | awk '/arm64/{print $1}'

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 1A2E4274AC7A8482 2CC98497A1231595 C2518248EEA14886 D800C7D66F036044 DD969F10A7E2BCD2 F60F4B3D7FA2AF80

redhwan nasser (algabri) said : #22

frist of all, thank you to explain to me.

dpkg --get-selections | awk '/arm64/{print $1}'
cuda-cublas-cross-aarch64-9-0:arm64
cuda-cudart-cross-aarch64-9-0:arm64
cuda-cufft-cross-aarch64-9-0:arm64
cuda-curand-cross-aarch64-9-0:arm64
cuda-cusolver-cross-aarch64-9-0:arm64
cuda-cusparse-cross-aarch64-9-0:arm64
cuda-driver-cross-aarch64-9-0:arm64
cuda-misc-headers-cross-aarch64-9-0:arm64
cuda-npp-cross-aarch64-9-0:arm64
cuda-nvgraph-cross-aarch64-9-0:arm64
cuda-nvml-cross-aarch64-9-0:arm64
cuda-nvrtc-cross-aarch64-9-0:arm64
libasan2-arm64-cross
libatomic1-arm64-cross
libc6-arm64-cross
libc6-dev-arm64-cross
libgcc-5-dev-arm64-cross
libgcc1-arm64-cross
libgomp1-arm64-cross
libitm1-arm64-cross
libstdc++-5-dev-arm64-cross
libstdc++6-arm64-cross
libubsan0-arm64-cross
linux-libc-dev-arm64-cross

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 1A2E4274AC7A8482 2CC98497A1231595 C2518248EEA14886 D800C7D66F036044 DD969F10A7E2BCD2 F60F4B3D7FA2AF80
[sudo] password for redhwan:
Executing: /tmp/tmp.7DXjDBf0Ii/gpg.1.sh --keyserver
keyserver.ubuntu.com
--recv
1A2E4274AC7A8482
2CC98497A1231595
C2518248EEA14886
D800C7D66F036044
DD969F10A7E2BCD2
F60F4B3D7FA2AF80
gpg: requesting key AC7A8482 from hkp server keyserver.ubuntu.com
gpg: requesting key A1231595 from hkp server keyserver.ubuntu.com
gpg: requesting key EEA14886 from hkp server keyserver.ubuntu.com
gpg: requesting key 6F036044 from hkp server keyserver.ubuntu.com
gpg: requesting key A7E2BCD2 from hkp server keyserver.ubuntu.com
gpg: requesting key 7FA2AF80 from hkp server keyserver.ubuntu.com
gpgkeys: key 1A2E4274AC7A8482 not found on keyserver
gpg: key A1231595: public key "Launchpad PPA for Ubuntu Desktop" imported
gpg: key EEA14886: public key "Launchpad VLC" imported
gpg: key 6F036044: public key "Mendeley Desktop Team <email address hidden>" imported
gpg: key A7E2BCD2: public key "Launchpad PPA for Mystic-Mirage" imported
gpg: key 7FA2AF80: public key "cudatools <email address hidden>" imported
gpg: Total number processed: 5
gpg: imported: 5 (RSA: 5)
gpg: keyserver communications error: key not found
gpg: keyserver communications error: bad public key
gpg: keyserver receive failed: bad public key

Manfred Hampl (m-hampl) said : #23

What exactly is your aim?
Do you want to do cross compilation on your Ubuntu system for a different system that has an arm processor?
Only in that case you need the arm packages.

redhwan nasser (algabri) said : #24

for cuda-cublas-cross-aarch64-9-0:arm64
cuda-cudart-cross-aarch64-9-0:arm64
cuda-cufft-cross-aarch64-9-0:arm64
cuda-curand-cross-aarch64-9-0:arm64
cuda-cusolver-cross-aarch64-9-0:arm64
cuda-cusparse-cross-aarch64-9-0:arm64
cuda-driver-cross-aarch64-9-0:arm64
cuda-misc-headers-cross-aarch64-9-0:arm64
cuda-npp-cross-aarch64-9-0:arm64
cuda-nvgraph-cross-aarch64-9-0:arm64
cuda-nvml-cross-aarch64-9-0:arm64
cuda-nvrtc-cross-aarch64-9-0:arm64,

 I used it to install ubuntu in Jetson TX2. I did it. I currently don't need it.

For these:
E: Failed to fetch http://kr.archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-arm64/Packages 404 Not Found
E: Failed to fetch http://kr.archive.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-arm64/Packages 404 Not Found
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-arm64/Packages 404 Not Found [IP: 91.189.88.173 80]

I tried to install an app ( kakao talk)in my PC that it is application use in smartphone.

Manfred Hampl (m-hampl) said : #25

I suggest that you execute the following commands:

sudo apt purge cuda-cublas-cross-aarch64-9-0:arm64 cuda-cudart-cross-aarch64-9-0:arm64 cuda-cufft-cross-aarch64-9-0:arm64 cuda-curand-cross-aarch64-9-0:arm64 cuda-cusolver-cross-aarch64-9-0:arm64 cuda-cusparse-cross-aarch64-9-0:arm64 cuda-driver-cross-aarch64-9-0:arm64 cuda-misc-headers-cross-aarch64-9-0:arm64 cuda-npp-cross-aarch64-9-0:arm64 cuda-nvgraph-cross-aarch64-9-0:arm64 cuda-nvml-cross-aarch64-9-0:arm64 cuda-nvrtc-cross-aarch64-9-0:arm64

sudo dpkg --remove-architecture arm64

If you then run the command
sudo apt update
what output do you receive?

redhwan nasser (algabri) said : #26

sudo apt update
Get:1 file:/var/cuda-repo-9-0-local InRelease
Ign:1 file:/var/cuda-repo-9-0-local InRelease
Get:2 file:/var/visionworks-repo InRelease
Ign:2 file:/var/visionworks-repo InRelease
Get:3 file:/var/visionworks-sfm-repo InRelease
Ign:3 file:/var/visionworks-sfm-repo InRelease
Get:4 file:/var/visionworks-tracking-repo InRelease
Ign:4 file:/var/visionworks-tracking-repo InRelease
Get:5 file:/var/cuda-repo-9-0-local Release [574 B]
Get:6 file:/var/visionworks-repo Release [1,999 B]
Get:7 file:/var/visionworks-sfm-repo Release [2,003 B]
Get:8 file:/var/visionworks-tracking-repo Release [2,008 B]
Get:5 file:/var/cuda-repo-9-0-local Release [574 B]
Get:6 file:/var/visionworks-repo Release [1,999 B]
Get:9 file:/var/cuda-repo-9-0-local Release.gpg [819 B]
Get:7 file:/var/visionworks-sfm-repo Release [2,003 B]
Get:10 file:/var/visionworks-repo Release.gpg [819 B]
Get:8 file:/var/visionworks-tracking-repo Release [2,008 B]
Get:11 file:/var/visionworks-sfm-repo Release.gpg [819 B]
Get:9 file:/var/cuda-repo-9-0-local Release.gpg [819 B]
Get:12 file:/var/visionworks-tracking-repo Release.gpg [819 B]
Get:10 file:/var/visionworks-repo Release.gpg [819 B]
Get:11 file:/var/visionworks-sfm-repo Release.gpg [819 B]
Get:12 file:/var/visionworks-tracking-repo Release.gpg [819 B]
Hit:13 http://linux.teamviewer.com/deb stable InRelease
Hit:14 http://kr.archive.ubuntu.com/ubuntu xenial InRelease
Hit:15 http://kr.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:16 http://kr.archive.ubuntu.com/ubuntu xenial-backports InRelease
Ign:9 file:/var/cuda-repo-9-0-local Release.gpg
Ign:17 http://dl.google.com/linux/chrome/deb stable InRelease
Ign:10 file:/var/visionworks-repo Release.gpg
Hit:18 https://desktop-download.mendeley.com/download/apt stable InRelease
Ign:11 file:/var/visionworks-sfm-repo Release.gpg
Ign:12 file:/var/visionworks-tracking-repo Release.gpg
Hit:19 http://dl.google.com/linux/chrome/deb stable Release
Hit:20 http://packages.ros.org/ros/ubuntu xenial InRelease
Hit:21 http://ppa.launchpad.net/mystic-mirage/pycharm/ubuntu xenial InRelease
Hit:22 http://security.ubuntu.com/ubuntu xenial-security InRelease
Err:18 https://desktop-download.mendeley.com/download/apt stable InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D800C7D66F036044
Err:21 http://ppa.launchpad.net/mystic-mirage/pycharm/ubuntu xenial InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY DD969F10A7E2BCD2
Hit:24 http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu xenial InRelease
Err:24 http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu xenial InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2CC98497A1231595
Hit:25 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease
Err:25 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886
Reading package lists... Done
W: GPG error: file:/var/cuda-repo-9-0-local Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F60F4B3D7FA2AF80
E: The repository 'file:/var/cuda-repo-9-0-local 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: GPG error: file:/var/visionworks-repo Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1A2E4274AC7A8482
E: The repository 'file:/var/visionworks-repo 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: GPG error: file:/var/visionworks-sfm-repo Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1A2E4274AC7A8482
E: The repository 'file:/var/visionworks-sfm-repo 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: GPG error: file:/var/visionworks-tracking-repo Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1A2E4274AC7A8482
E: The repository 'file:/var/visionworks-tracking-repo 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: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://desktop-download.mendeley.com/download/apt stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D800C7D66F036044
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ppa.launchpad.net/mystic-mirage/pycharm/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY DD969F10A7E2BCD2
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ppa.launchpad.net/ubuntu-desktop/ubuntu-make/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2CC98497A1231595
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886

Manfred Hampl (m-hampl) said : #27

This is a bit strange.

Earlier you had the Output

gpg: key A1231595: public key "Launchpad PPA for Ubuntu Desktop" imported
gpg: key EEA14886: public key "Launchpad VLC" imported
gpg: key 6F036044: public key "Mendeley Desktop Team <email address hidden>" imported
gpg: key A7E2BCD2: public key "Launchpad PPA for Mystic-Mirage" imported
gpg: key 7FA2AF80: public key "cudatools <email address hidden>" imported

but now it again says
NO_PUBKEY 2CC98497A1231595
NO_PUBKEY D800C7D66F036044
NO_PUBKEY F60F4B3D7FA2AF80

What is the output of the command

apt-key list

redhwan nasser (algabri) said : #28

apt-key list
/etc/apt/trusted.gpg
--------------------
pub 1024D/437D05B5 2004-09-12
uid Ubuntu Archive Automatic Signing Key <email address hidden>
sub 2048g/79164387 2004-09-12

pub 4096R/C0B21F32 2012-05-11
uid Ubuntu Archive Automatic Signing Key (2012) <email address hidden>

pub 4096R/EFE21092 2012-05-11
uid Ubuntu CD Image Automatic Signing Key (2012) <email address hidden>

pub 1024D/FBB75451 2004-12-30
uid Ubuntu CD Image Automatic Signing Key <email address hidden>

pub 1024D/7FAC5991 2007-03-08
uid Google, Inc. Linux Package Signing Key <email address hidden>
sub 2048g/C07CB649 2007-03-08

pub 4096R/D38B4796 2016-04-12
uid Google Inc. (Linux Packages Signing Authority) <email address hidden>
sub 4096R/997C215E 2017-01-24 [expires: 2020-01-24]
sub 4096R/3CB3BD13 2019-07-22 [expires: 2022-07-21]

pub 4096R/AB17C654 2019-05-30 [expires: 2021-05-29]
uid Open Robotics <email address hidden>

pub 4096R/0C1289C0 2017-03-13
uid TeamViewer GmbH (TeamViewer Linux 2017) <email address hidden>
sub 4096R/AED41BD0 2017-03-13

Manfred Hampl (m-hampl) said : #29

Now please execute

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 2CC98497A1231595 C2518248EEA14886 D800C7D66F036044 DD969F10A7E2BCD2 F60F4B3D7FA2AF80

apt-key list

and copy/paste all output.

redhwan nasser (algabri) said : #30

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 2CC98497A1231595 C2518248EEA14886 D800C7D66F036044 DD969F10A7E2BCD2 F60F4B3D7FA2AF80
[sudo] password for redhwan:
Executing: /tmp/tmp.DRbAT3WXBR/gpg.1.sh --keyserver
keyserver.ubuntu.com
--recv
2CC98497A1231595
C2518248EEA14886
D800C7D66F036044
DD969F10A7E2BCD2
F60F4B3D7FA2AF80
gpg: requesting key A1231595 from hkp server keyserver.ubuntu.com
gpg: requesting key EEA14886 from hkp server keyserver.ubuntu.com
gpg: requesting key 6F036044 from hkp server keyserver.ubuntu.com
gpg: requesting key A7E2BCD2 from hkp server keyserver.ubuntu.com
gpg: requesting key 7FA2AF80 from hkp server keyserver.ubuntu.com
gpg: key A1231595: public key "Launchpad PPA for Ubuntu Desktop" imported
gpg: key EEA14886: public key "Launchpad VLC" imported
gpg: key 6F036044: public key "Mendeley Desktop Team <email address hidden>" imported
gpg: key A7E2BCD2: public key "Launchpad PPA for Mystic-Mirage" imported
gpg: key 7FA2AF80: public key "cudatools <email address hidden>" imported
gpg: Total number processed: 5
gpg: imported: 5 (RSA: 5)

apt-key list
/etc/apt/trusted.gpg
--------------------
pub 1024D/437D05B5 2004-09-12
uid Ubuntu Archive Automatic Signing Key <email address hidden>
sub 2048g/79164387 2004-09-12

pub 4096R/C0B21F32 2012-05-11
uid Ubuntu Archive Automatic Signing Key (2012) <email address hidden>

pub 4096R/EFE21092 2012-05-11
uid Ubuntu CD Image Automatic Signing Key (2012) <email address hidden>

pub 1024D/FBB75451 2004-12-30
uid Ubuntu CD Image Automatic Signing Key <email address hidden>

pub 1024D/7FAC5991 2007-03-08
uid Google, Inc. Linux Package Signing Key <email address hidden>
sub 2048g/C07CB649 2007-03-08

pub 4096R/D38B4796 2016-04-12
uid Google Inc. (Linux Packages Signing Authority) <email address hidden>
sub 4096R/997C215E 2017-01-24 [expires: 2020-01-24]
sub 4096R/3CB3BD13 2019-07-22 [expires: 2022-07-21]

pub 4096R/AB17C654 2019-05-30 [expires: 2021-05-29]
uid Open Robotics <email address hidden>

pub 4096R/0C1289C0 2017-03-13
uid TeamViewer GmbH (TeamViewer Linux 2017) <email address hidden>
sub 4096R/AED41BD0 2017-03-13

Manfred Hampl (m-hampl) said : #31

This is unexpected. After importing the keys they should be listed.

WHat is the output of

ls -al /etc/apt/*.gpg*

redhwan nasser (algabri) said : #32

ls -al /etc/apt/*.gpg*
-rw-r--r-- 1 root root 23106 9월 2 14:45 /etc/apt/trusted.gpg
-rw-r--r-- 1 root root 20859 8월 25 17:50 /etc/apt/trusted.gpg~

/etc/apt/trusted.gpg.d:
total 32
drwxr-xr-x 2 root root 4096 9월 25 17:46 .
drwxr-xr-x 7 root root 4096 9월 2 14:45 ..
-rw-r--r-- 1 root root 1203 8월 25 18:43 mendeleydesktop.gpg
-rw-r--r-- 1 root root 366 8월 26 14:24 mystic-mirage_ubuntu_pycharm.gpg
-rw-r--r-- 1 root root 0 8월 26 14:24 mystic-mirage_ubuntu_pycharm.gpg~
-rw-r--r-- 1 root root 6086 8월 26 14:16 ubuntu-desktop_ubuntu_ubuntu-make.gpg
-rw-r--r-- 1 root root 0 8월 26 14:16 ubuntu-desktop_ubuntu_ubuntu-make.gpg~
-rw-r--r-- 1 root root 6570 9월 25 17:46 webupd8team_ubuntu_java.gpg
-rw-r--r-- 1 root root 0 9월 25 17:46 webupd8team_ubuntu_java.gpg~

Can you help with this problem?

Provide an answer of your own, or ask redhwan nasser for more information if necessary.

To post a message you must log in.