Skip to content

Instantly share code, notes, and snippets.

@yt-siden
Last active January 31, 2018 12:20
Show Gist options
  • Save yt-siden/dd2c57c619531700312120a0f148fd9e to your computer and use it in GitHub Desktop.
Save yt-siden/dd2c57c619531700312120a0f148fd9e to your computer and use it in GitHub Desktop.

Ubuntu 14.04 LTS から 16.04 LTS にアップグレードしたらデスクトップが起動しなかったので起動できるようにした話

問題の概要

  1. do-dist-upgrade でアップグレードを行って再起動したら,GUIの起動画面で止まった
  2. SSHでログインすることはできた
  3. apt, apt-get コマンドは libstdc++ のバージョンの違いにより利用不能

解決法

apt を使えるようにする

dpkg は使えたので,gcc-5-baselibstdc++ を上書きインストールする.

% wget http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/gcc-5-base_5.4.0-6ubuntu1~16.04.4_amd64.deb
--2018-01-30 19:30:00--  http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/gcc-5-base_5.4.0-6ubuntu1~16.04.4_amd64.deb
Resolving security.ubuntu.com (security.ubuntu.com)... 91.189.88.152, 91.189.91.23, 91.189.88.162, ...
Connecting to security.ubuntu.com (security.ubuntu.com)|91.189.88.152|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 16770 (16K) [application/x-debian-package]
Saving to: ‘gcc-5-base_5.4.0-6ubuntu1~16.04.4_amd64.deb’

gcc-5-base_5.4.0-6ubuntu1~16.04.4_amd64 100%[=============================================================================>]  16.38K  74.9KB/s    in 0.2s

2018-01-30 19:30:01 (74.9 KB/s) - ‘gcc-5-base_5.4.0-6ubuntu1~16.04.4_amd64.deb’ saved [16770/16770]

% sudo dpkg -i gcc-5-base_5.4.0-6ubuntu1\~16.04.4_amd64.deb
dpkg: warning: downgrading gcc-5-base:amd64 from 5.4.1-2ubuntu1~14.04 to 5.4.0-6ubuntu1~16.04.4
(Reading database ... 621208 files and directories currently installed.)
Preparing to unpack gcc-5-base_5.4.0-6ubuntu1~16.04.4_amd64.deb ...
Unpacking gcc-5-base:amd64 (5.4.0-6ubuntu1~16.04.4) over (5.4.1-2ubuntu1~14.04) ...
Setting up gcc-5-base:amd64 (5.4.0-6ubuntu1~16.04.4) ...

% wget http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libstdc++6_5.4.0-6ubuntu1~16.04.4_amd64.deb
--2018-01-30 19:16:15--  http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libstdc++6_5.4.0-6ubuntu1~16.04.4_amd64.deb
Resolving security.ubuntu.com (security.ubuntu.com)... 91.189.88.152, 91.189.91.23, 91.189.91.26, ...
Connecting to security.ubuntu.com (security.ubuntu.com)|91.189.88.152|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 393398 (384K) [application/x-debian-package]
Saving to: ‘libstdc++6_5.4.0-6ubuntu1~16.04.4_amd64.deb’

libstdc++6_5.4.0-6ubuntu1~16.04.4_amd64 100%[=============================================================================>] 384.18K   333KB/s    in 1.2s

% sudo dpkg -i libstdc++6_5.4.0-6ubuntu1\~16.04.4_amd64.deb
(snip.)
Reading database ... 621208 files and directories currently installed.)
Preparing to unpack libstdc++6_5.4.0-6ubuntu1~16.04.4_amd64.deb ...
Unpacking libstdc++6:amd64 (5.4.0-6ubuntu1~16.04.4) over (5.4.0-6ubuntu1~16.04.4) ...
Setting up libstdc++6:amd64 (5.4.0-6ubuntu1~16.04.4) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
/sbin/ldconfig.real: /usr/local/cuda-8.0/targets/x86_64-linux/lib/libcudnn.so.5 is not a symbolic link

apt は使えるようになったはずなので,upgradeしてみる

% sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 cpp-5 : Depends: gcc-5-base (= 5.4.1-2ubuntu1~14.04) but 5.4.0-6ubuntu1~16.04.4 is installed
 g++-5 : Depends: gcc-5-base (= 5.4.1-2ubuntu1~14.04) but 5.4.0-6ubuntu1~16.04.4 is installed
 gcc-5 : Depends: gcc-5-base (= 5.4.1-2ubuntu1~14.04) but 5.4.0-6ubuntu1~16.04.4 is installed
 libasan2 : Depends: gcc-5-base (= 5.4.1-2ubuntu1~14.04) but 5.4.0-6ubuntu1~16.04.4 is installed
 libgcc-5-dev : Depends: gcc-5-base (= 5.4.1-2ubuntu1~14.04) but 5.4.0-6ubuntu1~16.04.4 is installed
 libmpx0 : Depends: gcc-5-base (= 5.4.1-2ubuntu1~14.04) but 5.4.0-6ubuntu1~16.04.4 is installed
 libstdc++-5-dev : Depends: gcc-5-base (= 5.4.1-2ubuntu1~14.04) but 5.4.0-6ubuntu1~16.04.4 is installed
                   Depends: libstdc++6 (>= 5.4.1-2ubuntu1~14.04) but 5.4.0-6ubuntu1~16.04.4 is installed
E: Unmet dependencies. Try using -f.

この状態で, sudo apt-get -f install を実行すると CUDA, NVIDIAのドライバ, dkms などがremoveされると表示されたので中断. (ログ取り忘れました)

Test buildのツールチェインを使うようにして,アップグレードする

% sudo apt-add-repository ppa:ubuntu-toolchain-r/test
 Toolchain test builds; see https://wiki.ubuntu.com/ToolChain

 More info: https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmpn3teq8oj/secring.gpg' created
gpg: keyring `/tmp/tmpn3teq8oj/pubring.gpg' created
gpg: requesting key BA9EF27F from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpn3teq8oj/trustdb.gpg: trustdb created
gpg: key BA9EF27F: public key "Launchpad Toolchain builds" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK

% sudo apt-get update
Get:1 file:/var/cuda-repo-9-1-local  InRelease
Ign:1 file:/var/cuda-repo-9-1-local  InRelease
Get:2 file:/var/cuda-repo-9-1-local  Release [574 B]
Get:2 file:/var/cuda-repo-9-1-local  Release [574 B]
Hit:3 http://jp.archive.ubuntu.com/ubuntu xenial InRelease
Hit:4 http://jp.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:5 http://jp.archive.ubuntu.com/ubuntu xenial-backports InRelease
Ign:7 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  InRelease
Hit:8 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  Release
Get:10 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:11 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial InRelease [17.6 kB]
Get:12 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [62.7 kB]
Get:13 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 Packages [63.8 kB]
Get:14 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [66.2 kB]
Get:15 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [51.4 kB]
Get:16 http://security.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [80.2 kB]
Get:17 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main i386 Packages [62.4 kB]
Get:18 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main Translation-en [13.5 kB]
Fetched 520 kB in 3s (168 kB/s)
Reading package lists... Done

% sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  account-plugin-twitter aptitude-common checkbox-ng consolekit empathy-common folks-common fonts-dejavu friends friends-dispatcher friends-facebook
  friends-twitter gir1.2-ebook-1.2 gir1.2-ebookcontacts-1.2 gir1.2-edataserver-1.2 gir1.2-gnomebluetooth-1.0 gir1.2-messagingmenu-1.0
  gir1.2-networkmanager-1.0 gstreamer0.10-nice gstreamer0.10-pulseaudio gstreamer0.10-x gstreamer1.0-clutter gstreamer1.0-nice gtk3-engines-unico icoutils
  iproute kactivities kate-data katepart kde-runtime kde-runtime-data kde-style-breeze kde-style-breeze-qt4 kde-style-oxygen kdelibs-bin kdelibs5-plugins
  kdoctools kpackagelauncherqml kpackagetool5 kubuntu-debug-installer kwayland-data kwayland-integration libamd2.3.1 libatk-wrapper-java
  libatk-wrapper-java-jni libavahi-gobject0 libavcodec54 libavformat54 libavutil52 libbaloocore4 libbaloofiles4 libbalooxapian4 libbind9-90
  libboost-atomic1.54.0 libboost-chrono1.54.0 libboost-context1.54.0 libboost-date-time1.54.0 libboost-filesystem1.54.0 libboost-graph1.54.0
  libboost-iostreams1.54.0 libboost-locale1.54.0 libboost-log1.54.0 libboost-math1.54.0 libboost-program-options1.54.0 libboost-python1.54.0
  libboost-random1.54.0 libboost-regex1.54.0 libboost-serialization1.54.0 libboost-signals1.54.0 libboost-system1.54.0 libboost-test1.54.0
  libboost-thread1.54.0 libboost-timer1.54.0 libboost-wave1.54.0 libcamd2.3.1 libcamel-1.2-45 libccolamd2.8.0 libcdr-0.0-0 libchamplain-0.12-0
  libcholmod2.1.2 libck-connector0 libclutter-gst-2.0-0 libcmis-0.4-4 libcolamd2.8.0 libcolord1 libcolorhug1 libcr0 libcrypt-passwdmd5-perl libcupti5.5
  libdns100 libebackend-1.2-7 libebook-1.2-14 libebook-contacts-1.2-0 libedata-book-1.2-20 libedataserver-1.2-18 libegl1-mesa-drivers libelfg0 libept1.4.12
  libepub0 libexiv2-12 libfam0 libfolks-eds25 libfolks-telepathy25 libfolks25 libfriends0 libgbm1-lts-xenial libgdata13 libgee2 libgif4
  libgl1-mesa-dri-lts-xenial libglapi-mesa-lts-xenial libglew1.10 libglewmx1.10 libgnome-bluetooth11 libgnome-desktop-3-7 libgphoto2-port10 libgrip0
  libgssglue1 libgtop2-7 libgupnp-igd-1.0-4 libhdf5-7 libicu52 libilmbase6 libimobiledevice4 libisc95 libisccc90 libisccfg90 libkactivities-models1
  libkactivities6 libkatepartinterfaces4 libkcmutils4 libkde3support4 libkdeclarative5 libkdecorations4abi1 libkdesu5 libkdewebkit5 libkdnssd4
  libkemoticons4 libkf5activities5 libkf5archive5 libkf5attica5 libkf5auth-data libkf5auth5 libkf5calendarevents5 libkf5codecs-data libkf5codecs5
  libkf5completion-data libkf5completion5 libkf5config-bin libkf5config-data libkf5configcore5 libkf5configgui5 libkf5configwidgets-data
  libkf5configwidgets5 libkf5coreaddons-data libkf5coreaddons5 libkf5crash5 libkf5dbusaddons-bin libkf5dbusaddons-data libkf5dbusaddons5
  libkf5declarative-data libkf5declarative5 libkf5globalaccel-bin libkf5globalaccel-data libkf5globalaccel5 libkf5globalaccelprivate5 libkf5guiaddons5
  libkf5i18n-data libkf5i18n5 libkf5iconthemes-bin libkf5iconthemes-data libkf5iconthemes5 libkf5idletime5 libkf5itemviews-data libkf5itemviews5
  libkf5jobwidgets-data libkf5jobwidgets5 libkf5kiocore5 libkf5kiowidgets5 libkf5notifications-data libkf5notifications5 libkf5package-data libkf5package5
  libkf5plasma5 libkf5plasmaquick5 libkf5quickaddons5 libkf5service-bin libkf5service-data libkf5service5 libkf5sonnet5-data libkf5sonnetcore5
  libkf5sonnetui5 libkf5style5 libkf5textwidgets-data libkf5textwidgets5 libkf5waylandclient5 libkf5widgetsaddons-data libkf5widgetsaddons5
  libkf5windowsystem-data libkf5windowsystem5 libkf5xmlgui-bin libkf5xmlgui-data libkf5xmlgui5 libkfile4 libkhtml5 libkidletime4 libkio5 libkjsapi4
  libkjsembed4 libkmediaplayer4 libknewstuff3-4 libknotifyconfig4 libkntlm4 libkparts4 libkpty4 libkrosscore4 libktexteditor4 libkwineffects1abi4
  libkwinglesutils1 libkwinglutils1abi3 libkworkspace4abi2 libkxmlrpcclient4 libllvm3.8v4 liblouis2 liblwres90 libmagickcore5 libmagickwand5 libmbim-glib0
  libmeanwhile1 libminiupnpc8 libmission-control-plugins0 libmspub-0.0-0 libnepomukcleaner4 libnepomukcore4abi1 libnice10 libnl-route-3-200 libntrack-qt4-1
  libntrack0 libopenexr6 libopenjpeg2 libopenobex2 liborcus-0.6-0 libpam-ck-connector libpango1.0-0 libparted0debian1 libpci-dev libphonon4 libphonon4qt5-4
  libplasma3 libplist1 libpocketsphinx1 libpolkit-qt-1-1 libpolkit-qt5-1-1 libpoppler-qt4-4 libpoppler44 libprotobuf8 libpurple-bin libqapt3
  libqapt3-runtime libqca2 libqca2-plugins libqjson0 libqmi-glib0 libqmobipocket1 libqpdf13 libqt4-qt3support libqt5qml-graphicaleffects libqt5quickwidgets5
  libqt5script5 libqt5sensors5 libqt5webkit5-qmlwebkitplugin libqt5x11extras5 libraw9 librhythmbox-core8 librtmp0 libsctp1 libsolid4 libsoprano4
  libsphinxbase1 libstreamanalyzer0v5 libstreams0v5 libswscale2 libsystemd-daemon0 libsystemd-login0 libt1-5 libtelepathy-logger3 libthreadweaver4
  libthumbnailer0 libtorque2 libudev-dev libumfpack5.6.2 libunityvoice1 libupower-glib1 libusbmuxd2 libvirtodbc0 libvisio-0.0-0 libvoikko1 libvpx1
  libwnck-common libwnck22 libwpd-0.9-9 libwpg-0.2-2 libwps-0.2-2 libx264-142 libxcb-composite0 libxcb-damage0 libxcb-util0 libxcb-xtest0 libxml2-dev
  libxtables10 libzephyr4 libzip2 libzip4 linux-headers-4.4.0-111 linux-headers-4.4.0-111-generic linux-headers-generic-lts-vivid
  linux-headers-generic-lts-xenial linux-image-4.4.0-111-generic linux-image-extra-4.4.0-111-generic linux-image-generic-lts-vivid
  linux-image-generic-lts-xenial lksctp-tools m17n-contrib nepomuk-core-data ntrack-module-libnl-0 obex-data-server odbcinst odbcinst1debian2
  oxygen-icon-theme oxygen5-icon-theme phonon phonon-backend-gstreamer phonon-backend-gstreamer-common phonon-backend-gstreamer1.0 pidgin-data
  plasma-framework plasma-scriptengine-javascript python-colorama python-commandnotfound python-dbus-dev python-distlib python-gconf python-gdbm
  python-gnomekeyring python-ibus python-libxml2 python-notify python-pexpect python-ptyprocess python-renderpm python-reportlab python-reportlab-accel
  python-requests python-smbc python-support python3-checkbox-ng python3-colorama python3-distlib qapt-batch qml-module-org-kde-activities
  qml-module-org-kde-kquickcontrols qml-module-org-kde-kquickcontrolsaddons qml-module-qtquick-controls qml-module-qtquick-dialogs
  qml-module-qtquick-localstorage qml-module-qtquick-privatewidgets qml-module-ubuntu-ui-extras-browser qtdeclarative5-dialogs-plugin
  qtdeclarative5-localstorage-plugin qtdeclarative5-privatewidgets-plugin qtdeclarative5-qtfeedback-plugin qtdeclarative5-ubuntu-ui-extras-browser-plugin
  qtdeclarative5-ubuntu-ui-extras-browser-plugin-assets qtdeclarative5-window-plugin shared-desktop-ontologies signon-keyring-extension sonnet-plugins
  soprano-daemon sphinx-voxforge-hmm-en sphinx-voxforge-lm-en telepathy-gabble telepathy-indicator telepathy-logger telepathy-mission-control-5
  telepathy-salut ttf-dejavu-core ubuntu-extras-keyring unity-lens-friends unity-scope-audacious unity-scope-clementine unity-scope-gmusicbrowser
  unity-scope-gourmet unity-scope-guayadeque unity-scope-musique unity-voice-service virtuoso-minimal virtuoso-opensource-6.1-bin
  virtuoso-opensource-6.1-common watershed xfonts-mathml xserver-xorg-input-evdev-lts-xenial xserver-xorg-input-synaptics-lts-xenial
  xserver-xorg-input-vmmouse-lts-xenial xserver-xorg-input-wacom-lts-xenial xserver-xorg-video-all-lts-xenial xserver-xorg-video-amdgpu-lts-xenial
  xserver-xorg-video-ati-lts-xenial xserver-xorg-video-cirrus-lts-xenial xserver-xorg-video-fbdev-lts-xenial xserver-xorg-video-intel-lts-xenial
  xserver-xorg-video-mach64-lts-xenial xserver-xorg-video-mga-lts-xenial xserver-xorg-video-neomagic-lts-xenial xserver-xorg-video-nouveau-lts-xenial
  xserver-xorg-video-openchrome-lts-xenial xserver-xorg-video-qxl-lts-xenial xserver-xorg-video-r128-lts-xenial xserver-xorg-video-radeon-lts-xenial
  xserver-xorg-video-savage-lts-xenial xserver-xorg-video-siliconmotion-lts-xenial xserver-xorg-video-sisusb-lts-xenial xserver-xorg-video-tdfx-lts-xenial
  xserver-xorg-video-trident-lts-xenial xserver-xorg-video-vesa-lts-xenial xserver-xorg-video-vmware-lts-xenial
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  cpp-5 g++-5 gcc-5 gcc-5-base gcc-7-base lib32gcc1 libasan2 libatomic1 libcc1-0 libcilkrts5 libgcc-5-dev libgcc1 libgomp1 libitm1 liblsan0 libmpx0
  libquadmath0 libstdc++-5-dev libstdc++6 libtsan0 libubsan0
Suggested packages:
  gcc-5-locales g++-5-multilib gcc-5-doc libstdc++6-5-dbg gcc-5-multilib libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg libasan2-dbg liblsan0-dbg
  libtsan0-dbg libubsan0-dbg libcilkrts5-dbg libmpx0-dbg libquadmath0-dbg libstdc++-5-doc
The following packages will be upgraded:
  cpp-5 g++-5 gcc-5 gcc-5-base gcc-7-base lib32gcc1 libasan2 libatomic1 libcc1-0 libcilkrts5 libgcc-5-dev libgcc1 libgomp1 libitm1 liblsan0 libmpx0
  libquadmath0 libstdc++-5-dev libstdc++6 libtsan0 libubsan0
21 upgraded, 0 newly installed, 0 to remove and 40 not upgraded.
1 not fully installed or removed.
Need to get 30.1 MB of archives.
After this operation, 8,936 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libquadmath0 amd64 7.2.0-1ubuntu1~16.04 [133 kB]
Get:2 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 lib32gcc1 amd64 1:7.2.0-1ubuntu1~16.04 [46.8 kB]
Get:3 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libitm1 amd64 7.2.0-1ubuntu1~16.04 [27.6 kB]
Get:4 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 liblsan0 amd64 7.2.0-1ubuntu1~16.04 [126 kB]
Get:5 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libtsan0 amd64 7.2.0-1ubuntu1~16.04 [275 kB]
Get:6 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libubsan0 amd64 7.2.0-1ubuntu1~16.04 [119 kB]
Get:7 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libcilkrts5 amd64 7.2.0-1ubuntu1~16.04 [42.4 kB]
Get:8 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libcc1-0 amd64 7.2.0-1ubuntu1~16.04 [38.6 kB]
Get:9 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libatomic1 amd64 7.2.0-1ubuntu1~16.04 [8,948 B]
Get:10 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libgomp1 amd64 7.2.0-1ubuntu1~16.04 [76.4 kB]
Get:11 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 gcc-7-base amd64 7.2.0-1ubuntu1~16.04 [17.7 kB]
Get:12 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libgcc1 amd64 1:7.2.0-1ubuntu1~16.04 [39.3 kB]
Get:13 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libstdc++6 amd64 7.2.0-1ubuntu1~16.04 [403 kB]
Get:14 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libmpx0 amd64 5.4.1-2ubuntu1~16.04 [9,762 B]
Get:15 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 g++-5 amd64 5.4.1-2ubuntu1~16.04 [8,455 kB]
Get:16 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 gcc-5 amd64 5.4.1-2ubuntu1~16.04 [8,574 kB]
Get:17 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 cpp-5 amd64 5.4.1-2ubuntu1~16.04 [7,802 kB]
Get:18 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libasan2 amd64 5.4.1-2ubuntu1~16.04 [264 kB]
Get:19 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libstdc++-5-dev amd64 5.4.1-2ubuntu1~16.04 [1,432 kB]
Get:20 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libgcc-5-dev amd64 5.4.1-2ubuntu1~16.04 [2,232 kB]
Get:21 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 gcc-5-base amd64 5.4.1-2ubuntu1~16.04 [17.3 kB]
Fetched 30.1 MB in 1min 36s (314 kB/s)
(Reading database ... 621208 files and directories currently installed.)
Preparing to unpack .../libquadmath0_7.2.0-1ubuntu1~16.04_amd64.deb ...
Unpacking libquadmath0:amd64 (7.2.0-1ubuntu1~16.04) over (7.2.0-1ubuntu1~14.04) ...
Preparing to unpack .../lib32gcc1_1%3a7.2.0-1ubuntu1~16.04_amd64.deb ...
Unpacking lib32gcc1 (1:7.2.0-1ubuntu1~16.04) over (1:7.2.0-1ubuntu1~14.04) ...
Preparing to unpack .../libitm1_7.2.0-1ubuntu1~16.04_amd64.deb ...
Unpacking libitm1:amd64 (7.2.0-1ubuntu1~16.04) over (7.2.0-1ubuntu1~14.04) ...
Preparing to unpack .../liblsan0_7.2.0-1ubuntu1~16.04_amd64.deb ...
Unpacking liblsan0:amd64 (7.2.0-1ubuntu1~16.04) over (7.2.0-1ubuntu1~14.04) ...
Preparing to unpack .../libtsan0_7.2.0-1ubuntu1~16.04_amd64.deb ...
Unpacking libtsan0:amd64 (7.2.0-1ubuntu1~16.04) over (7.2.0-1ubuntu1~14.04) ...
Preparing to unpack .../libubsan0_7.2.0-1ubuntu1~16.04_amd64.deb ...
Unpacking libubsan0:amd64 (7.2.0-1ubuntu1~16.04) over (7.2.0-1ubuntu1~14.04) ...
Preparing to unpack .../libcilkrts5_7.2.0-1ubuntu1~16.04_amd64.deb ...
Unpacking libcilkrts5:amd64 (7.2.0-1ubuntu1~16.04) over (7.2.0-1ubuntu1~14.04) ...
Preparing to unpack .../libcc1-0_7.2.0-1ubuntu1~16.04_amd64.deb ...
Unpacking libcc1-0:amd64 (7.2.0-1ubuntu1~16.04) over (7.2.0-1ubuntu1~14.04) ...
Preparing to unpack .../libatomic1_7.2.0-1ubuntu1~16.04_amd64.deb ...
Unpacking libatomic1:amd64 (7.2.0-1ubuntu1~16.04) over (7.2.0-1ubuntu1~14.04) ...
Preparing to unpack .../libgomp1_7.2.0-1ubuntu1~16.04_amd64.deb ...
Unpacking libgomp1:amd64 (7.2.0-1ubuntu1~16.04) over (7.2.0-1ubuntu1~14.04) ...
Preparing to unpack .../gcc-7-base_7.2.0-1ubuntu1~16.04_amd64.deb ...
Unpacking gcc-7-base:amd64 (7.2.0-1ubuntu1~16.04) over (7.2.0-1ubuntu1~14.04) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
/sbin/ldconfig.real: /usr/local/cuda-8.0/targets/x86_64-linux/lib/libcudnn.so.5 is not a symbolic link

Setting up gcc-7-base:amd64 (7.2.0-1ubuntu1~16.04) ...
(Reading database ... 621208 files and directories currently installed.)
Preparing to unpack .../libgcc1_1%3a7.2.0-1ubuntu1~16.04_amd64.deb ...
Unpacking libgcc1:amd64 (1:7.2.0-1ubuntu1~16.04) over (1:7.2.0-1ubuntu1~14.04) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
/sbin/ldconfig.real: /usr/local/cuda-8.0/targets/x86_64-linux/lib/libcudnn.so.5 is not a symbolic link

Setting up libgcc1:amd64 (1:7.2.0-1ubuntu1~16.04) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
/sbin/ldconfig.real: /usr/local/cuda-8.0/targets/x86_64-linux/lib/libcudnn.so.5 is not a symbolic link

(Reading database ... 621208 files and directories currently installed.)
Preparing to unpack .../libstdc++6_7.2.0-1ubuntu1~16.04_amd64.deb ...
Unpacking libstdc++6:amd64 (7.2.0-1ubuntu1~16.04) over (5.4.0-6ubuntu1~16.04.4) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
/sbin/ldconfig.real: /usr/local/cuda-8.0/targets/x86_64-linux/lib/libcudnn.so.5 is not a symbolic link

Setting up libstdc++6:amd64 (7.2.0-1ubuntu1~16.04) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
/sbin/ldconfig.real: /usr/local/cuda-8.0/targets/x86_64-linux/lib/libcudnn.so.5 is not a symbolic link

(Reading database ... 621208 files and directories currently installed.)
Preparing to unpack .../libmpx0_5.4.1-2ubuntu1~16.04_amd64.deb ...
Unpacking libmpx0:amd64 (5.4.1-2ubuntu1~16.04) over (5.4.1-2ubuntu1~14.04) ...
Preparing to unpack .../g++-5_5.4.1-2ubuntu1~16.04_amd64.deb ...
Unpacking g++-5 (5.4.1-2ubuntu1~16.04) over (5.4.1-2ubuntu1~14.04) ...
Preparing to unpack .../gcc-5_5.4.1-2ubuntu1~16.04_amd64.deb ...
Unpacking gcc-5 (5.4.1-2ubuntu1~16.04) over (5.4.1-2ubuntu1~14.04) ...
Preparing to unpack .../cpp-5_5.4.1-2ubuntu1~16.04_amd64.deb ...
Unpacking cpp-5 (5.4.1-2ubuntu1~16.04) over (5.4.1-2ubuntu1~14.04) ...
Preparing to unpack .../libasan2_5.4.1-2ubuntu1~16.04_amd64.deb ...
Unpacking libasan2:amd64 (5.4.1-2ubuntu1~16.04) over (5.4.1-2ubuntu1~14.04) ...
Preparing to unpack .../libstdc++-5-dev_5.4.1-2ubuntu1~16.04_amd64.deb ...
Unpacking libstdc++-5-dev:amd64 (5.4.1-2ubuntu1~16.04) over (5.4.1-2ubuntu1~14.04) ...
Preparing to unpack .../libgcc-5-dev_5.4.1-2ubuntu1~16.04_amd64.deb ...
Unpacking libgcc-5-dev:amd64 (5.4.1-2ubuntu1~16.04) over (5.4.1-2ubuntu1~14.04) ...
Preparing to unpack .../gcc-5-base_5.4.1-2ubuntu1~16.04_amd64.deb ...
Unpacking gcc-5-base:amd64 (5.4.1-2ubuntu1~16.04) over (5.4.0-6ubuntu1~16.04.4) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
/sbin/ldconfig.real: /usr/local/cuda-8.0/targets/x86_64-linux/lib/libcudnn.so.5 is not a symbolic link

Processing triggers for man-db (2.7.5-1) ...
Setting up emacs24 (24.5+1-6ubuntu1.1) ...
Install cmake-data for emacs24
install/cmake-data: Byte-compiling for emacs24
ln: failed to create symbolic link '/usr/share/emacs24/site-lisp/cmake-data/cmake-mode.el': File exists
Wrote /usr/share/emacs24/site-lisp/cmake-data/cmake-mode.elc
Install emacsen-common for emacs24
emacsen-common: Handling install of emacsen flavor emacs24
Wrote /etc/emacs24/site-start.d/00debian-vars.elc
Wrote /usr/share/emacs24/site-lisp/debian-startup.elc
Install dictionaries-common for emacs24
install/dictionaries-common: Byte-compiling for emacsen flavour emacs24
Wrote /usr/share/emacs24/site-lisp/dictionaries-common/debian-ispell.elc
Setting up libquadmath0:amd64 (7.2.0-1ubuntu1~16.04) ...
Setting up lib32gcc1 (1:7.2.0-1ubuntu1~16.04) ...
Setting up libitm1:amd64 (7.2.0-1ubuntu1~16.04) ...
Setting up liblsan0:amd64 (7.2.0-1ubuntu1~16.04) ...
Setting up libtsan0:amd64 (7.2.0-1ubuntu1~16.04) ...
Setting up libubsan0:amd64 (7.2.0-1ubuntu1~16.04) ...
Setting up libcilkrts5:amd64 (7.2.0-1ubuntu1~16.04) ...
Setting up libcc1-0:amd64 (7.2.0-1ubuntu1~16.04) ...
Setting up libatomic1:amd64 (7.2.0-1ubuntu1~16.04) ...
Setting up libgomp1:amd64 (7.2.0-1ubuntu1~16.04) ...
Setting up gcc-5-base:amd64 (5.4.1-2ubuntu1~16.04) ...
Setting up libmpx0:amd64 (5.4.1-2ubuntu1~16.04) ...
Setting up cpp-5 (5.4.1-2ubuntu1~16.04) ...
Setting up libasan2:amd64 (5.4.1-2ubuntu1~16.04) ...
Setting up libgcc-5-dev:amd64 (5.4.1-2ubuntu1~16.04) ...
Setting up gcc-5 (5.4.1-2ubuntu1~16.04) ...
Setting up libstdc++-5-dev:amd64 (5.4.1-2ubuntu1~16.04) ...
Setting up g++-5 (5.4.1-2ubuntu1~16.04) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
/sbin/ldconfig.real: /usr/local/cuda-8.0/targets/x86_64-linux/lib/libcudnn.so.5 is not a symbolic link

% sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  account-plugin-twitter aptitude-common checkbox-ng consolekit empathy-common folks-common fonts-dejavu friends friends-dispatcher friends-facebook
  friends-twitter gir1.2-ebook-1.2 gir1.2-ebookcontacts-1.2 gir1.2-edataserver-1.2 gir1.2-gnomebluetooth-1.0 gir1.2-messagingmenu-1.0
  gir1.2-networkmanager-1.0 gstreamer0.10-nice gstreamer0.10-pulseaudio gstreamer0.10-x gstreamer1.0-clutter gstreamer1.0-nice gtk3-engines-unico icoutils
  iproute kactivities kate-data katepart kde-runtime kde-runtime-data kde-style-breeze kde-style-breeze-qt4 kde-style-oxygen kdelibs-bin kdelibs5-plugins
  kdoctools kpackagelauncherqml kpackagetool5 kubuntu-debug-installer kwayland-data kwayland-integration libamd2.3.1 libatk-wrapper-java
  libatk-wrapper-java-jni libavahi-gobject0 libavcodec54 libavformat54 libavutil52 libbaloocore4 libbaloofiles4 libbalooxapian4 libbind9-90
  libboost-atomic1.54.0 libboost-chrono1.54.0 libboost-context1.54.0 libboost-date-time1.54.0 libboost-filesystem1.54.0 libboost-graph1.54.0
  libboost-iostreams1.54.0 libboost-locale1.54.0 libboost-log1.54.0 libboost-math1.54.0 libboost-program-options1.54.0 libboost-python1.54.0
  libboost-random1.54.0 libboost-regex1.54.0 libboost-serialization1.54.0 libboost-signals1.54.0 libboost-system1.54.0 libboost-test1.54.0
  libboost-thread1.54.0 libboost-timer1.54.0 libboost-wave1.54.0 libcamd2.3.1 libcamel-1.2-45 libccolamd2.8.0 libcdr-0.0-0 libchamplain-0.12-0
  libcholmod2.1.2 libck-connector0 libclutter-gst-2.0-0 libcmis-0.4-4 libcolamd2.8.0 libcolord1 libcolorhug1 libcr0 libcrypt-passwdmd5-perl libcupti5.5
  libdns100 libebackend-1.2-7 libebook-1.2-14 libebook-contacts-1.2-0 libedata-book-1.2-20 libedataserver-1.2-18 libegl1-mesa-drivers libelfg0 libept1.4.12
  libepub0 libexiv2-12 libfam0 libfolks-eds25 libfolks-telepathy25 libfolks25 libfriends0 libgbm1-lts-xenial libgdata13 libgee2 libgif4
  libgl1-mesa-dri-lts-xenial libglapi-mesa-lts-xenial libglew1.10 libglewmx1.10 libgnome-bluetooth11 libgnome-desktop-3-7 libgphoto2-port10 libgrip0
  libgssglue1 libgtop2-7 libgupnp-igd-1.0-4 libhdf5-7 libicu52 libilmbase6 libimobiledevice4 libisc95 libisccc90 libisccfg90 libkactivities-models1
  libkactivities6 libkatepartinterfaces4 libkcmutils4 libkde3support4 libkdeclarative5 libkdecorations4abi1 libkdesu5 libkdewebkit5 libkdnssd4
  libkemoticons4 libkf5activities5 libkf5archive5 libkf5attica5 libkf5auth-data libkf5auth5 libkf5calendarevents5 libkf5codecs-data libkf5codecs5
  libkf5completion-data libkf5completion5 libkf5config-bin libkf5config-data libkf5configcore5 libkf5configgui5 libkf5configwidgets-data
  libkf5configwidgets5 libkf5coreaddons-data libkf5coreaddons5 libkf5crash5 libkf5dbusaddons-bin libkf5dbusaddons-data libkf5dbusaddons5
  libkf5declarative-data libkf5declarative5 libkf5globalaccel-bin libkf5globalaccel-data libkf5globalaccel5 libkf5globalaccelprivate5 libkf5guiaddons5
  libkf5i18n-data libkf5i18n5 libkf5iconthemes-bin libkf5iconthemes-data libkf5iconthemes5 libkf5idletime5 libkf5itemviews-data libkf5itemviews5
  libkf5jobwidgets-data libkf5jobwidgets5 libkf5kiocore5 libkf5kiowidgets5 libkf5notifications-data libkf5notifications5 libkf5package-data libkf5package5
  libkf5plasma5 libkf5plasmaquick5 libkf5quickaddons5 libkf5service-bin libkf5service-data libkf5service5 libkf5sonnet5-data libkf5sonnetcore5
  libkf5sonnetui5 libkf5style5 libkf5textwidgets-data libkf5textwidgets5 libkf5waylandclient5 libkf5widgetsaddons-data libkf5widgetsaddons5
  libkf5windowsystem-data libkf5windowsystem5 libkf5xmlgui-bin libkf5xmlgui-data libkf5xmlgui5 libkfile4 libkhtml5 libkidletime4 libkio5 libkjsapi4
  libkjsembed4 libkmediaplayer4 libknewstuff3-4 libknotifyconfig4 libkntlm4 libkparts4 libkpty4 libkrosscore4 libktexteditor4 libkwineffects1abi4
  libkwinglesutils1 libkwinglutils1abi3 libkworkspace4abi2 libkxmlrpcclient4 libllvm3.8v4 liblouis2 liblwres90 libmagickcore5 libmagickwand5 libmbim-glib0
  libmeanwhile1 libminiupnpc8 libmission-control-plugins0 libmspub-0.0-0 libnepomukcleaner4 libnepomukcore4abi1 libnice10 libnl-route-3-200 libntrack-qt4-1
  libntrack0 libopenexr6 libopenjpeg2 libopenobex2 liborcus-0.6-0 libpam-ck-connector libpango1.0-0 libparted0debian1 libpci-dev libphonon4 libphonon4qt5-4
  libplasma3 libplist1 libpocketsphinx1 libpolkit-qt-1-1 libpolkit-qt5-1-1 libpoppler-qt4-4 libpoppler44 libprotobuf8 libpurple-bin libqapt3
  libqapt3-runtime libqca2 libqca2-plugins libqjson0 libqmi-glib0 libqmobipocket1 libqpdf13 libqt4-qt3support libqt5qml-graphicaleffects libqt5quickwidgets5
  libqt5script5 libqt5sensors5 libqt5webkit5-qmlwebkitplugin libqt5x11extras5 libraw9 librhythmbox-core8 librtmp0 libsctp1 libsolid4 libsoprano4
  libsphinxbase1 libstreamanalyzer0v5 libstreams0v5 libswscale2 libsystemd-daemon0 libsystemd-login0 libt1-5 libtelepathy-logger3 libthreadweaver4
  libthumbnailer0 libtorque2 libudev-dev libumfpack5.6.2 libunityvoice1 libupower-glib1 libusbmuxd2 libvirtodbc0 libvisio-0.0-0 libvoikko1 libvpx1
  libwnck-common libwnck22 libwpd-0.9-9 libwpg-0.2-2 libwps-0.2-2 libx264-142 libxcb-composite0 libxcb-damage0 libxcb-util0 libxcb-xtest0 libxml2-dev
  libxtables10 libzephyr4 libzip2 libzip4 linux-headers-4.4.0-111 linux-headers-4.4.0-111-generic linux-headers-generic-lts-vivid
  linux-headers-generic-lts-xenial linux-image-4.4.0-111-generic linux-image-extra-4.4.0-111-generic linux-image-generic-lts-vivid
  linux-image-generic-lts-xenial lksctp-tools m17n-contrib nepomuk-core-data ntrack-module-libnl-0 obex-data-server odbcinst odbcinst1debian2
  oxygen-icon-theme oxygen5-icon-theme phonon phonon-backend-gstreamer phonon-backend-gstreamer-common phonon-backend-gstreamer1.0 pidgin-data
  plasma-framework plasma-scriptengine-javascript python-colorama python-commandnotfound python-dbus-dev python-distlib python-gconf python-gdbm
  python-gnomekeyring python-ibus python-libxml2 python-notify python-pexpect python-ptyprocess python-renderpm python-reportlab python-reportlab-accel
  python-requests python-smbc python-support python3-checkbox-ng python3-colorama python3-distlib qapt-batch qml-module-org-kde-activities
  qml-module-org-kde-kquickcontrols qml-module-org-kde-kquickcontrolsaddons qml-module-qtquick-controls qml-module-qtquick-dialogs
  qml-module-qtquick-localstorage qml-module-qtquick-privatewidgets qml-module-ubuntu-ui-extras-browser qtdeclarative5-dialogs-plugin
  qtdeclarative5-localstorage-plugin qtdeclarative5-privatewidgets-plugin qtdeclarative5-qtfeedback-plugin qtdeclarative5-ubuntu-ui-extras-browser-plugin
  qtdeclarative5-ubuntu-ui-extras-browser-plugin-assets qtdeclarative5-window-plugin shared-desktop-ontologies signon-keyring-extension sonnet-plugins
  soprano-daemon sphinx-voxforge-hmm-en sphinx-voxforge-lm-en telepathy-gabble telepathy-indicator telepathy-logger telepathy-mission-control-5
  telepathy-salut ttf-dejavu-core ubuntu-extras-keyring unity-lens-friends unity-scope-audacious unity-scope-clementine unity-scope-gmusicbrowser
  unity-scope-gourmet unity-scope-guayadeque unity-scope-musique unity-voice-service virtuoso-minimal virtuoso-opensource-6.1-bin
  virtuoso-opensource-6.1-common watershed xfonts-mathml xserver-xorg-input-evdev-lts-xenial xserver-xorg-input-synaptics-lts-xenial
  xserver-xorg-input-vmmouse-lts-xenial xserver-xorg-input-wacom-lts-xenial xserver-xorg-video-all-lts-xenial xserver-xorg-video-amdgpu-lts-xenial
  xserver-xorg-video-ati-lts-xenial xserver-xorg-video-cirrus-lts-xenial xserver-xorg-video-fbdev-lts-xenial xserver-xorg-video-intel-lts-xenial
  xserver-xorg-video-mach64-lts-xenial xserver-xorg-video-mga-lts-xenial xserver-xorg-video-neomagic-lts-xenial xserver-xorg-video-nouveau-lts-xenial
  xserver-xorg-video-openchrome-lts-xenial xserver-xorg-video-qxl-lts-xenial xserver-xorg-video-r128-lts-xenial xserver-xorg-video-radeon-lts-xenial
  xserver-xorg-video-savage-lts-xenial xserver-xorg-video-siliconmotion-lts-xenial xserver-xorg-video-sisusb-lts-xenial xserver-xorg-video-tdfx-lts-xenial
  xserver-xorg-video-trident-lts-xenial xserver-xorg-video-vesa-lts-xenial xserver-xorg-video-vmware-lts-xenial
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
  libparse-debianchangelog-perl libpurple-bin
The following packages will be upgraded:
  cuda-command-line-tools-8-0 cuda-core-8-0 cuda-cublas-8-0 cuda-cublas-dev-8-0 cuda-cudart-8-0 cuda-cudart-dev-8-0 cuda-cufft-8-0 cuda-cufft-dev-8-0
  cuda-curand-8-0 cuda-curand-dev-8-0 cuda-cusolver-8-0 cuda-cusolver-dev-8-0 cuda-cusparse-8-0 cuda-cusparse-dev-8-0 cuda-documentation-8-0
  cuda-driver-dev-8-0 cuda-license-8-0 cuda-misc-headers-8-0 cuda-npp-8-0 cuda-npp-dev-8-0 cuda-nvgraph-8-0 cuda-nvgraph-dev-8-0 cuda-nvml-dev-8-0
  cuda-nvrtc-8-0 cuda-nvrtc-dev-8-0 cuda-repo-ubuntu1604 cuda-samples-8-0 cuda-toolkit-8-0 cuda-visual-tools-8-0 gcc-4.9-base gcc-6-base libcuda1-384
  libgfortran3 libxnvctrl0 nvidia-384 nvidia-modprobe nvidia-opencl-icd-384 nvidia-settings
38 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Need to get 1,428 MB of archives.
After this operation, 72.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  cuda-license-8-0 8.0.61-1 [27.6 kB]
Get:2 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  cuda-misc-headers-8-0 8.0.61-1 [1,077 kB]
Get:3 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  cuda-core-8-0 8.0.61-1 [20.0 MB]
Get:4 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 gcc-4.9-base amd64 4.9.4-2ubuntu1~16.04 [15.4 kB]
Get:5 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  cuda-cudart-8-0 8.0.61-1 [135 kB]
Get:6 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  cuda-driver-dev-8-0 8.0.61-1 [14.1 kB]
Get:7 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  cuda-cudart-dev-8-0 8.0.61-1 [1,071 kB]
Get:8 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  cuda-command-line-tools-8-0 8.0.61-1 [26.1 MB]
Get:9 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 libgfortran3 amd64 6.3.0-18ubuntu2~16.04 [270 kB]
Get:10 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  cuda-cublas-8-0 8.0.61.2-1 [58.1 MB]
Get:11 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 gcc-6-base amd64 6.3.0-18ubuntu2~16.04 [17.2 kB]
Get:12 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  cuda-cublas-dev-8-0 8.0.61.2-1 [66.6 MB]
Get:13 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  cuda-cufft-8-0 8.0.61-1 [117 MB]
Get:14 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  cuda-cufft-dev-8-0 8.0.61-1 [94.8 MB]
Get:15 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  cuda-curand-8-0 8.0.61-1 [43.7 MB]
Get:16 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  cuda-curand-dev-8-0 8.0.61-1 [67.7 MB]
Get:17 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  cuda-cusolver-8-0 8.0.61-1 [29.3 MB]
Get:18 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  cuda-cusolver-dev-8-0 8.0.61-1 [6,816 kB]
Get:19 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  cuda-cusparse-8-0 8.0.61-1 [28.8 MB]
Get:20 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  cuda-cusparse-dev-8-0 8.0.61-1 [29.6 MB]
Get:21 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  cuda-nvrtc-8-0 8.0.61-1 [9,585 kB]
Get:22 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  cuda-nvrtc-dev-8-0 8.0.61-1 [10.8 kB]
Get:23 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  cuda-npp-8-0 8.0.61-1 [157 MB]
Get:24 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  cuda-npp-dev-8-0 8.0.61-1 [82.3 MB]
Get:25 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  cuda-samples-8-0 8.0.61-1 [101 MB]
Get:26 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  cuda-documentation-8-0 8.0.61-1 [113 MB]
Get:27 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  cuda-nvgraph-8-0 8.0.61-1 [2,948 kB]
Get:28 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  cuda-nvgraph-dev-8-0 8.0.61-1 [3,028 kB]
Get:29 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  cuda-nvml-dev-8-0 8.0.61-1 [48.4 kB]
Get:30 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  cuda-repo-ubuntu1604 9.1.85-1 [2,820 B]
Get:31 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  cuda-visual-tools-8-0 8.0.61-1 [286 MB]
Get:32 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  cuda-toolkit-8-0 8.0.61-1 [2,892 B]
Get:33 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  nvidia-384 384.111-0ubuntu1 [73.2 MB]
Get:34 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  libcuda1-384 384.111-0ubuntu1 [3,702 kB]
Get:35 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  libxnvctrl0 390.12-0ubuntu1 [19.0 kB]
Get:36 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  nvidia-opencl-icd-384 384.111-0ubuntu1 [3,373 kB]
Get:37 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  nvidia-settings 390.12-0ubuntu1 [950 kB]
Get:38 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  nvidia-modprobe 390.12-0ubuntu1 [17.6 kB]
Fetched 1,428 MB in 23s (59.9 MB/s)
Extracting templates from packages: 100%
(Reading database ... 621208 files and directories currently installed.)
Preparing to unpack .../gcc-4.9-base_4.9.4-2ubuntu1~16.04_amd64.deb ...
Unpacking gcc-4.9-base:amd64 (4.9.4-2ubuntu1~16.04) over (4.9.4-2ubuntu1~14.04.1) ...
Preparing to unpack .../libgfortran3_6.3.0-18ubuntu2~16.04_amd64.deb ...
Unpacking libgfortran3:amd64 (6.3.0-18ubuntu2~16.04) over (6.3.0-18ubuntu2~14.04) ...
Preparing to unpack .../gcc-6-base_6.3.0-18ubuntu2~16.04_amd64.deb ...
Unpacking gcc-6-base:amd64 (6.3.0-18ubuntu2~16.04) over (6.3.0-18ubuntu2~14.04) ...
Preparing to unpack .../cuda-license-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-license-8-0 (8.0.61-1) over (8.0.44-1) ...
Preparing to unpack .../cuda-misc-headers-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-misc-headers-8-0 (8.0.61-1) over (8.0.44-1) ...
Preparing to unpack .../cuda-core-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-core-8-0 (8.0.61-1) over (8.0.44-1) ...
Preparing to unpack .../cuda-cudart-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-cudart-8-0 (8.0.61-1) over (8.0.44-1) ...
Preparing to unpack .../cuda-driver-dev-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-driver-dev-8-0 (8.0.61-1) over (8.0.44-1) ...
Preparing to unpack .../cuda-cudart-dev-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-cudart-dev-8-0 (8.0.61-1) over (8.0.44-1) ...
Preparing to unpack .../cuda-command-line-tools-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-command-line-tools-8-0 (8.0.61-1) over (8.0.44-1) ...
Preparing to unpack .../cuda-cublas-8-0_8.0.61.2-1_amd64.deb ...
Unpacking cuda-cublas-8-0 (8.0.61.2-1) over (8.0.44-1) ...
Preparing to unpack .../cuda-cublas-dev-8-0_8.0.61.2-1_amd64.deb ...
Unpacking cuda-cublas-dev-8-0 (8.0.61.2-1) over (8.0.44-1) ...
Preparing to unpack .../cuda-cufft-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-cufft-8-0 (8.0.61-1) over (8.0.44-1) ...
Preparing to unpack .../cuda-cufft-dev-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-cufft-dev-8-0 (8.0.61-1) over (8.0.44-1) ...
Preparing to unpack .../cuda-curand-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-curand-8-0 (8.0.61-1) over (8.0.44-1) ...
Preparing to unpack .../cuda-curand-dev-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-curand-dev-8-0 (8.0.61-1) over (8.0.44-1) ...
Preparing to unpack .../cuda-cusolver-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-cusolver-8-0 (8.0.61-1) over (8.0.44-1) ...
Preparing to unpack .../cuda-cusolver-dev-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-cusolver-dev-8-0 (8.0.61-1) over (8.0.44-1) ...
Preparing to unpack .../cuda-cusparse-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-cusparse-8-0 (8.0.61-1) over (8.0.44-1) ...
Preparing to unpack .../cuda-cusparse-dev-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-cusparse-dev-8-0 (8.0.61-1) over (8.0.44-1) ...
Preparing to unpack .../cuda-nvrtc-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-nvrtc-8-0 (8.0.61-1) over (8.0.44-1) ...
Preparing to unpack .../cuda-nvrtc-dev-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-nvrtc-dev-8-0 (8.0.61-1) over (8.0.44-1) ...
Preparing to unpack .../cuda-npp-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-npp-8-0 (8.0.61-1) over (8.0.44-1) ...
Preparing to unpack .../cuda-npp-dev-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-npp-dev-8-0 (8.0.61-1) over (8.0.44-1) ...
Preparing to unpack .../cuda-samples-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-samples-8-0 (8.0.61-1) over (8.0.44-1) ...
Preparing to unpack .../cuda-documentation-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-documentation-8-0 (8.0.61-1) over (8.0.44-1) ...
Preparing to unpack .../cuda-nvgraph-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-nvgraph-8-0 (8.0.61-1) over (8.0.44-1) ...
Preparing to unpack .../cuda-nvgraph-dev-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-nvgraph-dev-8-0 (8.0.61-1) over (8.0.44-1) ...
Preparing to unpack .../cuda-nvml-dev-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-nvml-dev-8-0 (8.0.61-1) over (8.0.44-1) ...
Preparing to unpack .../cuda-repo-ubuntu1604_9.1.85-1_amd64.deb ...
Unpacking cuda-repo-ubuntu1604 (9.1.85-1) over (9.0.176-1) ...
Preparing to unpack .../cuda-visual-tools-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-visual-tools-8-0 (8.0.61-1) over (8.0.44-1) ...
Preparing to unpack .../cuda-toolkit-8-0_8.0.61-1_amd64.deb ...
Unpacking cuda-toolkit-8-0 (8.0.61-1) over (8.0.44-1) ...
Preparing to unpack .../nvidia-384_384.111-0ubuntu1_amd64.deb ...
Removing all DKMS Modules
Done.
Unpacking nvidia-384 (384.111-0ubuntu1) over (384.111-0ubuntu0.16.04.1) ...
Preparing to unpack .../libcuda1-384_384.111-0ubuntu1_amd64.deb ...
Unpacking libcuda1-384 (384.111-0ubuntu1) over (384.111-0ubuntu0.16.04.1) ...
Preparing to unpack .../libxnvctrl0_390.12-0ubuntu1_amd64.deb ...
Unpacking libxnvctrl0 (390.12-0ubuntu1) over (390.12-0ubuntu0~gpu14.04.1) ...
Preparing to unpack .../nvidia-opencl-icd-384_384.111-0ubuntu1_amd64.deb ...
Unpacking nvidia-opencl-icd-384 (384.111-0ubuntu1) over (384.111-0ubuntu0.16.04.1) ...
Preparing to unpack .../nvidia-settings_390.12-0ubuntu1_amd64.deb ...
Unpacking nvidia-settings (390.12-0ubuntu1) over (390.12-0ubuntu0~gpu14.04.1) ...
Preparing to unpack .../nvidia-modprobe_390.12-0ubuntu1_amd64.deb ...
Unpacking nvidia-modprobe (390.12-0ubuntu1) over (367.48-0ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
/sbin/ldconfig.real: /usr/local/cuda-8.0/targets/x86_64-linux/lib/libcudnn.so.5 is not a symbolic link

Processing triggers for man-db (2.7.5-1) ...
Processing triggers for ureadahead (0.100.0-19) ...
ureadahead will be reprofiled on next reboot
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Setting up gcc-4.9-base:amd64 (4.9.4-2ubuntu1~16.04) ...
Setting up gcc-6-base:amd64 (6.3.0-18ubuntu2~16.04) ...
Setting up libgfortran3:amd64 (6.3.0-18ubuntu2~16.04) ...
Setting up cuda-license-8-0 (8.0.61-1) ...
*** LICENSE AGREEMENT ***
By using this software you agree to fully comply with the terms and
conditions of the EULA (End User License Agreement). The EULA is located
at /usr/local/cuda-8.0/doc/EULA.txt. The EULA can also be found at
http://docs.nvidia.com/cuda/eula/index.html. If you do not agree to the
terms and conditions of the EULA, do not use the software.

Setting up cuda-misc-headers-8-0 (8.0.61-1) ...
Setting up cuda-core-8-0 (8.0.61-1) ...
Setting up cuda-cudart-8-0 (8.0.61-1) ...
Setting up cuda-driver-dev-8-0 (8.0.61-1) ...
Setting up cuda-cudart-dev-8-0 (8.0.61-1) ...
Setting up cuda-command-line-tools-8-0 (8.0.61-1) ...
Setting up cuda-cublas-8-0 (8.0.61.2-1) ...
Setting up cuda-cublas-dev-8-0 (8.0.61.2-1) ...
Setting up cuda-cufft-8-0 (8.0.61-1) ...
Setting up cuda-cufft-dev-8-0 (8.0.61-1) ...
Setting up cuda-curand-8-0 (8.0.61-1) ...
Setting up cuda-curand-dev-8-0 (8.0.61-1) ...
Setting up cuda-cusolver-8-0 (8.0.61-1) ...
Setting up cuda-cusolver-dev-8-0 (8.0.61-1) ...
Setting up cuda-cusparse-8-0 (8.0.61-1) ...
Setting up cuda-cusparse-dev-8-0 (8.0.61-1) ...
Setting up cuda-nvrtc-8-0 (8.0.61-1) ...
Setting up cuda-nvrtc-dev-8-0 (8.0.61-1) ...
Setting up cuda-npp-8-0 (8.0.61-1) ...
Setting up cuda-npp-dev-8-0 (8.0.61-1) ...
Setting up cuda-samples-8-0 (8.0.61-1) ...
Setting up cuda-documentation-8-0 (8.0.61-1) ...
Setting up cuda-nvgraph-8-0 (8.0.61-1) ...
Setting up cuda-nvgraph-dev-8-0 (8.0.61-1) ...
Setting up cuda-nvml-dev-8-0 (8.0.61-1) ...
Setting up cuda-repo-ubuntu1604 (9.1.85-1) ...
Setting up cuda-visual-tools-8-0 (8.0.61-1) ...
Setting up cuda-toolkit-8-0 (8.0.61-1) ...
Setting up nvidia-384 (384.111-0ubuntu1) ...
update-alternatives: updating alternative /usr/lib/nvidia-384/ld.so.conf because link group x86_64-linux-gnu_gl_conf has changed slave links
update-alternatives: warning: skip creation of /usr/share/grub-gfxpayload-lists/blacklist/10_proprietary-graphics-drivers because associated file /usr/share/nvidia-384/nvidia-384.grub-gfxpayload (of link group x86_64-linux-gnu_gl_conf) doesn't exist
/sbin/ldconfig.real: /usr/local/cuda-8.0/targets/x86_64-linux/lib/libcudnn.so.5 is not a symbolic link

update-initramfs: deferring update (trigger activated)

A modprobe blacklist file has been created at /etc/modprobe.d to prevent Nouveau from loading. This can be reverted by deleting /etc/modprobe.d/nvidia-graphics-drivers.conf.
A new initrd image has also been created. To revert, please replace /boot/initrd-4.4.0-112-generic with /boot/initrd-$(uname -r)-backup.

*****************************************************************************
*** Reboot your computer and verify that the NVIDIA graphics driver can   ***
*** be loaded.                                                            ***
*****************************************************************************

INFO:Enable nvidia-384
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
Loading new nvidia-384-384.111 DKMS files...
Building only for 4.4.0-112-generic
Building for architecture x86_64
Building initial module for 4.4.0-112-generic
Done.

nvidia_384:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.4.0-112-generic/updates/dkms/

nvidia_384_modeset.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.4.0-112-generic/updates/dkms/

nvidia_384_drm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.4.0-112-generic/updates/dkms/

nvidia_384_uvm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.4.0-112-generic/updates/dkms/

depmod....

DKMS: install completed.
Setting up libcuda1-384 (384.111-0ubuntu1) ...
Setting up libxnvctrl0 (390.12-0ubuntu1) ...
Setting up nvidia-opencl-icd-384 (384.111-0ubuntu1) ...
Setting up nvidia-settings (390.12-0ubuntu1) ...
Setting up nvidia-modprobe (390.12-0ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
/sbin/ldconfig.real: /usr/local/cuda-8.0/targets/x86_64-linux/lib/libcudnn.so.5 is not a symbolic link

Processing triggers for initramfs-tools (0.122ubuntu8.10) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-112-generic

% sudo reboot

再起動したらデスクトップ画面が表示できるようになった.

参考

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment