使用Docker安装clang

今天在Docker上成功安装了Clang。(解决)Docker(141)

 

大约过了一年半。今天,我决定在docker中安装新的Clang。
更新和升级以前的版本也是可以的。

$ docker run -it gcc /bin/bash

LLVM Debian/Ubuntu 每夜构建的软件包
https://apt.llvm.org/

wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh

下载https://apt.llvm.org/llvm.sh
赋予可执行权限给llvm.sh
使用管理员权限运行llvm.sh

第四次

Docker 启动脚本

#!/bin/sh
docker run -v /Users/ogawakiyoshi/n4910:/home/n4910 -it gcc /bin/bash

启动后输入命令

# cd /home/n4910

将clang++引入脚本中

#!/bin/sh
apt update; apt -y upgrade
apt install -y sudo vim lsb-release astyle software-properties-common
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh clgc.sh
./llvm.sh 14
sudo ln -s -f /usr/bin/clang-14 /usr/bin/clang
sudo ln -s -f /usr/bin/clang++-14 /usr/bin/clang++
clang++ --version

第三次

# apt update; apt -y upgrade
# apt install -y sudo vim lsb-release   software-properties-common
# wget https://apt.llvm.org/llvm.sh
# chmod +x llvm.sh
# ./llvm.sh 14
#  sudo ln -s -f /usr/bin/clang-14 /usr/bin/clang
# sudo ln -s -f /usr/bin/clang++-14 /usr/bin/clang++
# clang++ --version
Debian clang version 14.0.5-++20220610033153+c12386ae247c-1~exp1~20220610153237.151
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

第一次

# apt update; apt -y upgrade
# apt install sudo vim
# wget https://apt.llvm.org/llvm.sh
--2022-06-14 08:28:16--  https://apt.llvm.org/llvm.sh
Resolving apt.llvm.org (apt.llvm.org)... 151.101.54.49, 2a04:4e42:6::561
Connecting to apt.llvm.org (apt.llvm.org)|151.101.54.49|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4978 (4.9K) [application/octet-stream]
Saving to: 'llvm.sh'

llvm.sh                                        100%[===================================================================================================>]   4.86K  --.-KB/s    in 0.009s  

2022-06-14 08:28:16 (527 KB/s) - 'llvm.sh' saved [4978/4978]


# chmod +x llvm.sh
# sudo ./llvm.sh 14
+ CURRENT_LLVM_STABLE=14
+ needed_binaries=(lsb_release wget add-apt-repository)
+ missing_binaries=()
+ for binary in "${needed_binaries[@]}"
+ which lsb_release
+ missing_binaries+=($binary)
+ for binary in "${needed_binaries[@]}"
+ which wget
+ for binary in "${needed_binaries[@]}"
+ which add-apt-repository
+ missing_binaries+=($binary)
+ [[ 2 -gt 0 ]]
+ echo 'You are missing some tools this script requires: lsb_release' add-apt-repository
You are missing some tools this script requires: lsb_release add-apt-repository
+ echo '(hint: apt install lsb-release wget software-properties-common)'
(hint: apt install lsb-release wget software-properties-common)
+ exit 4
#  apt install lsb-release wget software-properties-common
# sudo ln -s -f /usr/bin/clang-14 /usr/bin/clang
#  sudo ln -s -f /usr/bin/clang++-14 /usr/bin/clang++
# clang++ --version
Debian clang version 14.0.5-++20220610033153+c12386ae247c-1~exp1~20220610153237.151
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

不适应新环境的脚本

# wget https://gist.githubusercontent.com/junkdog/70231d6953592cd6f27def59fe19e50d/raw/92f0e73d2558402b7316021c1ab408b30e534de6/update-alternatives-clang.sh
# chmod +x update-alternatives-clang.sh
# sudo ./update-alternatives-clang.sh 10 50
update-alternatives: error: alternative path /usr/bin/llvm-config-10 doesn't exist
update-alternatives: error: alternative path /usr/bin/clang-10 doesn't exist
# sudo ./update-alternatives-clang.sh 14 50
update-alternatives: using /usr/bin/llvm-config-14 to provide /usr/bin/llvm-config (llvm-config) in auto mode
update-alternatives: warning: skip creation of /usr/bin/llvm-mcmarkup because associated file /usr/bin/llvm-mcmarkup-14 (of link group llvm-config) doesn't exist
update-alternatives: using /usr/bin/clang-14 to provide /usr/bin/clang (clang) in auto mode
update-alternatives: warning: skip creation of /usr/bin/c-index-test because associated file /usr/bin/c-index-test-14 (of link group clang) doesn't exist
update-alternatives: warning: skip creation of /usr/bin/clang-check because associated file /usr/bin/clang-check-14 (of link group clang) doesn't exist
update-alternatives: warning: skip creation of /usr/bin/clang-cl because associated file /usr/bin/clang-cl-14 (of link group clang) doesn't exist
update-alternatives: warning: skip creation of /usr/bin/clang-format because associated file /usr/bin/clang-format-14 (of link group clang) doesn't exist
update-alternatives: warning: skip creation of /usr/bin/clang-format-diff because associated file /usr/bin/clang-format-diff-14 (of link group clang) doesn't exist
update-alternatives: warning: skip creation of /usr/bin/clang-import-test because associated file /usr/bin/clang-import-test-14 (of link group clang) doesn't exist
update-alternatives: warning: skip creation of /usr/bin/clang-include-fixer because associated file /usr/bin/clang-include-fixer-14 (of link group clang) doesn't exist
update-alternatives: warning: skip creation of /usr/bin/clang-offload-bundler because associated file /usr/bin/clang-offload-bundler-14 (of link group clang) doesn't exist
update-alternatives: warning: skip creation of /usr/bin/clang-query because associated file /usr/bin/clang-query-14 (of link group clang) doesn't exist
update-alternatives: warning: skip creation of /usr/bin/clang-rename because associated file /usr/bin/clang-rename-14 (of link group clang) doesn't exist
update-alternatives: warning: skip creation of /usr/bin/clang-reorder-fields because associated file /usr/bin/clang-reorder-fields-14 (of link group clang) doesn't exist
update-alternatives: warning: skip creation of /usr/bin/clang-tidy because associated file /usr/bin/clang-tidy-14 (of link group clang) doesn't exist
root@4bbe4aab0054:/# 

另一天的处理

$ docker run -v /Users/ogawakiyoshi/n4910:/home/n4910 -it gcc /bin/bash
Unable to find image 'gcc:latest' locally
latest: Pulling from library/gcc
e756f3fdd6a3: Pull complete 
bf168a674899: Pull complete 
e604223835cc: Pull complete 
6d5c91c4cd86: Pull complete 
2cc8d8854262: Pull complete 
dd18cc6e7c3a: Pull complete 
30ad987d4493: Pull complete 
dca5535f8bc2: Pull complete 
76c006c376bd: Pull complete 
Digest: sha256:edf8919c3642ea86da60e6cd7e86c0aa84389c6ab78a63fcfa216dccdd723822
Status: Downloaded newer image for gcc:latest

引入LLVM

root@91de3a426946:/# ls
bin   dev  home  lib64	mnt  proc  run	 srv  tmp  var
boot  etc  lib	 media	opt  root  sbin  sys  usr
root@91de3a426946:/# wget https://apt.llvm.org/llvm.sh
--2022-06-20 13:11:51--  https://apt.llvm.org/llvm.sh
Resolving apt.llvm.org (apt.llvm.org)... 151.101.54.49, 2a04:4e42:6::561
Connecting to apt.llvm.org (apt.llvm.org)|151.101.54.49|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4978 (4.9K) [application/octet-stream]
Saving to: 'llvm.sh'

llvm.sh               100%[========================>]   4.86K  --.-KB/s    in 0.001s  

2022-06-20 13:11:52 (8.97 MB/s) - 'llvm.sh' saved [4978/4978]

root@91de3a426946:/# chmod +x llvm.sh
root@91de3a426946:/# apt update; apt -y upgrade; apt -y install vim sudo
Get:1 http://security.debian.org/debian-security bullseye-security InRelease [44.1 kB]
Get:2 http://deb.debian.org/debian bullseye InRelease [116 kB]                        
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [39.4 kB]
Get:4 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [160 kB]
Get:5 http://deb.debian.org/debian bullseye/main amd64 Packages [8182 kB]
Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [2592 B]
Fetched 8544 kB in 2s (3562 kB/s)               
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  linux-libc-dev tzdata
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 1783 kB of archives.
After this operation, 11.3 kB of additional disk space will be used.
Get:1 http://security.debian.org/debian-security bullseye-security/main amd64 linux-libc-dev amd64 5.10.120-1 [1498 kB]
Get:2 http://deb.debian.org/debian bullseye-updates/main amd64 tzdata all 2021a-1+deb11u4 [285 kB]
Fetched 1783 kB in 0s (7284 kB/s)                                    
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 22794 files and directories currently installed.)
Preparing to unpack .../tzdata_2021a-1+deb11u4_all.deb ...
Unpacking tzdata (2021a-1+deb11u4) over (2021a-1+deb11u3) ...
Preparing to unpack .../linux-libc-dev_5.10.120-1_amd64.deb ...
Unpacking linux-libc-dev:amd64 (5.10.120-1) over (5.10.113-1) ...
Setting up linux-libc-dev:amd64 (5.10.120-1) ...
Setting up tzdata (2021a-1+deb11u4) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.)
debconf: falling back to frontend: Readline

Current default time zone: 'Etc/UTC'
Local time is now:      Mon Jun 20 13:12:46 UTC 2022.
Universal Time is now:  Mon Jun 20 13:12:46 UTC 2022.
Run 'dpkg-reconfigure tzdata' if you wish to change it.

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libgpm2 vim-common vim-runtime xxd
Suggested packages:
  gpm ctags vim-doc vim-scripts
The following NEW packages will be installed:
  libgpm2 sudo vim vim-common vim-runtime xxd
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 9233 kB of archives.
After this operation, 41.6 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 xxd amd64 2:8.2.2434-3+deb11u1 [192 kB]
Get:2 http://deb.debian.org/debian bullseye/main amd64 vim-common all 2:8.2.2434-3+deb11u1 [226 kB]
Get:3 http://deb.debian.org/debian bullseye/main amd64 libgpm2 amd64 1.20.7-8 [35.6 kB]
Get:4 http://deb.debian.org/debian bullseye/main amd64 sudo amd64 1.9.5p2-3 [1059 kB]
Get:5 http://deb.debian.org/debian bullseye/main amd64 vim-runtime all 2:8.2.2434-3+deb11u1 [6226 kB]
Get:6 http://deb.debian.org/debian bullseye/main amd64 vim amd64 2:8.2.2434-3+deb11u1 [1494 kB]
Fetched 9233 kB in 1s (10.9 MB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package xxd.
(Reading database ... 22794 files and directories currently installed.)
Preparing to unpack .../0-xxd_2%3a8.2.2434-3+deb11u1_amd64.deb ...
Unpacking xxd (2:8.2.2434-3+deb11u1) ...
Selecting previously unselected package vim-common.
Preparing to unpack .../1-vim-common_2%3a8.2.2434-3+deb11u1_all.deb ...
Unpacking vim-common (2:8.2.2434-3+deb11u1) ...
Selecting previously unselected package libgpm2:amd64.
Preparing to unpack .../2-libgpm2_1.20.7-8_amd64.deb ...
Unpacking libgpm2:amd64 (1.20.7-8) ...
Selecting previously unselected package sudo.
Preparing to unpack .../3-sudo_1.9.5p2-3_amd64.deb ...
Unpacking sudo (1.9.5p2-3) ...
Selecting previously unselected package vim-runtime.
Preparing to unpack .../4-vim-runtime_2%3a8.2.2434-3+deb11u1_all.deb ...
Adding 'diversion of /usr/share/vim/vim82/doc/help.txt to /usr/share/vim/vim82/doc/help.txt.vim-tiny by vim-runtime'
Adding 'diversion of /usr/share/vim/vim82/doc/tags to /usr/share/vim/vim82/doc/tags.vim-tiny by vim-runtime'
Unpacking vim-runtime (2:8.2.2434-3+deb11u1) ...
Selecting previously unselected package vim.
Preparing to unpack .../5-vim_2%3a8.2.2434-3+deb11u1_amd64.deb ...
Unpacking vim (2:8.2.2434-3+deb11u1) ...
Setting up libgpm2:amd64 (1.20.7-8) ...
Setting up xxd (2:8.2.2434-3+deb11u1) ...
Setting up vim-common (2:8.2.2434-3+deb11u1) ...
Setting up sudo (1.9.5p2-3) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Setting up vim-runtime (2:8.2.2434-3+deb11u1) ...
Setting up vim (2:8.2.2434-3+deb11u1) ...
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/editor (editor) in auto mode
Processing triggers for libc-bin (2.31-13+deb11u3) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
root@91de3a426946:/# sudo ./llvm.sh 14
+ CURRENT_LLVM_STABLE=14
+ needed_binaries=(lsb_release wget add-apt-repository)
+ missing_binaries=()
+ for binary in "${needed_binaries[@]}"
+ which lsb_release
+ missing_binaries+=($binary)
+ for binary in "${needed_binaries[@]}"
+ which wget
+ for binary in "${needed_binaries[@]}"
+ which add-apt-repository
+ missing_binaries+=($binary)
+ [[ 2 -gt 0 ]]
+ echo 'You are missing some tools this script requires: lsb_release' add-apt-repository
You are missing some tools this script requires: lsb_release add-apt-repository
+ echo '(hint: apt install lsb-release wget software-properties-common)'
(hint: apt install lsb-release wget software-properties-common)
+ exit 4
root@91de3a426946:/# apt install lsb-release wget software-properties-common
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
wget is already the newest version (1.21-1+deb11u1).
The following additional packages will be installed:
  dbus distro-info-data dmsetup gir1.2-packagekitglib-1.0 iso-codes libapparmor1
  libappstream4 libargon2-1 libcap2 libcap2-bin libcryptsetup12 libdbus-1-3
  libdevmapper1.02.1 libdw1 libgstreamer1.0-0 libip4tc2 libjson-c5 libkmod2 liblmdb0
  libnss-systemd libpackagekit-glib2-18 libpam-cap libpam-systemd libpolkit-agent-1-0
  libpolkit-gobject-1-0 libstemmer0d libunwind8 packagekit packagekit-tools
  policykit-1 python-apt-common python3-apt python3-dbus python3-distro-info
  python3-gi python3-pycurl python3-software-properties systemd systemd-sysv
  systemd-timesyncd unattended-upgrades
Suggested packages:
  default-dbus-session-bus | dbus-session-bus isoquery gstreamer1.0-tools appstream
  python3-apt-dbg python-apt-doc python-dbus-doc python3-dbus-dbg libcurl4-gnutls-dev
  python-pycurl-doc python3-pycurl-dbg systemd-container bsd-mailx default-mta
  | mail-transport-agent needrestart powermgmt-base
The following NEW packages will be installed:
  dbus distro-info-data dmsetup gir1.2-packagekitglib-1.0 iso-codes libapparmor1
  libappstream4 libargon2-1 libcap2 libcap2-bin libcryptsetup12 libdbus-1-3
  libdevmapper1.02.1 libdw1 libgstreamer1.0-0 libip4tc2 libjson-c5 libkmod2 liblmdb0
  libnss-systemd libpackagekit-glib2-18 libpam-cap libpam-systemd libpolkit-agent-1-0
  libpolkit-gobject-1-0 libstemmer0d libunwind8 lsb-release packagekit
  packagekit-tools policykit-1 python-apt-common python3-apt python3-dbus
  python3-distro-info python3-gi python3-pycurl python3-software-properties
  software-properties-common systemd systemd-sysv systemd-timesyncd
  unattended-upgrades
0 upgraded, 43 newly installed, 0 to remove and 0 not upgraded.
Need to get 14.1 MB of archives.
After this operation, 57.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian bullseye/main amd64 libapparmor1 amd64 2.13.6-10 [99.3 kB]
Get:2 http://deb.debian.org/debian bullseye/main amd64 libcap2 amd64 1:2.44-1 [23.6 kB]
Get:3 http://deb.debian.org/debian bullseye/main amd64 libargon2-1 amd64 0~20171227-0.2 [19.6 kB]
Get:4 http://deb.debian.org/debian bullseye/main amd64 dmsetup amd64 2:1.02.175-2.1 [92.1 kB]
Get:5 http://deb.debian.org/debian bullseye/main amd64 libdevmapper1.02.1 amd64 2:1.02.175-2.1 [143 kB]
Get:6 http://deb.debian.org/debian bullseye/main amd64 libjson-c5 amd64 0.15-2 [42.8 kB]
Get:7 http://deb.debian.org/debian bullseye/main amd64 libcryptsetup12 amd64 2:2.3.7-1+deb11u1 [248 kB]
Get:8 http://deb.debian.org/debian bullseye/main amd64 libip4tc2 amd64 1.8.7-1 [34.6 kB]
Get:9 http://deb.debian.org/debian bullseye/main amd64 libkmod2 amd64 28-1 [55.6 kB]
Get:10 http://deb.debian.org/debian bullseye/main amd64 systemd amd64 247.3-7 [4500 kB]
Get:11 http://deb.debian.org/debian bullseye/main amd64 systemd-sysv amd64 247.3-7 [113 kB]
Get:12 http://deb.debian.org/debian bullseye/main amd64 libdbus-1-3 amd64 1.12.20-2 [219 kB]
Get:13 http://deb.debian.org/debian bullseye/main amd64 dbus amd64 1.12.20-2 [239 kB]
Get:14 http://deb.debian.org/debian bullseye/main amd64 libnss-systemd amd64 247.3-7 [198 kB]
Get:15 http://deb.debian.org/debian bullseye/main amd64 libpam-systemd amd64 247.3-7 [283 kB]
Get:16 http://deb.debian.org/debian bullseye/main amd64 systemd-timesyncd amd64 247.3-7 [131 kB]
Get:17 http://deb.debian.org/debian bullseye/main amd64 distro-info-data all 0.51+deb11u1 [7624 B]
Get:18 http://deb.debian.org/debian bullseye/main amd64 libpackagekit-glib2-18 amd64 1.2.2-2 [124 kB]
Get:19 http://deb.debian.org/debian bullseye/main amd64 gir1.2-packagekitglib-1.0 amd64 1.2.2-2 [36.8 kB]
Get:20 http://deb.debian.org/debian bullseye/main amd64 iso-codes all 4.6.0-1 [2824 kB]
Get:21 http://deb.debian.org/debian bullseye/main amd64 liblmdb0 amd64 0.9.24-1 [45.0 kB]
Get:22 http://deb.debian.org/debian bullseye/main amd64 libstemmer0d amd64 2.1.0-1 [119 kB]
Get:23 http://deb.debian.org/debian bullseye/main amd64 libappstream4 amd64 0.14.4-1 [172 kB]
Get:24 http://deb.debian.org/debian bullseye/main amd64 libcap2-bin amd64 1:2.44-1 [32.6 kB]
Get:25 http://deb.debian.org/debian bullseye/main amd64 libdw1 amd64 0.183-1 [234 kB]
Get:26 http://deb.debian.org/debian bullseye/main amd64 libunwind8 amd64 1.3.2-2 [54.5 kB]
Get:27 http://deb.debian.org/debian bullseye/main amd64 libgstreamer1.0-0 amd64 1.18.4-2.1 [2230 kB]
Get:28 http://deb.debian.org/debian bullseye/main amd64 libpam-cap amd64 1:2.44-1 [15.4 kB]
Get:29 http://deb.debian.org/debian bullseye/main amd64 libpolkit-gobject-1-0 amd64 0.105-31+deb11u1 [48.5 kB]
Get:30 http://deb.debian.org/debian bullseye/main amd64 libpolkit-agent-1-0 amd64 0.105-31+deb11u1 [28.1 kB]
Get:31 http://deb.debian.org/debian bullseye/main amd64 lsb-release all 11.1.0 [27.9 kB]
Get:32 http://deb.debian.org/debian bullseye/main amd64 policykit-1 amd64 0.105-31+deb11u1 [96.7 kB]
Get:33 http://deb.debian.org/debian bullseye/main amd64 packagekit amd64 1.2.2-2 [598 kB]
Get:34 http://deb.debian.org/debian bullseye/main amd64 packagekit-tools amd64 1.2.2-2 [41.7 kB]
Get:35 http://deb.debian.org/debian bullseye/main amd64 python-apt-common all 2.2.1 [96.5 kB]
Get:36 http://deb.debian.org/debian bullseye/main amd64 python3-apt amd64 2.2.1 [190 kB]
Get:37 http://deb.debian.org/debian bullseye/main amd64 python3-dbus amd64 1.2.16-5 [108 kB]
Get:38 http://deb.debian.org/debian bullseye/main amd64 python3-distro-info all 1.0 [8720 B]
Get:39 http://deb.debian.org/debian bullseye/main amd64 python3-gi amd64 3.38.0-2 [232 kB]
Get:40 http://deb.debian.org/debian bullseye/main amd64 python3-pycurl amd64 7.43.0.6-5 [68.8 kB]
Get:41 http://deb.debian.org/debian bullseye/main amd64 python3-software-properties all 0.96.20.2-2.1 [49.7 kB]
Get:42 http://deb.debian.org/debian bullseye/main amd64 software-properties-common all 0.96.20.2-2.1 [83.4 kB]
Get:43 http://deb.debian.org/debian bullseye/main amd64 unattended-upgrades all 2.8 [88.6 kB]
Fetched 14.1 MB in 1s (15.1 MB/s)               
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libapparmor1:amd64.
(Reading database ... 24907 files and directories currently installed.)
Preparing to unpack .../0-libapparmor1_2.13.6-10_amd64.deb ...
Unpacking libapparmor1:amd64 (2.13.6-10) ...
Selecting previously unselected package libcap2:amd64.
Preparing to unpack .../1-libcap2_1%3a2.44-1_amd64.deb ...
Unpacking libcap2:amd64 (1:2.44-1) ...
Selecting previously unselected package libargon2-1:amd64.
Preparing to unpack .../2-libargon2-1_0~20171227-0.2_amd64.deb ...
Unpacking libargon2-1:amd64 (0~20171227-0.2) ...
Selecting previously unselected package dmsetup.
Preparing to unpack .../3-dmsetup_2%3a1.02.175-2.1_amd64.deb ...
Unpacking dmsetup (2:1.02.175-2.1) ...
Selecting previously unselected package libdevmapper1.02.1:amd64.
Preparing to unpack .../4-libdevmapper1.02.1_2%3a1.02.175-2.1_amd64.deb ...
Unpacking libdevmapper1.02.1:amd64 (2:1.02.175-2.1) ...
Selecting previously unselected package libjson-c5:amd64.
Preparing to unpack .../5-libjson-c5_0.15-2_amd64.deb ...
Unpacking libjson-c5:amd64 (0.15-2) ...
Selecting previously unselected package libcryptsetup12:amd64.
Preparing to unpack .../6-libcryptsetup12_2%3a2.3.7-1+deb11u1_amd64.deb ...
Unpacking libcryptsetup12:amd64 (2:2.3.7-1+deb11u1) ...
Selecting previously unselected package libip4tc2:amd64.
Preparing to unpack .../7-libip4tc2_1.8.7-1_amd64.deb ...
Unpacking libip4tc2:amd64 (1.8.7-1) ...
Selecting previously unselected package libkmod2:amd64.
Preparing to unpack .../8-libkmod2_28-1_amd64.deb ...
Unpacking libkmod2:amd64 (28-1) ...
Selecting previously unselected package systemd.
Preparing to unpack .../9-systemd_247.3-7_amd64.deb ...
Unpacking systemd (247.3-7) ...
Setting up libapparmor1:amd64 (2.13.6-10) ...
Setting up libcap2:amd64 (1:2.44-1) ...
Setting up libargon2-1:amd64 (0~20171227-0.2) ...
Setting up libjson-c5:amd64 (0.15-2) ...
Setting up libip4tc2:amd64 (1.8.7-1) ...
Setting up libkmod2:amd64 (28-1) ...
Setting up libdevmapper1.02.1:amd64 (2:1.02.175-2.1) ...
Setting up libcryptsetup12:amd64 (2:2.3.7-1+deb11u1) ...
Setting up systemd (247.3-7) ...
Created symlink /etc/systemd/system/getty.target.wants/getty@tty1.service → /lib/systemd/system/getty@.service.
Created symlink /etc/systemd/system/multi-user.target.wants/remote-fs.target → /lib/systemd/system/remote-fs.target.
Created symlink /etc/systemd/system/sysinit.target.wants/systemd-pstore.service → /lib/systemd/system/systemd-pstore.service.
Initializing machine ID from random generator.
Setting up dmsetup (2:1.02.175-2.1) ...
Selecting previously unselected package systemd-sysv.
(Reading database ... 25754 files and directories currently installed.)
Preparing to unpack .../00-systemd-sysv_247.3-7_amd64.deb ...
Unpacking systemd-sysv (247.3-7) ...
Selecting previously unselected package libdbus-1-3:amd64.
Preparing to unpack .../01-libdbus-1-3_1.12.20-2_amd64.deb ...
Unpacking libdbus-1-3:amd64 (1.12.20-2) ...
Selecting previously unselected package dbus.
Preparing to unpack .../02-dbus_1.12.20-2_amd64.deb ...
Unpacking dbus (1.12.20-2) ...
Selecting previously unselected package libnss-systemd:amd64.
Preparing to unpack .../03-libnss-systemd_247.3-7_amd64.deb ...
Unpacking libnss-systemd:amd64 (247.3-7) ...
Selecting previously unselected package libpam-systemd:amd64.
Preparing to unpack .../04-libpam-systemd_247.3-7_amd64.deb ...
Unpacking libpam-systemd:amd64 (247.3-7) ...
Selecting previously unselected package systemd-timesyncd.
Preparing to unpack .../05-systemd-timesyncd_247.3-7_amd64.deb ...
Unpacking systemd-timesyncd (247.3-7) ...
Selecting previously unselected package distro-info-data.
Preparing to unpack .../06-distro-info-data_0.51+deb11u1_all.deb ...
Unpacking distro-info-data (0.51+deb11u1) ...
Selecting previously unselected package libpackagekit-glib2-18:amd64.
Preparing to unpack .../07-libpackagekit-glib2-18_1.2.2-2_amd64.deb ...
Unpacking libpackagekit-glib2-18:amd64 (1.2.2-2) ...
Selecting previously unselected package gir1.2-packagekitglib-1.0.
Preparing to unpack .../08-gir1.2-packagekitglib-1.0_1.2.2-2_amd64.deb ...
Unpacking gir1.2-packagekitglib-1.0 (1.2.2-2) ...
Selecting previously unselected package iso-codes.
Preparing to unpack .../09-iso-codes_4.6.0-1_all.deb ...
Unpacking iso-codes (4.6.0-1) ...
Selecting previously unselected package liblmdb0:amd64.
Preparing to unpack .../10-liblmdb0_0.9.24-1_amd64.deb ...
Unpacking liblmdb0:amd64 (0.9.24-1) ...
Selecting previously unselected package libstemmer0d:amd64.
Preparing to unpack .../11-libstemmer0d_2.1.0-1_amd64.deb ...
Unpacking libstemmer0d:amd64 (2.1.0-1) ...
Selecting previously unselected package libappstream4:amd64.
Preparing to unpack .../12-libappstream4_0.14.4-1_amd64.deb ...
Unpacking libappstream4:amd64 (0.14.4-1) ...
Selecting previously unselected package libcap2-bin.
Preparing to unpack .../13-libcap2-bin_1%3a2.44-1_amd64.deb ...
Unpacking libcap2-bin (1:2.44-1) ...
Selecting previously unselected package libdw1:amd64.
Preparing to unpack .../14-libdw1_0.183-1_amd64.deb ...
Unpacking libdw1:amd64 (0.183-1) ...
Selecting previously unselected package libunwind8:amd64.
Preparing to unpack .../15-libunwind8_1.3.2-2_amd64.deb ...
Unpacking libunwind8:amd64 (1.3.2-2) ...
Selecting previously unselected package libgstreamer1.0-0:amd64.
Preparing to unpack .../16-libgstreamer1.0-0_1.18.4-2.1_amd64.deb ...
Unpacking libgstreamer1.0-0:amd64 (1.18.4-2.1) ...
Selecting previously unselected package libpam-cap:amd64.
Preparing to unpack .../17-libpam-cap_1%3a2.44-1_amd64.deb ...
Unpacking libpam-cap:amd64 (1:2.44-1) ...
Selecting previously unselected package libpolkit-gobject-1-0:amd64.
Preparing to unpack .../18-libpolkit-gobject-1-0_0.105-31+deb11u1_amd64.deb ...
Unpacking libpolkit-gobject-1-0:amd64 (0.105-31+deb11u1) ...
Selecting previously unselected package libpolkit-agent-1-0:amd64.
Preparing to unpack .../19-libpolkit-agent-1-0_0.105-31+deb11u1_amd64.deb ...
Unpacking libpolkit-agent-1-0:amd64 (0.105-31+deb11u1) ...
Selecting previously unselected package lsb-release.
Preparing to unpack .../20-lsb-release_11.1.0_all.deb ...
Unpacking lsb-release (11.1.0) ...
Selecting previously unselected package policykit-1.
Preparing to unpack .../21-policykit-1_0.105-31+deb11u1_amd64.deb ...
Unpacking policykit-1 (0.105-31+deb11u1) ...
Selecting previously unselected package packagekit.
Preparing to unpack .../22-packagekit_1.2.2-2_amd64.deb ...
Unpacking packagekit (1.2.2-2) ...
Selecting previously unselected package packagekit-tools.
Preparing to unpack .../23-packagekit-tools_1.2.2-2_amd64.deb ...
Unpacking packagekit-tools (1.2.2-2) ...
Selecting previously unselected package python-apt-common.
Preparing to unpack .../24-python-apt-common_2.2.1_all.deb ...
Unpacking python-apt-common (2.2.1) ...
Selecting previously unselected package python3-apt.
Preparing to unpack .../25-python3-apt_2.2.1_amd64.deb ...
Unpacking python3-apt (2.2.1) ...
Selecting previously unselected package python3-dbus.
Preparing to unpack .../26-python3-dbus_1.2.16-5_amd64.deb ...
Unpacking python3-dbus (1.2.16-5) ...
Selecting previously unselected package python3-distro-info.
Preparing to unpack .../27-python3-distro-info_1.0_all.deb ...
Unpacking python3-distro-info (1.0) ...
Selecting previously unselected package python3-gi.
Preparing to unpack .../28-python3-gi_3.38.0-2_amd64.deb ...
Unpacking python3-gi (3.38.0-2) ...
Selecting previously unselected package python3-pycurl.
Preparing to unpack .../29-python3-pycurl_7.43.0.6-5_amd64.deb ...
Unpacking python3-pycurl (7.43.0.6-5) ...
Selecting previously unselected package python3-software-properties.
Preparing to unpack .../30-python3-software-properties_0.96.20.2-2.1_all.deb ...
Unpacking python3-software-properties (0.96.20.2-2.1) ...
Selecting previously unselected package software-properties-common.
Preparing to unpack .../31-software-properties-common_0.96.20.2-2.1_all.deb ...
Unpacking software-properties-common (0.96.20.2-2.1) ...
Selecting previously unselected package unattended-upgrades.
Preparing to unpack .../32-unattended-upgrades_2.8_all.deb ...
Unpacking unattended-upgrades (2.8) ...
Setting up liblmdb0:amd64 (0.9.24-1) ...
Setting up libdw1:amd64 (0.183-1) ...
Setting up systemd-sysv (247.3-7) ...
Setting up distro-info-data (0.51+deb11u1) ...
Setting up libpackagekit-glib2-18:amd64 (1.2.2-2) ...
Setting up libnss-systemd:amd64 (247.3-7) ...
First installation detected...
Checking NSS setup...
Setting up libunwind8:amd64 (1.3.2-2) ...
Setting up libcap2-bin (1:2.44-1) ...
Setting up gir1.2-packagekitglib-1.0 (1.2.2-2) ...
Setting up python3-pycurl (7.43.0.6-5) ...
Setting up libdbus-1-3:amd64 (1.12.20-2) ...
Setting up dbus (1.12.20-2) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Setting up python3-gi (3.38.0-2) ...
Setting up systemd-timesyncd (247.3-7) ...
Created symlink /etc/systemd/system/dbus-org.freedesktop.timesync1.service → /lib/systemd/system/systemd-timesyncd.service.
Created symlink /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service → /lib/systemd/system/systemd-timesyncd.service.
Setting up python-apt-common (2.2.1) ...
Setting up libpam-systemd:amd64 (247.3-7) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.)
debconf: falling back to frontend: Readline
Setting up libstemmer0d:amd64 (2.1.0-1) ...
Setting up lsb-release (11.1.0) ...
Setting up libpam-cap:amd64 (1:2.44-1) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.)
debconf: falling back to frontend: Readline
Setting up python3-distro-info (1.0) ...
Setting up iso-codes (4.6.0-1) ...
Setting up libpolkit-gobject-1-0:amd64 (0.105-31+deb11u1) ...
Setting up libgstreamer1.0-0:amd64 (1.18.4-2.1) ...
Setcap worked! gst-ptp-helper is not suid!
Setting up python3-dbus (1.2.16-5) ...
Setting up python3-apt (2.2.1) ...
Setting up libappstream4:amd64 (0.14.4-1) ...
Setting up unattended-upgrades (2.8) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.)
debconf: falling back to frontend: Readline

Creating config file /etc/apt/apt.conf.d/20auto-upgrades with new version

Creating config file /etc/apt/apt.conf.d/50unattended-upgrades with new version
Created symlink /etc/systemd/system/multi-user.target.wants/unattended-upgrades.service → /lib/systemd/system/unattended-upgrades.service.
Setting up python3-software-properties (0.96.20.2-2.1) ...
Setting up libpolkit-agent-1-0:amd64 (0.105-31+deb11u1) ...
Setting up policykit-1 (0.105-31+deb11u1) ...
Setting up software-properties-common (0.96.20.2-2.1) ...
Setting up packagekit (1.2.2-2) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of force-reload.
Failed to open connection to "system" message bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
Created symlink /etc/systemd/user/sockets.target.wants/pk-debconf-helper.socket → /usr/lib/systemd/user/pk-debconf-helper.socket.
Setting up packagekit-tools (1.2.2-2) ...
Processing triggers for libc-bin (2.31-13+deb11u3) ...
Processing triggers for dbus (1.12.20-2) ...
root@91de3a426946:/# sudo ln -s -f /usr/bin/clang-14 /usr/bin/clang
root@91de3a426946:/#  sudo ln -s -f /usr/bin/clang++-14 /usr/bin/clang++
root@91de3a426946:/#  clang++ --version
bash: clang++: command not found
root@91de3a426946:/# /usr/bin/clang++ --version
bash: /usr/bin/clang++: No such file or directory