I have confused to uninstall python3 or fix my VPS Ubuntu  Im using Ubuntu 16.04.5 LTS (GNU/Linux 4.4.0-31-generic x86_64)  I tried to uninstall all python packages  sudo apt-get purge python3  And getting this error  dpkg: error processing package python3-pkg-resources (--remove):  subprocess installed pre-removal script returned error exit status 127                               Processing triggers for libc-bin (2.23-0ubuntu10) ... Errors were encountered while processing:  python3-lxml  python3-pip  python3-apt  python3-pyparsing  gir1.2-ibus-1.0:amd64  hplip-data  python3-blinker  python3-bs4  python3-cairo  python3-chardet  python3-dbus  python3-defer  python3-feedparser  python3-gi  python3-guacamole  python3-httplib2  python3-idna  python3-jwt  python3-louis  python3-markupsafe  python3-padme  python3-setuptools  python3-problem-report  python3-ptyprocess  python3-pyasn1  python3-pycurl  python3-six  python3-wheel  python3-xdg  python3-xkit  python3-xlsxwriter  dh-python  python3  python3-pkg-resources E: Sub-process /usr/bin/dpkg returned an error code (1)   I tried other way from other site,error still same And i tried to reinstall my ubuntu with command line  apt-get install --reinstall ubuntu-desktop  I dont know should i do to fix my ubuntu and reinstall my python.  Note: I tried to run python3 it not working with reasons python3 is not package and i run python3.7 it working fine,idk python3.7 thats reall python package i have or something else :/  Im so appreciate any help
3544
I am a new Ubuntu user running Ubuntu 13.04.  I've been trying to install and use a DeDRM tool, but I've been having problems doing so. I was following some directions that said I needed a version of Python 2.7, but not anything Python 3.0 or later (because 3.0 versions are missing some necessary libraries?). I tried to install Python 2.7.5.6, but it didn't work. I thought it was probably because I had the later version of Python, so I went through terminal and removed Python 3.3, so I could install the earlier version of Python.  Now that I've uninstalled Python 3.3, a lot of applications no longer work, including the terminal and the Ubuntu Software Center. I have no idea how to fix this problem now.
15400
I was trying to update my Python and messed up my whole system.   I am currently now able to start my Software Centre. I tried Googling multiple fixes but nothing helped. My Software Centre can't start.   When I try starting it up, this error shows:  astephen@localhost:/usr/bin$ ./software-centerGtk-Message: Failed to load module "gtk-vector-screenshot" Traceback (most recent call last): File "./software-center", line 36, in &lt;module&gt; from softwarecenter.utils import ( File "/usr/share/software-center/softwarecenter/utils.py", line 19, in &lt;module&gt; import dbus ImportError: No module named dbus   I tried reinstalling dbus using:  apt-get install --reinstall dbus   But it did not help.  astephen@localhost:/usr/bin$ sudo apt-get install --reinstall dbusReading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not      upgraded. Need to get 0 B/231 kB of archives. After this operation, 0 B of additional disk space will be used. (Reading database ... 676272 files and directories currently installed.) Preparing to unpack .../dbus_1.6.18-0ubuntu4.3_amd64.deb ... Unpacking dbus (1.6.18-0ubuntu4.3) over (1.6.18-0ubuntu4.3) ... Processing triggers for ureadahead (0.100.0-16) ... Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Setting up dbus (1.6.18-0ubuntu4.3) ...
39495
From time to time, Ubuntu users encounter errors from  or , of the form:  The package some-package needs to be reinstalled, but I can't find an archive for it.  I want to know what causes this error so that I can reproduce it and try to find safe ways of fixing it, even when the broken package is important and has many dependencies.  of the  might give a bit of a clue, but I don't know how packages get the status that causes the error.  How can I produce this error for testing on my (Ubuntu MATE 17.10) system?  This is prompted by  and my long-standing discomfort with closing questions about this error against , whose answer uses dpkg --force-all to remove the offending package.  suggests this solution has worked for many users, but I am not confident that using --force-all won't cause later problems, or that it's a good idea to use this method to remove important packages like APT.
16427
I'm trying to install kivy for python 3 using apt-get:      sudo apt-get install python3-kivy   And it is installed in      /usr/lib/python3/dist-packages   But, when I tried to load it in python, I get a ModuleNotFoundError      Python 3.6.3 |Anaconda custom (64-bit)| (default, Oct 13 2017, 12:02:49)      [GCC 7.2.0] on linux     Type "help", "copyright", "credits" or "license" for more information.     &gt;&gt;&gt; import kivy     Traceback (most recent call last):       File "&lt;stdin&gt;", line 1, in &lt;module&gt;     ModuleNotFoundError: No module named 'kivy'   When I check the system path from python, I only get packages in Anaconda:      &gt;&gt;&gt; import sys     &gt;&gt;&gt; print('\n'.join(sys.path))      /home/santiago/anaconda3/lib/python36.zip     /home/santiago/anaconda3/lib/python3.6     /home/santiago/anaconda3/lib/python3.6/lib-dynload     /home/santiago/anaconda3/lib/python3.6/site-packages     /home/santiago/anaconda3/lib/python3.6/site-packages/torchvision-0.2.0-py3.6.egg   Is there any way to include the '/usr/lib/python3' path to Anaconda?  Thanks.
85466
A few weeks ago I installed a 32 bit .deb file through the 'force architecture' command (on my 64bit notebook), however the procedure was unsuccessful and I used the apt-get purgecommand to uninstall the app. It seems there are some leftovers of the app I uninstalled which has now broken system update. Synaptic recommended a sudo apt-get install -fwhich I did in the terminal with this initial response:  Reading package lists... Done Building dependency tree        Reading state information... Done The following package was automatically installed and is no longer required:   libntfs10 Use 'apt-get autoremove' to remove them. The following packages will be REMOVED:   crossplatformui 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue [Y/n]?   I chose 'Y' then got this response:  (Reading database ... 187616 files and directories currently installed.) Removing crossplatformui ... ztemtvcdromd: no process found dpkg: error processing crossplatformui (--remove):  subprocess installed post-removal script returned error exit status 1 Errors were encountered while processing:  crossplatformui E: Sub-process /usr/bin/dpkg returned an error code (1)   It seems the app I installed crossplatformuiis still on my system and has caused update manager to stop running with a partial upgrade warning. What do I do now?
37052
I just typed   sudo apt-get remove python2.6   I didn't realized that this command will uninstall the whole packages from my computer. Is it possible to uninstall the ubuntu without CD. Or how can I fix this big mistake?
20789
I have accidentally removed apt-get, how do I reinstall it?  $ sudo apt-get update sudo: apt-get: command not found  $ sudo dpkg-reconfigure apt /usr/sbin/dpkg-reconfigure: apt is broken or not fully installed    I would like to mention I do not want to reinstall Linux!
90567
I have a problem with python3.6 idle. I think I installed some package in the past and since then I have a problem installing other problems because whatever I try to install it shows me the same error, even if I try to unistall python it shows me this:  idle : Depends: idle-python3.6 but it is not going to be installed   I've tried to unistall python but I got this error. What should I do???
2739
I'm trying to install  on my Ubuntu box (11.04). The website has a Ubuntu .deb available for download (for 10.10 and 10.04 so I chose 10.10).   However,   sudo dpkg -i mysql-workbench-gpl-5.2.34-1ubu1010-amd64.deb   yields:  (Reading database ... 194069 files and directories currently installed.) Preparing to replace mysql-workbench-gpl 5.2.34-1ubu1010 (using mysql-workbench-gpl-5.2.34-1ubu1010-amd64.deb) ... Unpacking replacement mysql-workbench-gpl ... dpkg: dependency problems prevent configuration of mysql-workbench-gpl:  mysql-workbench-gpl depends on libctemplate0; however:   Package libctemplate0 is not installed.  mysql-workbench-gpl depends on libpython2.6 (&gt;= 2.6); however:   Package libpython2.6 is not installed.  mysql-workbench-gpl depends on libzip1 (&gt;= 0.8); however:   Package libzip1 is not installed.  mysql-workbench-gpl depends on python-paramiko; however:   Package python-paramiko is not installed.  mysql-workbench-gpl depends on python-pysqlite2; however:   Package python-pysqlite2 is not installed. dpkg: error processing mysql-workbench-gpl (--install):  dependency problems - leaving unconfigured Processing triggers for bamfdaemon ... Rebuilding /usr/share/applications/bamf.index... Processing triggers for desktop-file-utils ... Processing triggers for python-gmenu ... Rebuilding /usr/share/applications/desktop.en_US.utf8.cache... Processing triggers for python-support ... Errors were encountered while processing:  mysql-workbench-gpl   My question is, is there a way to tell dpkg to automatically fetch missing dependencies, or do I need to manually apt-get install missing packages like libctemplate0 and  libpython2.6?   (Or alternatively, is there some other way to get MySQL Workbench easily up &amp; running?)
107466
I have played around a lot with my Python installations (2 and 3) and installed a bunch of packages, some using apt-get, but most using pip. I have also upgraded many apt-installed packages with pip to a newer version.  My question is: How can I reverse all those changes, remove all pip-installed Python packages and just keep the default set of preinstalled packages in their default repository version, plus those installed by apt-get but only as dependency of other software, always downgrading to the repository version if necessary.  I want to do this to have a tidied up Python environment for the system and have my modifications in virtualenvs only.  Is that possible without a system reinstall? How would I approach it?
77288
How do you completely remove ubuntu-desktop along with all installed packages with it? I'm using Ubuntu 14.04 server on vps and used sudo apt-get install ubuntu-desktop to install.
80599
I'm using Ubuntu 15.04. Whenever I tried to install any package, I got the error message in the title. How can I get rid of this annoying error message?  :~$ uname -a Linux LongerVision001 3.19.0-25-generic #26-Ubuntu SMP Fri Jul 24 21:17:31 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux   :~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 15.04 Release:        15.04 Codename:       vivid   Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up runit (2.1.2-3ubuntu1) ... start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused dpkg: error processing package runit (--configure):  subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing:  runit E: Sub-process /usr/bin/dpkg returned an error code (1)
32229
After I installed Python 3.5 and ran the commands below, my terminal and many other programs won't launch any more.  cd /usr/bin sudo rm python3 sudo ln -s python3.5 python3    How can I restore the default Python version again to fix these problems?
35715
I have installed ubuntu 18.04 in virtual box and when trying python -v, it says you have python3 installed, I want to remove python 3 or disable so that can use python2.7 and run some scripts i have.
24605
I installed Django with this command:   sudo apt-get install python-django   And it installed version 1.5.4-1ubuntu1. The Django docs say that as of version 1.5, Django supports Python 3. Yet when I run the python 3 interpreter and try importing Django, it says there's no such module. I tried looking for a python3 version of Django, but no such package exists. How can I get django working on python3? I'd prefer to use ubuntu packages instead of installing things manually.
36610
OS: Ubuntu 12.04  Accidentally deleted dpkg. Now, packages can't be installed. So, needs an dpkg installer which installs packages.
295
I run below command on ubuntu 16.4 :  sudo add-apt-repository ppa:noobslab/apps  of below question:    and get below error:  Traceback (most recent call last):   File "/usr/bin/add-apt-repository", line 11, in &lt;module&gt;     from softwareproperties.SoftwareProperties import SoftwareProperties, shortcut_handler   File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 27, in &lt;module&gt;     import apt_pkg ModuleNotFoundError: No module named 'apt_pkg' Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook     from apport.fileutils import likely_packaged, get_recent_crashes   File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in &lt;module&gt;     from apport.report import Report   File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in &lt;module&gt;     import apport.fileutils   File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in &lt;module&gt;     from apport.packaging_impl import impl as packaging   File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 23, in &lt;module&gt;     import apt   File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in &lt;module&gt;     import apt_pkg ModuleNotFoundError: No module named 'apt_pkg'  Original exception was: Traceback (most recent call last):   File "/usr/bin/add-apt-repository", line 11, in &lt;module&gt;     from softwareproperties.SoftwareProperties import SoftwareProperties, shortcut_handler   File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 27, in &lt;module&gt;     import apt_pkg ModuleNotFoundError: No module named 'apt_pkg'   Thanks for help