因为要编译android源码for MTK,需要wine用来运行DrgGen.exe(硬件配置工具?)
joe@joe-Aspire-Z3730:~$ sudo add-apt-repository ppa:ubuntu-wine[sudo] password for joe: You are about to add the following PPA to your system: !!! PLEASE NOTE THAT THIS REPOSITORY IS DEPRECATED !!!In fact, it's double deprecated -- it was replaced by the Wine Builds PPA, which was then itself replaced.For more information, please see: https://www.winehq.org/pipermail/wine-devel/2017-March/117104.htmlThe following commands can be used to add the new repository: wget https://dl.winehq.org/wine-builds/Release.key sudo apt-key add Release.key sudo apt-add-repository 'https://dl.winehq.org/wine-builds/ubuntu/' More info: https://launchpad.net/~ubuntu-wine/+archive/ubuntu/ppaPress [ENTER] to continue or ctrl-c to cancel adding it **_此处我按的是ENTER键_**gpg: keyring `/tmp/tmprRtt9v/secring.gpg' createdgpg: keyring `/tmp/tmprRtt9v/pubring.gpg' createdgpg: requesting key F9CB8DB0 from hkp server keyserver.ubuntu.comgpg: /tmp/tmprRtt9v/trustdb.gpg: trustdb createdgpg: key F9CB8DB0: public key "Launchpad PPA for Ubuntu Wine Team" importedgpg: no ultimately trusted keys foundgpg: Total number processed: 1gpg: imported: 1 (RSA: 1)OK
2:
joe@joe-Aspire-Z3730:~$ sudo apt-get updateE: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)E: Unable to lock directory /var/lib/apt/lists/
3:再次执行一次就OK
joe@joe-Aspire-Z3730:~$ sudo apt-get updateHit http://cn.archive.ubuntu.com precise Release.gpg Hit http://cn.archive.ubuntu.com precise-updates Release.gpg Hit http://cn.archive.ubuntu.com precise-backports Release.gpg Hit http://extras.ubuntu.com precise Release.gpg Hit http://security.ubuntu.com precise-security Release.gpg Hit http://ppa.launchpad.net precise Release.gpg Hit http://cn.archive.ubuntu.com precise Release Hit http://cn.archive.ubuntu.com precise-updates Release Hit http://extras.ubuntu.com precise Release Hit http://security.ubuntu.com precise-security Release Hit http://cn.archive.ubuntu.com precise-backports Release Hit http://extras.ubuntu.com precise/main Sources Hit http://security.ubuntu.com precise-security/main Sources Hit http://ppa.launchpad.net precise Release.gpg Hit http://extras.ubuntu.com precise/main amd64 Packages Hit http://extras.ubuntu.com precise/main i386 Packages Ign http://extras.ubuntu.com precise/main TranslationIndex Hit http://ppa.launchpad.net precise Release Hit http://ppa.launchpad.net precise Release Hit http://ppa.launchpad.net precise/main Sources Ign http://extras.ubuntu.com precise/main Translation-en_US Hit http://ppa.launchpad.net precise/main amd64 Packages Ign http://extras.ubuntu.com precise/main Translation-en Hit http://cn.archive.ubuntu.com precise/main Sources Hit http://cn.archive.ubuntu.com precise/restricted Sources Hit http://security.ubuntu.com precise-security/restricted Sources Hit http://cn.archive.ubuntu.com precise/universe SourcesHit http://security.ubuntu.com precise-security/universe SourcesHit http://cn.archive.ubuntu.com precise/multiverse SourcesHit http://security.ubuntu.com precise-security/multiverse SourcesHit http://cn.archive.ubuntu.com precise/main amd64 PackagesHit http://security.ubuntu.com precise-security/main amd64 PackagesHit http://cn.archive.ubuntu.com precise/restricted amd64 PackagesHit http://cn.archive.ubuntu.com precise/universe amd64 PackagesHit http://security.ubuntu.com precise-security/restricted amd64 PackagesHit http://cn.archive.ubuntu.com precise/multiverse amd64 Packages Hit http://security.ubuntu.com precise-security/universe amd64 PackagesHit http://cn.archive.ubuntu.com precise/main i386 Packages Hit http://security.ubuntu.com precise-security/multiverse amd64 PackagesHit http://cn.archive.ubuntu.com precise/restricted i386 Packages Hit http://security.ubuntu.com precise-security/main i386 Packages Hit http://cn.archive.ubuntu.com precise/universe i386 Packages Hit http://security.ubuntu.com precise-security/restricted i386 PackagesHit http://cn.archive.ubuntu.com precise/multiverse i386 Packages Hit http://cn.archive.ubuntu.com precise/main TranslationIndexHit http://security.ubuntu.com precise-security/universe i386 PackagesHit http://cn.archive.ubuntu.com precise/multiverse TranslationIndexHit http://security.ubuntu.com precise-security/multiverse i386 PackagesHit http://cn.archive.ubuntu.com precise/restricted TranslationIndex Hit http://security.ubuntu.com precise-security/main TranslationIndexHit http://security.ubuntu.com precise-security/multiverse TranslationIndexHit http://cn.archive.ubuntu.com precise/universe TranslationIndexHit http://security.ubuntu.com precise-security/restricted TranslationIndexHit http://cn.archive.ubuntu.com precise-updates/main SourcesHit http://cn.archive.ubuntu.com precise-updates/restricted SourcesHit http://security.ubuntu.com precise-security/universe TranslationIndexHit http://cn.archive.ubuntu.com precise-updates/universe Sources Hit http://cn.archive.ubuntu.com precise-updates/multiverse SourcesHit http://security.ubuntu.com precise-security/main Translation-enHit http://cn.archive.ubuntu.com precise-updates/main amd64 PackagesHit http://security.ubuntu.com precise-security/multiverse Translation-enHit http://cn.archive.ubuntu.com precise-updates/restricted amd64 PackagesHit http://cn.archive.ubuntu.com precise-updates/universe amd64 PackagesHit http://security.ubuntu.com precise-security/restricted Translation-enHit http://cn.archive.ubuntu.com precise-updates/multiverse amd64 PackagesHit http://security.ubuntu.com precise-security/universe Translation-enHit http://cn.archive.ubuntu.com precise-updates/main i386 PackagesHit http://cn.archive.ubuntu.com precise-updates/restricted i386 PackagesHit http://cn.archive.ubuntu.com precise-updates/universe i386 PackagesHit http://cn.archive.ubuntu.com precise-updates/multiverse i386 PackagesHit http://cn.archive.ubuntu.com precise-updates/main TranslationIndexHit http://cn.archive.ubuntu.com precise-updates/multiverse TranslationIndexHit http://cn.archive.ubuntu.com precise-updates/restricted TranslationIndexHit http://cn.archive.ubuntu.com precise-updates/universe TranslationIndexHit http://cn.archive.ubuntu.com precise-backports/main SourcesHit http://cn.archive.ubuntu.com precise-backports/restricted SourcesHit http://cn.archive.ubuntu.com precise-backports/universe SourcesHit http://cn.archive.ubuntu.com precise-backports/multiverse SourcesHit http://cn.archive.ubuntu.com precise-backports/main amd64 PackagesHit http://cn.archive.ubuntu.com precise-backports/restricted amd64 PackagesHit http://cn.archive.ubuntu.com precise-backports/universe amd64 PackagesHit http://cn.archive.ubuntu.com precise-backports/multiverse amd64 PackagesHit http://cn.archive.ubuntu.com precise-backports/main i386 PackagesHit http://cn.archive.ubuntu.com precise-backports/restricted i386 PackagesHit http://cn.archive.ubuntu.com precise-backports/universe i386 PackagesHit http://cn.archive.ubuntu.com precise-backports/multiverse i386 PackagesHit http://cn.archive.ubuntu.com precise-backports/main TranslationIndexHit http://cn.archive.ubuntu.com precise-backports/multiverse TranslationIndexHit http://cn.archive.ubuntu.com precise-backports/restricted TranslationIndexHit http://cn.archive.ubuntu.com precise-backports/universe TranslationIndexHit http://cn.archive.ubuntu.com precise/main Translation-enHit http://cn.archive.ubuntu.com precise/multiverse Translation-enHit http://cn.archive.ubuntu.com precise/restricted Translation-enHit http://cn.archive.ubuntu.com precise/universe Translation-enHit http://cn.archive.ubuntu.com precise-updates/main Translation-enHit http://cn.archive.ubuntu.com precise-updates/multiverse Translation-enHit http://cn.archive.ubuntu.com precise-updates/restricted Translation-enHit http://cn.archive.ubuntu.com precise-updates/universe Translation-enHit http://cn.archive.ubuntu.com precise-backports/main Translation-enHit http://cn.archive.ubuntu.com precise-backports/multiverse Translation-enHit http://cn.archive.ubuntu.com precise-backports/restricted Translation-enHit http://cn.archive.ubuntu.com precise-backports/universe Translation-enHit http://ppa.launchpad.net precise/main i386 PackagesIgn http://ppa.launchpad.net precise/main TranslationIndexHit http://ppa.launchpad.net precise/main SourcesHit http://ppa.launchpad.net precise/main amd64 PackagesHit http://ppa.launchpad.net precise/main i386 PackagesHit http://ppa.launchpad.net precise/main TranslationIndexHit http://ppa.launchpad.net precise/main Translation-enIgn http://ppa.launchpad.net precise/main Translation-en_USIgn http://ppa.launchpad.net precise/main Translation-enReading package lists... Done
4:
joe@joe-Aspire-Z3730:~$ sudo apt-get install wineReading package lists... DoneBuilding dependency tree Reading state information... DoneThe following extra packages will be installed: binfmt-support cabextract fontconfig-config fonts-droid fonts-horai-umefont fonts-unfonts-core gnome-exe-thumbnailer icoutils libasn1-8-heimdal:i386 libasound2:i386 libasound2-plugins:i386 libasyncns0:i386 libavahi-client3 libavahi-client3:i386 libavahi-common-data libavahi-common-data:i386 libavahi-common3 libavahi-common3:i386 libcapi20-3 libcapi20-3:i386 libcomerr2 libcomerr2:i386 libcups2 libcups2:i386 libdb5.1:i386 libdbus-1-3 libdbus-1-3:i386 libencode-locale-perl libexif12:i386 libfile-listing-perl libflac8 libflac8:i386 libfont-afm-perl libfontconfig1 libfontconfig1:i386 libgcrypt11 libgcrypt11:i386 libgd2-xpm libgd2-xpm:i386 libgif4:i386 libglib2.0-0:i386 libglu1-mesa:i386 libgnutls26 libgnutls26:i386 libgpg-error0:i386 libgphoto2-2:i386 libgphoto2-port0:i386 libgssapi-krb5-2 libgssapi-krb5-2:i386 libgssapi3-heimdal:i386 libgstreamer-plugins-base0.10-0 libgstreamer-plugins-base0.10-0:i386 libgstreamer0.10-0:i386 libhcrypto4-heimdal:i386 libheimbase1-heimdal:i386 libheimntlm0-heimdal:i386 libhtml-form-perl libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libhx509-5-heimdal:i386 libice6:i386 libieee1284-3:i386 libio-socket-inet6-perl libio-socket-ssl-perl libjack-jackd2-0:i386 libjpeg-turbo8 libjpeg-turbo8:i386 libjpeg8:i386 libjson0 libjson0:i386 libk5crypto3 libk5crypto3:i386 libkeyutils1:i386 libkrb5-26-heimdal:i386 libkrb5-3 libkrb5-3:i386 libkrb5support0 libkrb5support0:i386 liblcms1:i386 libldap-2.4-2 libldap-2.4-2:i386 libltdl7:i386 liblwp-mediatypes-perl liblwp-protocol-https-perl libmailtools-perl libmpg123-0 libmpg123-0:i386 libnet-http-perl libnet-ssleay-perl libodbc1 libogg0:i386 libopenal-data libopenal1 libopenal1:i386 liborc-0.4-0:i386 libosmesa6 libosmesa6:i386 libp11-kit0:i386 libpam-winbind libpcre3 libpcre3:i386 libpng12-0:i386 libpulse0:i386 libroken18-heimdal:i386 libsamplerate0:i386 libsane:i386 libsasl2-2:i386 libsasl2-modules:i386 libselinux1:i386 libsm6:i386 libsndfile1 libsndfile1:i386 libsocket6-perl libspeexdsp1:i386 libsqlite3-0 libsqlite3-0:i386 libssl1.0.0:i386 libtasn1-3 libtasn1-3:i386 libtiff4 libtiff4:i386 liburi-perl libusb-0.1-4:i386 libuuid1 libuuid1:i386 libv4l-0:i386 libv4lconvert0:i386 libvorbis0a:i386 libvorbisenc2:i386 libwbclient0 libwind0-heimdal:i386 libwrap0:i386 libwww-perl libwww-robotrules-perl libxcomposite1:i386 libxcursor1:i386 libxi6 libxi6:i386 libxinerama1:i386 libxml2:i386 libxpm4 libxpm4:i386 libxrandr2 libxrandr2:i386 libxrender1:i386 libxslt1.1:i386 libxt6:i386 odbcinst odbcinst1debian2 p7zip samba-common smbclient ttf-mscorefonts-installer unixodbc winbind wine-gecko2.21 wine-gecko2.21:i386 wine-mono0.0.8 wine1.6 wine1.6-amd64 wine1.6-i386:i386 winetricksSuggested packages: libterm-readline-gnu-perl libterm-readline-perl-perl libasound2-python:i386 cups-common:i386 rng-tools rng-tools:i386 libgd-tools libgd-tools:i386 gnutls-bin gnutls-bin:i386 gphoto2:i386 gtkam:i386 krb5-doc krb5-user krb5-doc:i386 krb5-user:i386 libvisual-0.4-plugins:i386 gstreamer-codec-install:i386 gnome-codec-install:i386 gstreamer0.10-tools:i386 gstreamer0.10-plugins-base:i386 libdata-dump-perl jackd2:i386 liblcms-utils:i386 libcrypt-ssleay-perl libmyodbc odbc-postgresql tdsodbc unixodbc-bin hpoj:i386 hplip:i386 libsane-extras:i386 sane-utils:i386 libsasl2-modules-otp:i386 libsasl2-modules-ldap:i386 libsasl2-modules-sql:i386 libsasl2-modules-gssapi-mit:i386 libsasl2-modules-gssapi-heimdal:i386 libauthen-ntlm-perl p7zip-full cifs-utils dosbox:anyRecommended packages: xml-core:i386 wine1.5-amd64 wine1.5-i386:i386 unixodbc:i386 wine-mono0.0.8:i386The following NEW packages will be installed: binfmt-support cabextract fonts-droid fonts-horai-umefont fonts-unfonts-core gnome-exe-thumbnailer icoutils libasn1-8-heimdal:i386 libasound2:i386 libasound2-plugins:i386 libasyncns0:i386 libavahi-client3:i386 libavahi-common-data:i386 libavahi-common3:i386 libcapi20-3 libcapi20-3:i386 libcomerr2:i386 libcups2:i386 libdb5.1:i386 libdbus-1-3:i386 libencode-locale-perl libexif12:i386 libfile-listing-perl libflac8:i386 libfont-afm-perl libfontconfig1:i386 libgcrypt11:i386 libgd2-xpm:i386 libgif4:i386 libglib2.0-0:i386 libglu1-mesa:i386 libgnutls26:i386 libgpg-error0:i386 libgphoto2-2:i386 libgphoto2-port0:i386 libgssapi-krb5-2:i386 libgssapi3-heimdal:i386 libgstreamer-plugins-base0.10-0:i386 libgstreamer0.10-0:i386 libhcrypto4-heimdal:i386 libheimbase1-heimdal:i386 libheimntlm0-heimdal:i386 libhtml-form-perl libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libhx509-5-heimdal:i386 libice6:i386 libieee1284-3:i386 libio-socket-inet6-perl libio-socket-ssl-perl libjack-jackd2-0:i386 libjpeg-turbo8:i386 libjpeg8:i386 libjson0:i386 libk5crypto3:i386 libkeyutils1:i386 libkrb5-26-heimdal:i386 libkrb5-3:i386 libkrb5support0:i386 liblcms1:i386 libldap-2.4-2:i386 libltdl7:i386 liblwp-mediatypes-perl liblwp-protocol-https-perl libmailtools-perl libmpg123-0 libmpg123-0:i386 libnet-http-perl libnet-ssleay-perl libodbc1 libogg0:i386 libopenal-data libopenal1 libopenal1:i386 liborc-0.4-0:i386 libosmesa6 libosmesa6:i386 libp11-kit0:i386 libpam-winbind libpcre3:i386 libpng12-0:i386 libpulse0:i386 libroken18-heimdal:i386 libsamplerate0:i386 libsane:i386 libsasl2-2:i386 libsasl2-modules:i386 libselinux1:i386 libsm6:i386 libsndfile1:i386 libsocket6-perl libspeexdsp1:i386 libsqlite3-0:i386 libssl1.0.0:i386 libtasn1-3:i386 libtiff4:i386 liburi-perl libusb-0.1-4:i386 libuuid1:i386 libv4l-0:i386 libv4lconvert0:i386 libvorbis0a:i386 libvorbisenc2:i386 libwind0-heimdal:i386 libwrap0:i386 libwww-perl libwww-robotrules-perl libxcomposite1:i386 libxcursor1:i386 libxi6:i386 libxinerama1:i386 libxml2:i386 libxpm4:i386 libxrandr2:i386 libxrender1:i386 libxslt1.1:i386 libxt6:i386 odbcinst odbcinst1debian2 p7zip ttf-mscorefonts-installer unixodbc winbind wine wine-gecko2.21 wine-gecko2.21:i386 wine-mono0.0.8 wine1.6 wine1.6-amd64 wine1.6-i386:i386 winetricksThe following packages will be upgraded: fontconfig-config libavahi-client3 libavahi-common-data libavahi-common3 libcomerr2 libcups2 libdbus-1-3 libflac8 libfontconfig1 libgcrypt11 libgd2-xpm libgnutls26 libgssapi-krb5-2 libgstreamer-plugins-base0.10-0 libjpeg-turbo8 libjson0 libk5crypto3 libkrb5-3 libkrb5support0 libldap-2.4-2 libpcre3 libsndfile1 libsqlite3-0 libtasn1-3 libtiff4 libuuid1 libwbclient0 libxi6 libxpm4 libxrandr2 samba-common smbclient32 upgraded, 138 newly installed, 0 to remove and 387 not upgraded.Need to get 256 MB of archives.After this operation, 563 MB of additional disk space will be used.Do you want to continue [Y/n]? y