I was doing some stuff and installing some new web-site on my ubuntu dedicated server when one website was asking for php7.1 and up mine is 7.0.3.x so I went to update it. At firts it was saying to put that command: sudo add-apt-repository ppa:ondrej/php. When I done that it was saying an error saying apt-add-repository not found I search and found something and now it was saying apt_pkg so things goes up and I make some moedification some apt-get isntall / remouve finaly my python get messed up like a stupid guy I tyoe sudo apt-get purge python3 and deleted python file location and tried to reinstall it. I think my python 2.7 is fine but now the python3 is very messed up like when I tried to add software-properties or remove python3 stuff its just give me this all the time:
PS: I'm new here sorry if I didn't post at the right place
Update I almost can't do nothing it's always saying error when I tried to install a package pls help!!!!
root@ns544936:~# sudo add-apt-repository ppa:ondrej/php Traceback (most recent call last): File "/usr/bin/add-apt-repository", line 11, in <module> from softwareproperties.SoftwareProperties import SoftwareProperties, shortcut_handler ImportError: No module named softwareproperties.SoftwareProperties root@ns544936:~# sudo apt-get install --reinstall python3-software-properties Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libapparmor-perl libcgi-fast-perl libcgi-pm-perl libevent-core-2.0-5 libfcgi-perl libhtml-template-perl mysql-server-core-5.7 powermgmt-base Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 1 not upgraded. 20 not fully installed or removed. Need to get 8,710 B of archives. After this operation, 0 B of additional disk space will be used. Get:1 http://ubuntu.mirrors.ovh.net/ubuntu xenial/main amd64 python3 amd64 3.5.1-3 [8,710 B] Fetched 8,710 B in 0s (14.5 kB/s) E: Internal Error, No file name for python3-software-properties:amd64 root@ns544936:~# sudo apt-get install python3-software-properties Reading package lists... Done Building dependency tree Reading state information... Done python3-software-properties is already the newest version (0.96.20.8). The following packages were automatically installed and are no longer required: libapparmor-perl libcgi-fast-perl libcgi-pm-perl libevent-core-2.0-5 libfcgi-perl libhtml-template-perl mysql-server-core-5.7 powermgmt-base Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. 20 not fully installed or removed. Need to get 0 B/8,710 B of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y dpkg: error processing package python3 (--configure): package is in a very bad inconsistent state; you should reinstall it before attempting configuration dpkg: dependency problems prevent configuration of lsb-release: lsb-release depends on python3:any (>= 3.4~); however: Package python3 is not configured yet. dpkg: error processing package lsb-release (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python3-apt: python3-apt depends on python3 (<< 3.6); however: Package python3 is not configured yet. python3-apt depends on python3 (>= 3.5~); however: Package python3 is not configured yet. dpkg: error processing package python3-apt (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python3-dbus: python3-dbus depends on python3 (<< 3.6); however: Package python3 is not configured yet. python3-dbus depends on python3 (>= 3.5~); however: Package python3 is not configured yet. dpkg: error processing package python3-dbus (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python3-gi: python3-gi depends on python3 (<< 3.6); however: Package python3 is not configured yet. python3-gi depends on python3 (>= 3.5~); however: Package python3 is not configured yet. dpkg: error processing package python3-gi (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python3-pkg-resources: python3-pkg-resources depends on python3:any (>= 3.3.2-2~); however: Package python3 is not configured yet. dpkg: error processing package python3-pkg-resources (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python3-chardet: python3-chardet depends on python3:any (>= 3.3.2-2~); however: Package python3 is not configured yet. python3-chardet depends on python3-pkg-resources; however: Package python3-pkg-resources is not configured yet. dpkg: error processing package python3-chardet (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python3-six: python3-six depends on python3:any (>= 3.4~); however: Package python3 is not configured yet. dpkg: error processing package python3-six (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python3-debian: python3-debian depends on python3-chardet; however: Package python3-chardet is not configured yet. python3-debian depends on python3-six (>> 1.4~); however: Package python3-six is not configured yet. python3-debian depends on python3:any (>= 3.3.2-2~); however: Package python3 is not configured yet. dpkg: error processing package python3-debian (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python3-pip: python3-pip depends on python3:any (>= 3.4~); however: Package python3 is not configured yet. dpkg: error processing package python3-pip (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python3-pycurl: python3-pycurl depends on python3 (<< 3.6); however: Package python3 is not configured yet. python3-pycurl depends on python3 (>= 3.5~); however: Package python3 is not configured yet. dpkg: error processing package python3-pycurl (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python3-pytoml: python3-pytoml depends on python3:any (>= 3.4~); however: Package python3 is not configured yet. dpkg: error processing package python3-pytoml (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python3-urllib3: python3-urllib3 depends on python3:any (>= 3.3.2-2~); however: Package python3 is not configured yet. python3-urllib3 depends on python3-six; however: Package python3-six is not configured yet. dpkg: error processing package python3-urllib3 (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python3-requests: python3-requests depends on python3-urllib3 (>= 1.13.1); however: Package python3-urllib3 is not configured yet. python3-requests depends on python3:any (>= 3.3.2-2~); however: Package python3 is not configured yet. python3-requests depends on python3-chardet; however: Package python3-chardet is not configured yet. python3-requests depends on python3-urllib3 (<< 1.13.2); however: Package python3-urllib3 is not configured yet. dpkg: error processing package python3-requests (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python3-setuptools: python3-setuptools depends on python3-pkg-resources (= 20.7.0-1); however: Package python3-pkg-resources is not configured yet. python3-setuptools depends on python3:any (>= 3.3.2-2~); however: Package python3 is not configured yet. dpkg: error processing package python3-setuptools (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python3-software-properties: python3-software-properties depends on python3:any (>= 3.3.2-2~); however: Package python3 is not configured yet. python3-software-properties depends on python3; however: Package python3 is not configured yet. python3-software-properties depends on python3-apt (>= 0.6.20ubuntu16); however: Package python3-apt is not configured yet. python3-software-properties depends on python3-pycurl; however: Package python3-pycurl is not configured yet. python3-software-properties depends on lsb-release; however: Package lsb-release is not configured yet. dpkg: error processing package python3-software-properties (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of software-properties-common: software-properties-common depends on python3:any (>= 3.3.2-2~); however: Package python3 is not configured yet. software-properties-common depends on python3; however: Package python3 is not configured yet. software-properties-common depends on python3-gi; however: Package python3-gi is not configured yet. software-properties-common depends on python3-dbus; however: Package python3-dbus is not configured yet. software-properties-common depends on python3-software-properties (= 0.96.20.8); however: Package python3-software-properties is not configured yet. dpkg: error processing package software-properties-common (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python3-wheel: python3-wheel depends on python3:any (>= 3.3.2-2~); however: Package python3 is not configured yet. dpkg: error processing package python3-wheel (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of ssh-import-id: ssh-import-id depends on python3-requests (>= 1.1.0); however: Package python3-requests is not configured yet. ssh-import-id depends on python3:any (>= 3.3.2-2~); however: Package python3 is not configured yet. dpkg: error processing package ssh-import-id (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of dh-python: dh-python depends on python3:any (>= 3.3.2-2~); however: Package python3 is not configured yet. dpkg: error processing package dh-python (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: python3 lsb-release python3-apt python3-dbus python3-gi python3-pkg-resources python3-chardet python3-six python3-debian python3-pip python3-pycurl python3-pytoml python3-urllib3 python3-requests python3-setuptools python3-software-properties software-properties-common python3-wheel ssh-import-id dh-python E: Sub-process /usr/bin/dpkg returned an error code (1)I hope that some of you can help because I dont want to reinstall all my dedicated with all the stuf I put in it and time too :/

Update I almost can't do nothing it's always saying error when I tried to install a package pls help!!!!