Ошибка при обновлении списка пакетов на свежем Stretch

Автор alexus, 27 июня 2017, 14:17:34

« назад - далее »

0 Пользователи и 1 гость просматривают эту тему.

alexus

Добрый день! Помогите пожалуйста решить проблему:
Свежеустановленная система 9.0 при обновлении списка пакетов в синаптике, ровно как и через apt-get update выдает ошибки:

Скрытый текст

W: http://ftp.ru.debian.org/debian/dists/stretch-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://ftp.ru.debian.org/debian/dists/stretch/Release.gpg: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://security.debian.org/dists/stretch/updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
[свернуть]

как устранить их? Спасибо.

ecc83


ChubaDuba

Копируете и сохраняете /etc/apt/trusted.gpg под другим именем например, /etc/apt/trusted.gpg.old
Затем удаляете файл trusted.gpg:
# rm /etc/apt/trusted.gpg
Обновляете ключи:
# apt-key update

alexus

Цитата: ChubaDuba от 27 июня 2017, 15:45:13Обновляете ключи:
Код: [Выделить]
# apt-key update

спасибо за ответ, последняя команда выдает ответ:
sudo apt-key update
Warning: 'apt-key update' is deprecated and should not be used anymore!
Note: In your distribution this command is a no-op and can therefore be removed safely.

эта команда больше не используется говорит

ChubaDuba

Попробуйте переустановить пакет debian-archive-keyring

alexus

Обновление ничего не изменило..
Цитата: ChubaDuba от 27 июня 2017, 21:09:21Попробуйте переустановить пакет debian-archive-keyring
Обновление ничего не изменило..

ferum

Если честно на отдельно взятый момент мне не нравится как работает именно это зеркало репозитория. Думаю надо попробовать другой источник.
Русские дебианщики против цифрового слабоумия !

Эрнст

ТС не одинок в своей беде. Так же испытываю такую же проблему.

n.pavka

#8
Добрый день. Проблема при apt-get update
Игн:1 http://ftp.by.debian.org/debian stretch InRelease
Сущ:2 http://ftp.by.debian.org/debian stretch-updates InRelease               
Сущ:3 http://ftp.by.debian.org/debian stretch Release                         
Сущ:4 http://security.debian.org stretch/updates InRelease                     
Сущ:5 http://www.deb-multimedia.org stretch InRelease                         
Игн:6 http://deb.debian.org/debian stretch InRelease                           
Сущ:7 http://www.deb-multimedia.org stretch-backports InRelease               
Сущ:8 http://deb.debian.org/debian stretch-updates InRelease                   
Сущ:9 http://deb.debian.org/debian stretch-proposed-updates InRelease         
Сущ:10 http://deb.debian.org/debian stretch Release                           
Пол:13 https://repo.skype.com/deb stable InRelease [4 487 B]                   
Пол:11 http://deb.torproject.org/torproject.org stable InRelease [4 230 B]
Пол:14 https://deb.opera.com/opera-stable stable InRelease [2 592 B]
Игн:13 https://repo.skype.com/deb stable InRelease         
Игн:11 http://deb.torproject.org/torproject.org stable InRelease
Игн:14 https://deb.opera.com/opera-stable stable InRelease
Получено 11,3 kБ за 1с (6 491 Б/c)
Чтение списков пакетов... Готово
W: http://ftp.by.debian.org/debian/dists/stretch-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://ftp.by.debian.org/debian/dists/stretch/Release.gpg: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://security.debian.org/dists/stretch/updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://www.deb-multimedia.org/dists/stretch/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://www.deb-multimedia.org/dists/stretch-backports/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://deb.debian.org/debian/dists/stretch-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://deb.debian.org/debian/dists/stretch-proposed-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://deb.debian.org/debian/dists/stretch/Release.gpg: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: https://repo.skype.com/deb/dists/stable/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: Ошибка GPG: https://repo.skype.com/deb stable InRelease: Следующие подписи не могут быть проверены, так как недоступен открытый ключ: NO_PUBKEY 1F3045A5DF7587C3
W: Репозиторий «https://repo.skype.com/deb stable InRelease» не подписан.
N: Данные из этого репозитория нельзя аутентифицировать, и поэтому потенциально из небезопасно использовать.
N: Смотрите справочную страницу apt-secure(8) о создании репозитория и настройке пользователя.
W: http://deb.torproject.org/torproject.org/dists/stable/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: Ошибка GPG: http://deb.torproject.org/torproject.org stable InRelease: Следующие подписи не могут быть проверены, так как недоступен открытый ключ: NO_PUBKEY 74A941BA219EC810
W: Репозиторий «http://deb.torproject.org/torproject.org stable InRelease» не подписан.
N: Данные из этого репозитория нельзя аутентифицировать, и поэтому потенциально из небезопасно использовать.
N: Смотрите справочную страницу apt-secure(8) о создании репозитория и настройке пользователя.
W: https://deb.opera.com/opera-stable/dists/stable/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: Ошибка GPG: https://deb.opera.com/opera-stable stable InRelease: Следующие подписи не могут быть проверены, так как недоступен открытый ключ: NO_PUBKEY D615560BA5C7FF72
W: Репозиторий «https://deb.opera.com/opera-stable stable InRelease» не подписан.
N: Данные из этого репозитория нельзя аутентифицировать, и поэтому потенциально из небезопасно использовать.
N: Смотрите справочную страницу apt-secure(8) о создании репозитория и настройке пользователя.


Cообщение объединено 05 июля 2017, 23:26:13

apt-key update

Warning: 'apt-key update' is deprecated and should not be used anymore!
Note: In your distribution this command is a no-op and can therefore be removed safely.

mrgoodvin

#9
Пробуйте чистый репозиторий без лишнего, удаляя все ключи (кроме родного дистрибутива) и перед удалением ключей комментировать всё лишнее в sources.list. Если что-то нужно, импортироватьпереустановить ключи заново. Можно также глануть вывод apt-key list и тоже почистить лишнее.
Цитата: n.pavka от 05 июля 2017, 23:23:11Warning: 'apt-key update' is deprecated and should not be used anymore!
Что есть то есть :). Может отказываются с точки зрения безопасности, не знаю  ???. apt-key net-update остаеться в будущем (может даже далеком  ;)).
Если ничего не поможет, на крайний случай удалять все "левые пакеты" и переустанавливать их заново, и тогда можно будет увидеть проблемы явно. И снова же - перед этим делом, убедиться в отсутствии проблем с официальным репозиторием.

Cообщение объединено 06 июля 2017, 01:45:23

Забыл добавить, если по какой-то случайности удалите ключи дистрибутива (мало что может случиться :) ), нужно выполнить sudo apt-key add /usr/share/keyrings/debian-archive-keyring.gpg

n.pavka

Цитата: mrgoodvin от 06 июля 2017, 00:27:44Пробуйте чистый репозиторий без лишнего, удаляя все ключи (кроме родного дистрибутива) и перед удалением ключей комментировать всё лишнее в sources.list. Если что-то нужно, импортироватьпереустановить ключи заново. Можно также глануть вывод apt-key list и тоже почистить лишнее.
Спасибо за ответ, такая же мысля пришла, полностью очистил  sources.list. затем удалил пакеты opera, skupe, tor в затем зашел в synaptik в настройки репозитария удалили все не официальные репы от этих пакетов и репозитарий мультимедия дебиан, затем в synaptik в настройки репозитария поставил галочки для выбора ПО и выбрал загрузку с официального Сервера, соответственно он сам прописал мне sources.list.
  GNU nano 2.7.4                                                 Файл: /etc/apt/sources.list                                                         

deb http://deb.debian.org/debian/ stretch contrib non-free main
deb-src http://deb.debian.org/debian/ stretch contrib non-free main #Added by software-properties
deb http://security.debian.org/ stretch/updates contrib non-free main
deb http://deb.debian.org/debian/ stretch-updates contrib non-free main

в ручную дописал deb-src и получил следующее
                                                       

deb http://deb.debian.org/debian/ stretch contrib non-free main
deb-src http://deb.debian.org/debian/ stretch contrib non-free main #Added by software-properties
deb http://security.debian.org/ stretch/updates contrib non-free main
deb-src http://security.debian.org/ stretch/updates contrib non-free main
deb http://deb.debian.org/debian/ stretch-updates contrib non-free main
deb-src http://deb.debian.org/debian/ stretch-updates contrib non-free main

Делаю  apt-get update и получаю
Сущ:1 http://security.debian.org stretch/updates InRelease
Игн:2 http://deb.debian.org/debian stretch InRelease                 
Сущ:3 http://deb.debian.org/debian stretch-updates InRelease         
Сущ:4 http://deb.debian.org/debian stretch Release                   
Чтение списков пакетов... Готово                                       
W: http://security.debian.org/dists/stretch/updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://deb.debian.org/debian/dists/stretch-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://deb.debian.org/debian/dists/stretch/Release.gpg: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.


Опять 25  >:(

смотрим apt-key list
может вы увидите что сверхъестественное
/etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg
----------------------------------------------------------
pub   rsa4096 2014-11-21 [SC] [expires: 2022-11-19]
      126C 0D24 BD8A 2942 CC7D  F8AC 7638 D044 2B90 D010
uid           [ unknown] Debian Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>

/etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg
-------------------------------------------------------------------
pub   rsa4096 2014-11-21 [SC] [expires: 2022-11-19]
      D211 6914 1CEC D440 F2EB  8DDA 9D6D 8F6B C857 C906
uid           [ unknown] Debian Security Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>

/etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg
-------------------------------------------------------
pub   rsa4096 2013-08-17 [SC] [expires: 2021-08-15]
      75DD C3C4 A499 F1A1 8CB5  F3C8 CBF8 D6FD 518E 17E1
uid           [ unknown] Jessie Stable Release Key <debian-release@lists.debian.org>

/etc/apt/trusted.gpg.d/debian-archive-stretch-automatic.gpg
-----------------------------------------------------------
pub   rsa4096 2017-05-22 [SC] [expires: 2025-05-20]
      E1CF 20DD FFE4 B89E 8026  58F1 E0B1 1894 F66A EC98
uid           [ unknown] Debian Archive Automatic Signing Key (9/stretch) <ftpmaster@debian.org>
sub   rsa4096 2017-05-22 [S] [expires: 2025-05-20]

/etc/apt/trusted.gpg.d/debian-archive-stretch-security-automatic.gpg
--------------------------------------------------------------------
pub   rsa4096 2017-05-22 [SC] [expires: 2025-05-20]
      6ED6 F5CB 5FA6 FB2F 460A  E88E EDA0 D238 8AE2 2BA9
uid           [ unknown] Debian Security Archive Automatic Signing Key (9/stretch) <ftpmaster@debian.org>
sub   rsa4096 2017-05-22 [S] [expires: 2025-05-20]

/etc/apt/trusted.gpg.d/debian-archive-stretch-stable.gpg
--------------------------------------------------------
pub   rsa4096 2017-05-20 [SC] [expires: 2025-05-18]
      067E 3C45 6BAE 240A CEE8  8F6F EF0F 382A 1A7B 6500
uid           [ unknown] Debian Stable Release Key (9/stretch) <debian-release@lists.debian.org>

/etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg
----------------------------------------------------------
pub   rsa4096 2012-04-27 [SC] [expires: 2020-04-25]
      A1BD 8E9D 78F7 FE5C 3E65  D8AF 8B48 AD62 4692 5553
uid           [ unknown] Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian.org>

/etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg
-------------------------------------------------------
pub   rsa4096 2012-05-08 [SC] [expires: 2019-05-07]
      ED6D 6527 1AAC F0FF 15D1  2303 6FB2 A1C2 65FF B764
uid           [ unknown] Wheezy Stable Release Key <debian-release@lists.debian.org>

/etc/apt/trusted.gpg.d/deb-multimedia-keyring.gpg
-------------------------------------------------
pub   rsa4096 2014-03-05 [SC]
      A401 FF99 368F A1F9 8152  DE75 5C80 8C2B 6555 8117
uid           [ unknown] Christian Marillat <marillat@debian.org>
uid           [ unknown] Christian Marillat <marillat@free.fr>
uid           [ unknown] Christian Marillat <marillat@deb-multimedia.org>
sub   rsa4096 2014-03-05 [E]


yoric

А зачем deb-src прописали, нужен или для замедления обработки готовых пакетов?

n.pavka

#12
Цитата: yoric от 06 июля 2017, 10:38:57А зачем deb-src прописали, нужен или для замедления обработки готовых пакетов?
Может исходники понадобятся,  а так штоб было )))

mrgoodvin

#13
n.pavka, пожалуйста. Вы же сами ведите всЁ. Присмотритесь на ваш вывод команд, вроде бы же очевидно как бы:

Цитата: n.pavka от 06 июля 2017, 10:33:05
Делаю  apt-get update и получаю
Сущ:1 http://security.debian.org stretch/updates InRelease
Игн:2 http://deb.debian.org/debian stretch InRelease                 
Сущ:3 http://deb.debian.org/debian stretch-updates InRelease         
Сущ:4 http://deb.debian.org/debian stretch Release                   
Чтение списков пакетов... Готово                                       
W: http://security.debian.org/dists/stretch/updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://deb.debian.org/debian/dists/stretch-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://deb.debian.org/debian/dists/stretch/Release.gpg: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.


/etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg
----------------------------------------------------------
pub   rsa4096 2014-11-21 [SC] [expires: 2022-11-19]
      126C 0D24 BD8A 2942 CC7D  F8AC 7638 D044 2B90 D010
uid           [ unknown] Debian Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>

/etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg
-------------------------------------------------------------------
pub   rsa4096 2014-11-21 [SC] [expires: 2022-11-19]
      D211 6914 1CEC D440 F2EB  8DDA 9D6D 8F6B C857 C906
uid           [ unknown] Debian Security Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>

/etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg
-------------------------------------------------------
pub   rsa4096 2013-08-17 [SC] [expires: 2021-08-15]
      75DD C3C4 A499 F1A1 8CB5  F3C8 CBF8 D6FD 518E 17E1
uid           [ unknown] Jessie Stable Release Key <debian-release@lists.debian.org>

/etc/apt/trusted.gpg.d/debian-archive-stretch-automatic.gpg
-----------------------------------------------------------
pub   rsa4096 2017-05-22 [SC] [expires: 2025-05-20]
      E1CF 20DD FFE4 B89E 8026  58F1 E0B1 1894 F66A EC98
uid           [ unknown] Debian Archive Automatic Signing Key (9/stretch) <ftpmaster@debian.org>
sub   rsa4096 2017-05-22 [S] [expires: 2025-05-20]

/etc/apt/trusted.gpg.d/debian-archive-stretch-security-automatic.gpg
--------------------------------------------------------------------
pub   rsa4096 2017-05-22 [SC] [expires: 2025-05-20]
      6ED6 F5CB 5FA6 FB2F 460A  E88E EDA0 D238 8AE2 2BA9
uid           [ unknown] Debian Security Archive Automatic Signing Key (9/stretch) <ftpmaster@debian.org>
sub   rsa4096 2017-05-22 [S] [expires: 2025-05-20]

/etc/apt/trusted.gpg.d/debian-archive-stretch-stable.gpg
--------------------------------------------------------
pub   rsa4096 2017-05-20 [SC] [expires: 2025-05-18]
      067E 3C45 6BAE 240A CEE8  8F6F EF0F 382A 1A7B 6500
uid           [ unknown] Debian Stable Release Key (9/stretch) <debian-release@lists.debian.org>

/etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg
----------------------------------------------------------
pub   rsa4096 2012-04-27 [SC] [expires: 2020-04-25]
      A1BD 8E9D 78F7 FE5C 3E65  D8AF 8B48 AD62 4692 5553
uid           [ unknown] Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian.org>

/etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg
-------------------------------------------------------
pub   rsa4096 2012-05-08 [SC] [expires: 2019-05-07]
      ED6D 6527 1AAC F0FF 15D1  2303 6FB2 A1C2 65FF B764
uid           [ unknown] Wheezy Stable Release Key <debian-release@lists.debian.org>

/etc/apt/trusted.gpg.d/deb-multimedia-keyring.gpg
-------------------------------------------------
pub   rsa4096 2014-03-05 [SC]
      A401 FF99 368F A1F9 8152  DE75 5C80 8C2B 6555 8117
uid           [ unknown] Christian Marillat <marillat@debian.org>
uid           [ unknown] Christian Marillat <marillat@free.fr>
uid           [ unknown] Christian Marillat <marillat@deb-multimedia.org>
sub   rsa4096 2014-03-05 [E]

Вот магия: "/etc/apt/trusted.gpg" != "/etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg" и остальным ключам. Посему, все таки выполните sudo apt-key add /usr/share/keyrings/debian-archive-keyring.gpg. А те что в /etc/apt/trusted.gpg.d/, можете смело удалять.
Согласно какой-то https://wiki.debian.org/SecureApt вики - "Власть меняется"... В общем, все что связано с 9-кой и далее версией, будет в /etc/apt/trusted.gpg. Все что левое - /etc/apt/trusted.gpg.d/*.gpg

n.pavka

Цитата: mrgoodvin от 06 июля 2017, 21:15:17Вот магия: "/etc/apt/trusted.gpg" != "/etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg" и остальным ключам. Посему, все таки выполните sudo apt-key add /usr/share/keyrings/debian-archive-keyring.gpg. А те что в /etc/apt/trusted.gpg.d/, можете смело удалять.
Согласно какой-то https://wiki.debian.org/SecureApt вики - "Власть меняется"... В общем, все что связано с 9-кой и далее версией, будет в /etc/apt/trusted.gpg. Все что левое - /etc/apt/trusted.gpg.d/*.gpg
Нижайший поклон, все заработало.