but what if you wanted to construct a docker image and all you have is this log?

MatthewMatthew
10 min read

Table of contents

% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0>>> Downloading ollama...
100  8422    0  8422    0     0  35285      0 --:--:-- --:--:-- --:--:-- 35386
######################################################################## 100.0%
>>> Installing ollama to /usr/local/bin...
>>> Creating ollama user...
>>> Adding current user to ollama group...
>>> Creating ollama systemd service...
>>> NVIDIA GPU installed.
>>> The Ollama API is now available at 0.0.0.0:11434.
>>> Install complete. Run "ollama" from the command line.
Get:1 http://packages.cloud.google.com/apt gcsfuse-focal InRelease [1225 B]
Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease                         
Get:3 https://packages.cloud.google.com/apt cloud-sdk InRelease [6361 B]       
Get:4 https://packages.cloud.google.com/apt google-fast-socket InRelease [5015 B]
Get:5 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]        
Get:6 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64  InRelease [1581 B]
Get:7 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]      
Get:8 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [109 kB]
Get:9 https://packages.cloud.google.com/apt cloud-sdk/main amd64 Packages [582 kB]
Get:10 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64  Packages [664 kB]
Get:11 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [1650 kB]
Get:12 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1322 kB]
Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [50.5 kB]
Get:14 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1624 kB]
Get:15 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [28.1 kB]
Get:16 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [50.4 kB]
Get:17 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [1346 kB]
Get:18 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [1617 kB]
Get:19 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [1057 kB]
Get:20 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [44.6 kB]
Reading package lists... Done       
W: http://packages.cloud.google.com/apt/dists/gcsfuse-focal/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
E: Repository 'http://packages.cloud.google.com/apt gcsfuse-focal InRelease' changed its 'Origin' value from 'namespaces/gcs-fuse-prod/repositories/gcsfuse-focal' to 'gcsfuse-focal'
E: Repository 'http://packages.cloud.google.com/apt gcsfuse-focal InRelease' changed its 'Label' value from 'namespaces/gcs-fuse-prod/repositories/gcsfuse-focal' to 'gcsfuse-focal'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
W: https://packages.cloud.google.com/apt/dists/google-fast-socket/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  cuda-drivers-545 keyboard-configuration libegl-mesa0 libegl1 libgles2
  liblocale-gettext-perl libnvidia-cfg1-545 libnvidia-common-545
  libnvidia-compute-545 libnvidia-decode-545 libnvidia-encode-545
  libnvidia-extra-545 libnvidia-fbc1-545 libnvidia-gl-545 libopengl0
  libpam-systemd libsystemd0 libudev1 libxcvt0 libxnvctrl0
  nvidia-compute-utils-545 nvidia-dkms-545 nvidia-driver-545
  nvidia-kernel-common-545 nvidia-kernel-source-545 nvidia-modprobe
  nvidia-prime nvidia-settings nvidia-utils-545 python3-xkit
  screen-resolution-extra systemd systemd-hwe-hwdb systemd-sysv udev xcvt
  xserver-common xserver-xorg-core xserver-xorg-video-nvidia-545
Suggested packages:
  systemd-container libtss2-esys-3.0.2-0 libtss2-mu0 libtss2-rc0 xfonts-100dpi
  | xfonts-75dpi xfonts-scalable
Recommended packages:
  libnvidia-compute-545:i386 libnvidia-decode-545:i386
  libnvidia-encode-545:i386 libnvidia-fbc1-545:i386 libnvidia-gl-545:i386
  networkd-dispatcher systemd-timesyncd | time-daemon libnss-systemd
The following NEW packages will be installed:
  cuda-drivers cuda-drivers-545 keyboard-configuration libegl-mesa0 libegl1
  libgles2 liblocale-gettext-perl libnvidia-cfg1-545 libnvidia-common-545
  libnvidia-compute-545 libnvidia-decode-545 libnvidia-encode-545
  libnvidia-extra-545 libnvidia-fbc1-545 libnvidia-gl-545 libopengl0 libxcvt0
  libxnvctrl0 nvidia-compute-utils-545 nvidia-dkms-545 nvidia-driver-545
  nvidia-kernel-common-545 nvidia-kernel-source-545 nvidia-modprobe
  nvidia-prime nvidia-settings nvidia-utils-545 python3-xkit
  screen-resolution-extra systemd-hwe-hwdb udev xcvt xserver-xorg-core
  xserver-xorg-video-nvidia-545
The following packages will be upgraded:
  libpam-systemd libsystemd0 libudev1 systemd systemd-sysv xserver-common
6 upgraded, 34 newly installed, 0 to remove and 85 not upgraded.
Need to get 296 MB of archives.
After this operation, 780 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 systemd-sysv amd64 249.11-0ubuntu3.12 [10.5 kB]
Get:2 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64  libnvidia-common-545 545.23.08-0ubuntu1 [19.4 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpam-systemd amd64 249.11-0ubuntu3.12 [203 kB]
Get:4 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64  libnvidia-compute-545 545.23.08-0ubuntu1 [48.8 MB]
Get:5 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 systemd amd64 249.11-0ubuntu3.12 [4581 kB]
Get:6 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libsystemd0 amd64 249.11-0ubuntu3.12 [319 kB]
Get:7 http://archive.ubuntu.com/ubuntu jammy/main amd64 liblocale-gettext-perl amd64 1.07-4build3 [17.1 kB]
Get:8 http://archive.ubuntu.com/ubuntu jammy/main amd64 keyboard-configuration all 1.205ubuntu3 [206 kB]
Get:9 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libudev1 amd64 249.11-0ubuntu3.12 [78.2 kB]
Get:10 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 udev amd64 249.11-0ubuntu3.12 [1557 kB]
Get:11 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libegl-mesa0 amd64 23.0.4-0ubuntu1~22.04.1 [117 kB]
Get:12 http://archive.ubuntu.com/ubuntu jammy/main amd64 libegl1 amd64 1.4.0-1 [28.6 kB]
Get:13 http://archive.ubuntu.com/ubuntu jammy/main amd64 libopengl0 amd64 1.4.0-1 [36.5 kB]
Get:14 http://archive.ubuntu.com/ubuntu jammy/main amd64 libgles2 amd64 1.4.0-1 [18.0 kB]
Get:15 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 xserver-common all 2:21.1.4-2ubuntu1.7~22.04.7 [28.6 kB]
Get:16 http://archive.ubuntu.com/ubuntu jammy/main amd64 libxcvt0 amd64 0.1.1-3 [5494 B]
Get:17 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 xserver-xorg-core amd64 2:21.1.4-2ubuntu1.7~22.04.7 [1477 kB]
Get:18 http://archive.ubuntu.com/ubuntu jammy/main amd64 python3-xkit all 0.5.0ubuntu5 [18.5 kB]
Get:19 http://archive.ubuntu.com/ubuntu jammy/main amd64 screen-resolution-extra all 0.18.2 [4396 B]
Get:20 http://archive.ubuntu.com/ubuntu jammy/main amd64 nvidia-prime all 0.8.17.1 [9956 B]
Get:21 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 systemd-hwe-hwdb all 249.11.5 [3228 B]
Get:22 http://archive.ubuntu.com/ubuntu jammy/main amd64 xcvt amd64 0.1.1-3 [7140 B]
Get:23 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64  libnvidia-decode-545 545.23.08-0ubuntu1 [1712 kB]
Get:24 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64  libnvidia-encode-545 545.23.08-0ubuntu1 [93.2 kB]
Get:25 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64  libnvidia-fbc1-545 545.23.08-0ubuntu1 [53.0 kB]
Get:26 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64  libnvidia-gl-545 545.23.08-0ubuntu1 [150 MB]
Get:27 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64  nvidia-compute-utils-545 545.23.08-0ubuntu1 [194 kB]
Get:28 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64  nvidia-kernel-source-545 545.23.08-0ubuntu1 [43.4 MB]
Get:29 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64  nvidia-kernel-common-545 545.23.08-0ubuntu1 [39.6 MB]
Get:30 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64  nvidia-dkms-545 545.23.08-0ubuntu1 [33.4 kB]
Get:31 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64  libnvidia-extra-545 545.23.08-0ubuntu1 [260 kB]
Get:32 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64  nvidia-utils-545 545.23.08-0ubuntu1 [382 kB]
Get:33 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64  libnvidia-cfg1-545 545.23.08-0ubuntu1 [102 kB]
Get:34 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64  xserver-xorg-video-nvidia-545 545.23.08-0ubuntu1 [1523 kB]
Get:35 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64  nvidia-driver-545 545.23.08-0ubuntu1 [479 kB]
Get:36 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64  nvidia-modprobe 545.23.08-0ubuntu1 [21.3 kB]
Get:37 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64  libxnvctrl0 545.23.08-0ubuntu1 [21.3 kB]
Get:38 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64  nvidia-settings 545.23.08-0ubuntu1 [946 kB]
Get:39 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64  cuda-drivers-545 545.23.08-1 [2634 B]
Get:40 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64  cuda-drivers 545.23.08-1 [2502 B]
Fetched 296 MB in 4s (81.5 MB/s)         
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 114840 files and directories currently installed.)
Preparing to unpack .../systemd-sysv_249.11-0ubuntu3.12_amd64.deb ...
Unpacking systemd-sysv (249.11-0ubuntu3.12) over (249.11-0ubuntu3.9) ...
Preparing to unpack .../libpam-systemd_249.11-0ubuntu3.12_amd64.deb ...
Unpacking libpam-systemd:amd64 (249.11-0ubuntu3.12) over (249.11-0ubuntu3.9) ...
Preparing to unpack .../systemd_249.11-0ubuntu3.12_amd64.deb ...
Unpacking systemd (249.11-0ubuntu3.12) over (249.11-0ubuntu3.9) ...
Preparing to unpack .../libsystemd0_249.11-0ubuntu3.12_amd64.deb ...
Unpacking libsystemd0:amd64 (249.11-0ubuntu3.12) over (249.11-0ubuntu3.9) ...
Setting up libsystemd0:amd64 (249.11-0ubuntu3.12) ...
Selecting previously unselected package liblocale-gettext-perl.
(Reading database ... 114840 files and directories currently installed.)
Preparing to unpack .../liblocale-gettext-perl_1.07-4build3_amd64.deb ...
Unpacking liblocale-gettext-perl (1.07-4build3) ...
Selecting previously unselected package keyboard-configuration.
Preparing to unpack .../keyboard-configuration_1.205ubuntu3_all.deb ...
Unpacking keyboard-configuration (1.205ubuntu3) ...
Preparing to unpack .../libudev1_249.11-0ubuntu3.12_amd64.deb ...
Unpacking libudev1:amd64 (249.11-0ubuntu3.12) over (249.11-0ubuntu3.9) ...
Setting up libudev1:amd64 (249.11-0ubuntu3.12) ...
Selecting previously unselected package udev.
(Reading database ... 114874 files and directories currently installed.)
Preparing to unpack .../00-udev_249.11-0ubuntu3.12_amd64.deb ...
Unpacking udev (249.11-0ubuntu3.12) ...
Selecting previously unselected package libnvidia-common-545.
Preparing to unpack .../01-libnvidia-common-545_545.23.08-0ubuntu1_all.deb ...
Unpacking libnvidia-common-545 (545.23.08-0ubuntu1) ...
Selecting previously unselected package libnvidia-compute-545:amd64.
Preparing to unpack .../02-libnvidia-compute-545_545.23.08-0ubuntu1_amd64.deb ...
Unpacking libnvidia-compute-545:amd64 (545.23.08-0ubuntu1) ...
Selecting previously unselected package libnvidia-decode-545:amd64.
Preparing to unpack .../03-libnvidia-decode-545_545.23.08-0ubuntu1_amd64.deb ...
Unpacking libnvidia-decode-545:amd64 (545.23.08-0ubuntu1) ...
Selecting previously unselected package libnvidia-encode-545:amd64.
Preparing to unpack .../04-libnvidia-encode-545_545.23.08-0ubuntu1_amd64.deb ...
Unpacking libnvidia-encode-545:amd64 (545.23.08-0ubuntu1) ...
Selecting previously unselected package libnvidia-fbc1-545:amd64.
Preparing to unpack .../05-libnvidia-fbc1-545_545.23.08-0ubuntu1_amd64.deb ...
Unpacking libnvidia-fbc1-545:amd64 (545.23.08-0ubuntu1) ...
Selecting previously unselected package libegl-mesa0:amd64.
Preparing to unpack .../06-libegl-mesa0_23.0.4-0ubuntu1~22.04.1_amd64.deb ...
Unpacking libegl-mesa0:amd64 (23.0.4-0ubuntu1~22.04.1) ...
Selecting previously unselected package libegl1:amd64.
Preparing to unpack .../07-libegl1_1.4.0-1_amd64.deb ...
Unpacking libegl1:amd64 (1.4.0-1) ...
Selecting previously unselected package libopengl0:amd64.
Preparing to unpack .../08-libopengl0_1.4.0-1_amd64.deb ...
Unpacking libopengl0:amd64 (1.4.0-1) ...
Selecting previously unselected package libgles2:amd64.
Preparing to unpack .../09-libgles2_1.4.0-1_amd64.deb ...
Unpacking libgles2:amd64 (1.4.0-1) ...
Selecting previously unselected package libnvidia-gl-545:amd64.
Preparing to unpack .../10-libnvidia-gl-545_545.23.08-0ubuntu1_amd64.deb ...
dpkg-query: no packages found matching libnvidia-gl-450
Unpacking libnvidia-gl-545:amd64 (545.23.08-0ubuntu1) ...
Selecting previously unselected package nvidia-compute-utils-545.
Preparing to unpack .../11-nvidia-compute-utils-545_545.23.08-0ubuntu1_amd64.deb ...
Unpacking nvidia-compute-utils-545 (545.23.08-0ubuntu1) ...
Selecting previously unselected package nvidia-kernel-source-545.
Preparing to unpack .../12-nvidia-kernel-source-545_545.23.08-0ubuntu1_amd64.deb ...
Unpacking nvidia-kernel-source-545 (545.23.08-0ubuntu1) ...
Selecting previously unselected package nvidia-kernel-common-545.
Preparing to unpack .../13-nvidia-kernel-common-545_545.23.08-0ubuntu1_amd64.deb ...
Unpacking nvidia-kernel-common-545 (545.23.08-0ubuntu1) ...
Selecting previously unselected package nvidia-dkms-545.
Preparing to unpack .../14-nvidia-dkms-545_545.23.08-0ubuntu1_amd64.deb ...
Unpacking nvidia-dkms-545 (545.23.08-0ubuntu1) ...
Selecting previously unselected package libnvidia-extra-545:amd64.
Preparing to unpack .../15-libnvidia-extra-545_545.23.08-0ubuntu1_amd64.deb ...
Unpacking libnvidia-extra-545:amd64 (545.23.08-0ubuntu1) ...
Selecting previously unselected package nvidia-utils-545.
Preparing to unpack .../16-nvidia-utils-545_545.23.08-0ubuntu1_amd64.deb ...
Unpacking nvidia-utils-545 (545.23.08-0ubuntu1) ...
Selecting previously unselected package libnvidia-cfg1-545:amd64.
Preparing to unpack .../17-libnvidia-cfg1-545_545.23.08-0ubuntu1_amd64.deb ...
Unpacking libnvidia-cfg1-545:amd64 (545.23.08-0ubuntu1) ...
Preparing to unpack .../18-xserver-common_2%3a21.1.4-2ubuntu1.7~22.04.7_all.deb ...
Unpacking xserver-common (2:21.1.4-2ubuntu1.7~22.04.7) over (2:21.1.4-2ubuntu1.7~22.04.2) ...
Selecting previously unselected package libxcvt0:amd64.
Preparing to unpack .../19-libxcvt0_0.1.1-3_amd64.deb ...
Unpacking libxcvt0:amd64 (0.1.1-3) ...
Selecting previously unselected package xserver-xorg-core.
Preparing to unpack .../20-xserver-xorg-core_2%3a21.1.4-2ubuntu1.7~22.04.7_amd64.deb ...
Unpacking xserver-xorg-core (2:21.1.4-2ubuntu1.7~22.04.7) ...
Selecting previously unselected package xserver-xorg-video-nvidia-545.
Preparing to unpack .../21-xserver-xorg-video-nvidia-545_545.23.08-0ubuntu1_amd64.deb ...
Unpacking xserver-xorg-video-nvidia-545 (545.23.08-0ubuntu1) ...
Selecting previously unselected package nvidia-driver-545.
Preparing to unpack .../22-nvidia-driver-545_545.23.08-0ubuntu1_amd64.deb ...
Unpacking nvidia-driver-545 (545.23.08-0ubuntu1) ...
Selecting previously unselected package nvidia-modprobe.
Preparing to unpack .../23-nvidia-modprobe_545.23.08-0ubuntu1_amd64.deb ...
Unpacking nvidia-modprobe (545.23.08-0ubuntu1) ...
Selecting previously unselected package python3-xkit.
Preparing to unpack .../24-python3-xkit_0.5.0ubuntu5_all.deb ...
Unpacking python3-xkit (0.5.0ubuntu5) ...
Selecting previously unselected package screen-resolution-extra.
Preparing to unpack .../25-screen-resolution-extra_0.18.2_all.deb ...
Unpacking screen-resolution-extra (0.18.2) ...
Selecting previously unselected package libxnvctrl0:amd64.
Preparing to unpack .../26-libxnvctrl0_545.23.08-0ubuntu1_amd64.deb ...
Unpacking libxnvctrl0:amd64 (545.23.08-0ubuntu1) ...
Selecting previously unselected package nvidia-settings.
Preparing to unpack .../27-nvidia-settings_545.23.08-0ubuntu1_amd64.deb ...
Unpacking nvidia-settings (545.23.08-0ubuntu1) ...
Selecting previously unselected package cuda-drivers-545.
Preparing to unpack .../28-cuda-drivers-545_545.23.08-1_amd64.deb ...
Unpacking cuda-drivers-545 (545.23.08-1) ...
Selecting previously unselected package cuda-drivers.
Preparing to unpack .../29-cuda-drivers_545.23.08-1_amd64.deb ...
Unpacking cuda-drivers (545.23.08-1) ...
Selecting previously unselected package nvidia-prime.
Preparing to unpack .../30-nvidia-prime_0.8.17.1_all.deb ...
Unpacking nvidia-prime (0.8.17.1) ...
Selecting previously unselected package systemd-hwe-hwdb.
Preparing to unpack .../31-systemd-hwe-hwdb_249.11.5_all.deb ...
Unpacking systemd-hwe-hwdb (249.11.5) ...
Selecting previously unselected package xcvt.
Preparing to unpack .../32-xcvt_0.1.1-3_amd64.deb ...
Unpacking xcvt (0.1.1-3) ...
Setting up nvidia-prime (0.8.17.1) ...
Setting up libnvidia-compute-545:amd64 (545.23.08-0ubuntu1) ...
Setting up systemd (249.11-0ubuntu3.12) ...
/usr/lib/tmpfiles.d/static-nodes-permissions.conf:17: Failed to resolve group 'kvm'.
/usr/lib/tmpfiles.d/static-nodes-permissions.conf:18: Failed to resolve group 'kvm'.
/usr/lib/tmpfiles.d/static-nodes-permissions.conf:19: Failed to resolve group 'kvm'.
Setting up libnvidia-decode-545:amd64 (545.23.08-0ubuntu1) ...
Setting up libopengl0:amd64 (1.4.0-1) ...
Setting up nvidia-modprobe (545.23.08-0ubuntu1) ...
Setting up libnvidia-extra-545:amd64 (545.23.08-0ubuntu1) ...
Setting up libxnvctrl0:amd64 (545.23.08-0ubuntu1) ...
Setting up nvidia-kernel-source-545 (545.23.08-0ubuntu1) ...
Setting up nvidia-utils-545 (545.23.08-0ubuntu1) ...
Setting up libegl-mesa0:amd64 (23.0.4-0ubuntu1~22.04.1) ...
Setting up libgles2:amd64 (1.4.0-1) ...
Setting up libnvidia-common-545 (545.23.08-0ubuntu1) ...
Setting up libnvidia-fbc1-545:amd64 (545.23.08-0ubuntu1) ...
Setting up nvidia-compute-utils-545 (545.23.08-0ubuntu1) ...
Warning: The home dir /nonexistent you specified can't be accessed: No such file or directory
Adding system user `nvidia-persistenced' (UID 104) ...
Adding new group `nvidia-persistenced' (GID 107) ...
Adding new user `nvidia-persistenced' (UID 104) with group `nvidia-persistenced' ...
Not creating home directory `/nonexistent'.
Created symlink /etc/systemd/system/multi-user.target.wants/nvidia-persistenced.service -> /lib/systemd/system/nvidia-persistenced.service.
Setting up udev (249.11-0ubuntu3.12) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Setting up systemd-hwe-hwdb (249.11.5) ...
Setting up libnvidia-cfg1-545:amd64 (545.23.08-0ubuntu1) ...
Setting up libegl1:amd64 (1.4.0-1) ...
Setting up libxcvt0:amd64 (0.1.1-3) ...
Setting up libnvidia-encode-545:amd64 (545.23.08-0ubuntu1) ...
Setting up xserver-common (2:21.1.4-2ubuntu1.7~22.04.7) ...
Setting up python3-xkit (0.5.0ubuntu5) ...
Setting up nvidia-kernel-common-545 (545.23.08-0ubuntu1) ...
Setting up liblocale-gettext-perl (1.07-4build3) ...
Setting up systemd-sysv (249.11-0ubuntu3.12) ...
Setting up nvidia-dkms-545 (545.23.08-0ubuntu1) ...

A modprobe blacklist file has been created at /etc/modprobe.d to prevent Nouveau
from loading. This can be reverted by deleting the following file:
/etc/modprobe.d/nvidia-graphics-drivers.conf

A new initrd image has also been created. To revert, please regenerate your
initrd by running the following command after deleting the modprobe.d file:
`/usr/sbin/initramfs -u`

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

Loading new nvidia-545.23.08 DKMS files...
It is likely that 5.15.133+ belongs to a chroot's host
Building for 
Building for architecture x86_64
Setting up xcvt (0.1.1-3) ...
Setting up libnvidia-gl-545:amd64 (545.23.08-0ubuntu1) ...
Setting up screen-resolution-extra (0.18.2) ...
Setting up libpam-systemd:amd64 (249.11-0ubuntu3.12) ...
Setting up nvidia-settings (545.23.08-0ubuntu1) ...
Setting up keyboard-configuration (1.205ubuntu3) ...
Your console font configuration will be updated the next time your system
boots. If you want to update it now, run 'setupcon' from a virtual console.
Setting up xserver-xorg-core (2:21.1.4-2ubuntu1.7~22.04.7) ...
Setting up xserver-xorg-video-nvidia-545 (545.23.08-0ubuntu1) ...
Setting up nvidia-driver-545 (545.23.08-0ubuntu1) ...
Setting up cuda-drivers-545 (545.23.08-1) ...
Setting up cuda-drivers (545.23.08-1) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for dbus (1.12.20-2ubuntu4.1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Collecting pyngrok
  Obtaining dependency information for pyngrok from https://files.pythonhosted.org/packages/77/d7/36e6b44465e994e7dc4a434f69f0db66f861e5c303ef36dbbc4f49224ebe/pyngrok-7.0.5-py3-none-any.whl.metadata
  Downloading pyngrok-7.0.5-py3-none-any.whl.metadata (6.2 kB)
Requirement already satisfied: PyYAML in /opt/conda/lib/python3.10/site-packages (from pyngrok) (6.0.1)
Downloading pyngrok-7.0.5-py3-none-any.whl (21 kB)
Installing collected packages: pyngrok
Successfully installed pyngrok-7.0.5
>>> starting ollama serve                                                                           
>>> starting ngrok http --log stderr 11434
Couldn't find '/root/.ollama/id_ed25519'. Generating new private key.
Your new public key is:

ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIxXMaz3km0VGr5p0vhr7uyi+D+gtcipPnAAjIIu+9Up

2024/01/24 07:08:22 images.go:737: total blobs: 0
2024/01/24 07:08:22 images.go:744: total unused blobs removed: 0
2024/01/24 07:08:22 routes.go:895: Listening on 127.0.0.1:11434 (version 0.1.17)
t=2024-01-24T07:08:23+0000 lvl=info msg="no configuration paths supplied"
t=2024-01-24T07:08:23+0000 lvl=info msg="using configuration at default config path" path=/root/.config/ngrok/ngrok.yml
t=2024-01-24T07:08:23+0000 lvl=info msg="open config file" path=/root/.config/ngrok/ngrok.yml err=nil
t=2024-01-24T07:08:23+0000 lvl=info msg="starting web service" obj=web addr=127.0.0.1:4040 allow_hosts=[]
t=2024-01-24T07:08:23+0000 lvl=info msg="client session established" obj=tunnels.session obj=csess id=80db7edd3419
t=2024-01-24T07:08:23+0000 lvl=info msg="tunnel session started" obj=tunnels.session
t=2024-01-24T07:08:23+0000 lvl=info msg="started tunnel" obj=tunnels name=command_line addr=http://localhost:11434 url=https://52a0-34-29-128-22.ngrok-free.app
---------------------------------------------------------------------------
CancelledError                            Traceback (most recent call last)
Cell In[5], line 29, in run_process.<locals>.pipe(lines)
     28 async def pipe(lines):
---> 29   async for line in lines:
     30     print(line.strip().decode('utf-8'))

File /opt/conda/lib/python3.10/asyncio/streams.py:723, in StreamReader.__anext__(self)
    722 async def __anext__(self):
--> 723     val = await self.readline()
    724     if val == b'':

File /opt/conda/lib/python3.10/asyncio/streams.py:524, in StreamReader.readline(self)
    523 try:
--> 524     line = await self.readuntil(sep)
    525 except exceptions.IncompleteReadError as e:

File /opt/conda/lib/python3.10/asyncio/streams.py:616, in StreamReader.readuntil(self, separator)
    615     # _wait_for_data() will resume reading if stream was paused.
--> 616     await self._wait_for_data('readuntil')
    618 if isep > self._limit:

File /opt/conda/lib/python3.10/asyncio/streams.py:501, in StreamReader._wait_for_data(self, func_name)
    500 try:
--> 501     await self._waiter
    502 finally:

CancelledError: 

During handling of the above exception, another exception occurred:

CancelledError                            Traceback (most recent call last)
CancelledError: 

During handling of the above exception, another exception occurred:

CancelledError                            Traceback (most recent call last)
Cell In[5], line 37
     30       print(line.strip().decode('utf-8'))
     32   await asyncio.gather(
     33       pipe(p.stdout),
     34       pipe(p.stderr),
     35   )
---> 37 await asyncio.gather(
     38     run_process(['ollama', 'serve']),
     39     run_process(['ngrok', 'http', '--log', 'stderr', '11434']),
     40 )

CancelledError:
0
Subscribe to my newsletter

Read articles from Matthew directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Matthew
Matthew