Ubuntu install MySQL and some other software problems

Source: Internet
Author: User
Tags sqlite unpack

Today I tried to install MySQL on Ubuntu, but the following issues occurred:

Reading Package List ... Completing the dependency tree that is analyzing the package is reading state information ... Completion will install the following software: Apport libsqlite0 python-LIBXML2 Python-lzma Python-pycurl python-rpm Python-sqlite Python-sqlitecachec python-Urlgrabber Recommended Installation: Apport-GTK | Apport-kde Libcurl4-gnutls-dev python-pycurl-dbg python-pycurl-doc python-sqlite-DBG the following "new" packages will be installed: Libsqlite0 python-LIBXML2 Python-lzma Python-pycurl python-rpm python-SQLite python-sqlitecachec python-Urlgrabber Yum The following packages will be upgraded: Apport upgraded1A new package, a newly installed9A package to uninstall0Packages that have107packages have not been upgraded. Have a theA package is not fully installed or uninstalled. Need to download958kb/1,079KB of archiving. After decompression, it consumes5,629KB of extra space. Do you want to continue? [Y/N] y gets:1http//mirrors.ustc.edu.cn/ubuntu xenial/universe amd64 libsqlite0 amd64 2.8.17-12fakesync1 [139 KB]Get:2http//mirrors.ustc.edu.cn/ubuntu xenial-updates/main amd64 python-libxml2 amd64 2.9.3+dfsg1-1ubuntu0.3 [KB]Get:3http//mirrors.ustc.edu.cn/ubuntu xenial/universe amd64 python-lzma amd64 0.5.3-3 [27.9 KB]Get:4http//mirrors.ustc.edu.cn/ubuntu xenial/universe amd64 python-sqlite amd64 1.0.1-12 [20.9 KB]Get:5http//mirrors.ustc.edu.cn/ubuntu xenial/main amd64 python-pycurl amd64 7.43.0-1ubuntu1 [43.3 KB]Get:6http//Mirrors.ustc.edu.cn/ubuntu xenial/main amd64 python-urlgrabber all 3.9.1-4.2UBUNTU1 [41.7 KB]Get:7http//mirrors.ustc.edu.cn/ubuntu xenial/universe amd64 python-rpm amd64 4.12.0.1+dfsg1-3build3 [37.6 KB]Get:8http//mirrors.ustc.edu.cn/ubuntu xenial/universe amd64 python-sqlitecachec amd64 1.1.4-1 [21.4 KB]Get:9http//Mirrors.ustc.edu.cn/ubuntu xenial/universe amd64 yum all 3.4.3-3 [486 KB]has been downloaded958KB, which takes 0 seconds (960kb/s) (Reading Database ... The system is currently installed a total of264342files and directories. is preparing to unpack .../apport_2.20.1-0ubuntu2.13_all.deb ... File"/usr/bin/pyclean", line theexcept (IOError, OSError), E:^syntaxerror:invalid syntaxdpkg: Warning: Child process old pre-removal Script returns error status1dpkg: Now try to use the script with the new package ... File"/usr/bin/pyclean", line theexcept (IOError, OSError), E:^syntaxerror:invalid syntaxdpkg: Processing Archives/var/cache/apt/archives/apport_2.20.1-0ubuntu2.13_all.deb (--unpack) Error: Child process new Pre-removal Script returns error status1Traceback (most recent): File"/usr/bin/pycompile", line *,inch<module> fromdebpython.version Import supported, debsorted, VREPR, File"/usr/share/python/debpython/version.py", line -,inch<module> fromconfigparser Import safeconfigparserimporterror:no module named'Configparser'dpkg: Error Cleaning: Child process has post installed-installation Script returns error status1Selecting libsqlite0 package is not selected. Preparing for unpacking .../libsqlite0_2.8.17-12fakesync1_amd64.deb ... Unpacking Libsqlite0 (2.8. --12fakesync1) ... Selecting not selected packages Python-LIBXML2. Preparing for unpacking .../python-libxml2_2.9.3+dfsg1-1ubuntu0.3_amd64.deb ... Unpacking Python-LIBXML2 (2.9.3+dfsg1-1ubuntu0.3) ... Selecting not selected packages Python-Lzma. Preparing for unpacking .../python-lzma_0.5.3-3_amd64.deb ... Unpacking Python-lzma (0.5.3-3) ... Selecting not selected packages Python-SQLite. Preparing for unpacking .../python-sqlite_1.0.1-12_amd64.deb ... Unpacking Python-sqlite (1.0.1- A) ... Selecting not selected packages Python-Pycurl. Preparing for unpacking .../python-pycurl_7.43.0-1ubuntu1_amd64.deb ... Unpacking Python-pycurl (7.43.0-1ubuntu1) ... Selecting not selected packages Python-Urlgrabber. Preparing for unpacking .../python-urlgrabber_3.9.1-4. 2ubuntu1_all.deb. Unpacking Python-urlgrabber (3.9.1-4. 2ubuntu1) ... Selecting not selected packages Python-rpm. Preparing for unpacking .../python-rpm_4.12.0.1+dfsg1-3build3_amd64.deb ... Unpacking Python-RPM (4.12.0.1+dfsg1-3build3) ... Selecting not selected packages Python-Sqlitecachec. Preparing for unpacking .../python-sqlitecachec_1.1.4-1_amd64.deb ... Unpacking Python-SQLITECACHEC (1.1.4-1) ... Selecting the unselected package yum. Preparing for unpacking .../archives/yum_3.4.3-3_all.deb ... Unpacking Yum (3.4.3-3) ... Processing is being processed for man-db (2.7.5-1) of the trigger ... An error occurred while processing:/var/cache/apt/archives/apport_2.20.1-0ubuntu2.13_all.debe:sub-process/usr/bin/dpkg returned an error code (1)

A lot of information, and finally found that because of the python problem, so:

sudo update-alternatives--Config python has2Candidate can be used to replace Python (provides a/usr/bin/python). Select Path Priority State------------------------------------------------------------*0/usr/bin/python3 MaxAutomatic mode1/usr/bin/python2 -Manual Mode2/usr/bin/python3 MaxManual mode to maintain the current value [*] Press < Enter, or type the number you selected:1Update-alternatives: Use/usr/bin/python2 to provide/usr/bin/in manual modepython (python) [email protected]-macbookpro:~$ sudo update-alternatives--Config python has2Candidate can be used to replace Python (provides a/usr/bin/python). Select Path Priority State------------------------------------------------------------0/usr/bin/python3 MaxAutomatic mode*1/usr/bin/python2 -Manual Mode2/usr/bin/python3 MaxManual mode to maintain the current value [*] Press < Enter, or type the number you selected:

Ubuntu install MySQL and some other software problems

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.