Eu queria instalar o tema de ícones Numix, portanto, eu precisava adicionar o ppa, mas isso levantou estranhamente esse erro:
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 163, in <module>
if not sp.add_source_from_shortcut(shortcut, options.enable_source):
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 750, in add_source_from_shortcut
self.set_modified_sourceslist()
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 484, in set_modified_sourceslist
self.save_sourceslist()
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 650, in save_sourceslist
self.sourceslist.save()
File "/usr/lib/python3/dist-packages/aptsources/sourceslist.py", line 415, in save
files[source.file] = open(source.file, "w")
FileNotFoundError: [Errno 2] Böyle bir dosya ya da dizin yok: '/etc/apt/sources.list.d/numix-ppa-trusty.list'
Do código, eu entendo que o Python quer abrir um arquivo de configuração, mas como não pode encontrá-lo, ele também não pode criá-lo. (Ou seja o que for ...)
Qual é a fonte desse erro? Como lidar com isso? E mais, o Linux usa o Python para comandos de repositório (já que isso é mais interessante)?
Eu corri os códigos:
sudo apt-add-repository ppa:numix/ppa
sudo apt-get update
sudo apt-get install numix-icon-theme numix-icon-theme-circle
OS: Xubuntu 14.04 LTS
EDIT: Editando sources.list
Sempre que eu executo esse código, corro o link link . Então eu tentei aqueles em sources.list:
###############################################
# Number One: Add The Link To The End Of File #
###############################################
deb https://launchpad.net/~numix/+archive/ubuntu/ppa trusty partner
deb-src deb https://launchpad.net/~numix/+archive/ubuntu/ppa trusty partner
# I used "deb", "deb-src" and "trusty partner" patterns to achieve my goal, but it failed.
###################################
# Number Two: Change Link Pattern #
###################################
deb https://launchpad.net/~numix/+archive/ubuntu trusty partner
deb-src deb https://launchpad.net/~numix/+archive/ubuntu trusty partner
# I also tried those since other repository links ends with "ubuntu" instead of "ppa" but this also failed.