не может установить обновления R Поскольку они «Requre установка ненадежных пакетов» либо не может обновлять истекший ключ (Ubuntu 16.04 LTS)

У меня была эта проблема в течение некоторого времени. Во-первых, я попытался обновить свое программное обеспечение через программное обновление. Мне удалось за все пакеты, кроме как r (программное обеспечение с открытым исходным кодом). Я получил следующее сообщение об ошибке

Это требует установки пакетов из неэташных источников.

Затем я пытался обновить пакеты через терминал:

Sudo APT-Get Update

Это не сработало.

Hit:2 http://ppa.launchpad.net/alexlarsson/flatpak/ubuntu xenial InRelease     
Ign:3 http://dell.archive.canonical.com/updates xenial-dell-service InRelease  
Hit:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease                
Hit:5 http://dl.google.com/linux/chrome/deb stable InRelease                   
Ign:6 http://dell.archive.canonical.com/updates xenial-dell-turis-vegas-mlk-kbl InRelease
Hit:7 http://archive.ubuntu.com/ubuntu xenial-backports InRelease              
Hit:8 http://ppa.launchpad.net/codeblocks-devs/release/ubuntu xenial InRelease 
Hit:9 http://archive.canonical.com/ubuntu xenial InRelease                     
Hit:10 http://dell.archive.canonical.com/updates xenial-dell InRelease         
Hit:11 http://dell.archive.canonical.com/updates xenial-dell-service Release   
Hit:12 http://security.ubuntu.com/ubuntu xenial-security InRelease             
Hit:13 http://ppa.launchpad.net/nathan-renniewaldock/flux/ubuntu xenial InRelease
Hit:14 http://dell.archive.canonical.com/updates xenial-dell-turis-vegas-mlk-kbl Release
Get:15 https://cloud.r-project.org/bin/linux/ubuntu xenial-cran35/ InRelease [3625 B]
Ign:15 https://cloud.r-project.org/bin/linux/ubuntu xenial-cran35/ InRelease
Fetched 3625 B in 0s (4471 B/s)
Reading package lists... Done
W: GPG error: https://cloud.r-project.org/bin/linux/ubuntu xenial-cran35/ InRelease: The following signatures were invalid: KEYEXPIRED 1602869253  KEYEXPIRED 1602869253  KEYEXPIRED 1602869253
W: The repository 'https://cloud.r-project.org/bin/linux/ubuntu xenial-cran35/ InRelease' 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.```


I looked around the web for an answer and I found out that most likely the key has expired so I checked:

```apt-key list|grep "expired:"```

This is the output I got:

```pub   2048R/E084DAB9 2010-10-19 [expired: 2020-10-16]```

Then I tried to renew the expired key:

```gpg --keyserver keys.gnupg.net --recv E084DAB9```

```gpg: requesting key E084DAB9 from hkp server keys.gnupg.net
?: keys.gnupg.net: Host not found
gpgkeys: HTTP fetch error 7: couldn't connect: Success
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
gpg: keyserver communications error: keyserver unreachable
gpg: keyserver communications error: public key not found
gpg: keyserver receive failed: public key not found```

Nothing happened, so I tried again with another keyserver:

```gpg --keyserver keyserver.ubuntu.com --recv E084DAB9```

```gpg: requesting key E084DAB9 from hkp server keyserver.ubuntu.com
gpg: /home/mainuser/.gnupg/trustdb.gpg: trustdb created
gpg: key E084DAB9: public key "Totally Legit Signing Key <mallory@example.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)```

Then I tried ```sudo apt-get update``` again, and got the same error from before. 

Has anyone had the same problem? I have run out of ideas how to fix the expired key issue.

-----------------------

Update - tried this as well 

```gpg --export --armor E084DAB9 | sudo apt-key add - ``` (from askubuntu.com/questions/117015/…), still can't install updates. 

Tried ```sudo apt-get install --allow-unauthenticated exiv2``` as well, no difference.
1
задан 4 March 2021 в 16:10

1 ответ

У вас есть к безопасному APT

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

или

gpg -a --export E298A3A825C0D65DFD57CBB651716619E084DAB9 | sudo apt-key add -

, а затем повторите попытку с UPDO APT-Get .

0
ответ дан 18 March 2021 в 23:29

Другие вопросы по тегам:

Похожие вопросы: