Can't add ppa or use add-apt-repository
Tofloor
poster avatar
illuminati
deepin
2017-08-03 07:40
Author
  1. Traceback (most recent call last):
  2.   File "/usr/bin/add-apt-repository", line 6, in
  3.     import os
  4.   File "/usr/lib/python3.5/os.py", line 113, in
  5.     from os.path import (curdir, pardir, sep, pathsep, defpath, extsep, altsep,
  6. ImportError: cannot import name 'curdir'
Copy the Code

I get the following error on adding a new repository.
Please healp
Reply Favorite View the author
All Replies
nipos
deepin
2017-08-03 08:06
#1
Add the Repository manually by editing /etc/apt/sources.list
Add the following line to the file:
deb http://yourrepositoryserver.com/ repositoryname
Reply View the author
134******40
deepin
2017-08-03 08:07
#2
本帖最后由 jdocker 于 2017-8-3 00:12 编辑
  1. sudo apt install python-software-properties software-properties-common
Copy the Code

install add-apt-repository command. if can use add-apt-repository , or you can change python3.5 to python2.7 now.
Reply View the author