I wanted to install Numix icon theme, therefore I needed to add ppa, but it strangely raised this error:
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'
From code, I understand Python wants to open a configuration file, but since it cannot find it, it cannot create it as well. (Or whatever...)
What is the source of this error? How to deal with it? And more, does Linux use Python for repository commands (since this is more interesting)?
I ran those codes:
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: Editing sources.list
Whenever I run this code, I run across https://launchpad.net/~numix/+archive/ubuntu/ppa link. So I tried those in 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.
add-apt-repository
, but you realise you can just edit your sources file, right? It is/etc/apt/sources.list
. – Faheem Mitha Sep 11 at 19:15/etc/apt/sources.list
, but how can I know what deb server of a PPA is? – Eray Gezer Sep 11 at 21:03