OS - Ubuntu 16.0.4
$ sudo apt-get install python-mysqldb
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: ant ant-optional antlr3 aspectj bnd default-jdk default-jdk-doc default-jdk-headless java-wrappers javahelp2 junit junit-doc junit4 junit4-doc libantlr-java libantlr3-runtime-java libapache-pom-java libasm3-java libasm4-java libaspectj-java libatinject-jsr330-api-java libavalon-framework-java libbeansbinding-java libbindex-java libbsh-java libbytelist-java libcdi-api-java libcglib3-java libcommons-beanutils-java libcommons-codec-java libcommons-collections3-java libcommons-compress-java libcommons-digester-java libcommons-io-java libcommons-lang-java libcommons-logging-java libcommons-net-java libcommons-parent-java libeclipselink-java libequinox-osgi-java libexcalibur-logkit-java libfelix-framework-java libfelix-main-java libfelix-osgi-obr-java libfreemarker-java libgeronimo-interceptor-3.0-spec-java libgeronimo-j2ee-connector-1.5-spec-java libgeronimo-jms-1.1-spec-java libgeronimo-jpa-2.0-spec-java libgeronimo-jta-1.1-spec-java libgeronimo-osgi-support-java libgeronimo-validation-1.0-spec-java libguava-java libhamcrest-java libhamcrest-java-doc libhtml5parser-java libhttpclient-java libhttpcore-java libicu4j-4.4-java libini4j-java libjavaewah-java libjcodings-java libjcommander-java libjemmy2-java libjgit-java libjna-java libjna-jni libjna-platform-java libjnlp-servlet-java libjoda-convert-java libjoda-time-java libjpa-2.1-spec-java libjsch-agent-proxy-java libjsch-java libjson-simple-java libjsr305-java libjsr311-api-java libjvyamlb-java libjzlib-java libkxml2-java liblog4j1.2-java liblucene3-contrib-java liblucene3-java libmail-java libmysql-java libnb-absolutelayout-java libnb-apisupport3-java libnb-ide14-java libnb-java5-java libnb-javaparser-java libnb-org-openide-modules-java libnb-org-openide-util-java libnb-org-openide-util-lookup-java libnb-platform-devel-java libnb-platform18-java libosgi-annotation-java libosgi-compendium-java libosgi-core-java libosgi-foundation-ee-java libpostgresql-jdbc-java libregexp-java libsdo-api-java libsequence-library-java libserf-1-1 libservlet2.5-java libservlet3.0-java libservlet3.1-java libsimple-validation-java libslf4j-java libsqljet-java libstringtemplate-java libstringtemplate4-java libsvn-java libsvn1 libsvnclientadapter-java libsvnkit-java libswing-layout-java libswingx-java libtrilead-ssh2-java libws-commons-util-java libxerces2-java libxml-commons-external-java libxml-commons-resolver1.1-java libyaml-snake-java linux-headers-4.10.0-28 linux-headers-4.10.0-28-generic linux-image-4.10.0-28-generic linux-image-extra-4.10.0-28-generic openjdk-8-doc openjdk-8-jdk openjdk-8-jdk-headless testng Use 'sudo apt autoremove' to remove them. Suggested packages: python-egenix-mxdatetime python-mysqldb-dbg The following NEW packages will be installed: python-mysqldb 0 upgraded, 1 newly installed, 0 to remove and 78 not upgraded. Need to get 42.4 kB of archives. After this operation, 167 kB of additional disk space will be used. Err:1 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 python-mysqldb amd64 1.3.7-1build2 Could not connect to 172.16.0.5:3128 (172.16.0.5), connection timed out E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/p/python-mysqldb/python-mysqldb_1.3.7-1build2_amd64.deb Could not connect to 172.16.0.5:3128 (172.16.0.5), connection timed out E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
之后我执行了
$ sudo apt-get update