У меня есть UBUNTU 16.04.05 LTS X64 и когда я пытаюсь добавить любые репозитории, у меня есть следующая ошибка!
например, я использовал: sudo add-apt-repository ppa:noobslab/apps
и результат:
This PPA Contains Applications for Ubuntu/Linux Mint from different sources but debianized by http://www.NoobsLab.com
More info: https://launchpad.net/~noobslab/+archive/ubuntu/apps
Press [ENTER] to continue or ctrl-c to cancel adding it
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 168, in <module>
if not sp.add_source_from_shortcut(shortcut, options.enable_source):
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 768, in add_source_from_shortcut
self.set_modified_sourceslist()
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 492, in set_modified_sourceslist
self.save_sourceslist()
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 658, in save_sourceslist
self.sourceslist.save()
File "/usr/lib/python3/dist-packages/aptsources/sourceslist.py", line 413, in save
files[source.file] = open(source.file, "w")
FileNotFoundError: [Errno 2] No such file or directory: '/etc/apt/sources.list.d/noobslab-ubuntu-apps-xenial.list'
gpg: keyring `/tmp/tmph_0b92bg/secring.gpg' created
gpg: keyring `/tmp/tmph_0b92bg/pubring.gpg' created
gpg: requesting key F59EAE4D from hkp server keyserver.ubuntu.com
gpg: /tmp/tmph_0b92bg/trustdb.gpg: trustdb created
gpg: key F59EAE4D: public key "Launchpad PPA for NoobsLab" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
gpg: keyblock resource `/etc/apt/trusted.gpg.d/noobslab_ubuntu_apps.gpg': file open error
gpg: no writable keyring found: eof
gpg: error reading `/tmp/tmph_0b92bg/pubring.gpg': general error
gpg: import from `/tmp/tmph_0b92bg/pubring.gpg' failed: general error
это всегда дает мне эту ошибку с любым видом репозиториев, которые я пытаюсь добавить. Я попробовал много решений, я собираюсь перечислить их ниже:
Ошибка: Выполнение добавляет - способный репозиторий ppa:
Как установить сертификаты для командной строки
Разрешение отклонило: '/etc/apt/sources.list.d/google-earth.list'
и много много других решений, данных связанным проблемам. никто не работал на меня.
есть ли здесь какие-либо решения?
с уважением
#вывод file /etc/apt/sources.list
показан ниже:
/etc/apt/sources.list: ASCII text
Я нашел решение самостоятельно.
В /etc/apt
просто создайте следующие каталоги:
apt.conf.d, preferences.d, sources.list.d, trusted.gpg.d или sudo mkdir apt.conf.d sources.list.d trusted.gpg.d
Это сделает задание.
С уважением