Greetings,
I have installed llvm-14 following this website after adding it to the repository on ubuntu-20. After fetching the key, the following code simply installed llvm-14 on ununtu-20 machine,
sudo apt udpate
sudo apt install llvm-14 clang-14
but on ubuntu-18, following the same steps, I got this,
ubuntu-18@ubuntu18-VirtualBox:~$ sudo apt install clang-14 llvm-14
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
clang-14 : Depends: libclang-cpp14 (>= 1:14.0.6~++20220622053019+f28c006a5895) but it is not going to be installed
Depends: libgcc-s1 (>= 3.0) but it is not installable
Depends: libllvm14 but it is not going to be installed
Depends: libstdc++6 (>= 11) but 8.4.0-1ubuntu1~18.04 is to be installed
Depends: libclang-common-14-dev (= 1:14.0.6~++20220622053019+f28c006a5895-1~exp1~20220622173056.159) but it is not going to be installed
Depends: llvm-14-linker-tools (= 1:14.0.6~++20220622053019+f28c006a5895-1~exp1~20220622173056.159) but it is not going to be installed
Depends: libclang1-14 (= 1:14.0.6~++20220622053019+f28c006a5895-1~exp1~20220622173056.159) but it is not going to be installed
Recommends: llvm-14-dev but it is not going to be installed
llvm-14 : Depends: llvm-14-runtime (= 1:14.0.6~++20220622053019+f28c006a5895-1~exp1~20220622173056.159) but it is not going to be installed
Depends: llvm-14-linker-tools (= 1:14.0.6~++20220622053019+f28c006a5895-1~exp1~20220622173056.159) but it is not going to be installed
Depends: libgcc-s1 (>= 3.3) but it is not installable
Depends: libllvm14 but it is not going to be installed
Depends: libstdc++6 (>= 11) but 8.4.0-1ubuntu1~18.04 is to be installed
Recommends: llvm-14-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Then run this,
ubuntu-18@ubuntu18-VirtualBox:~$ sudo apt install clang-14 llvm-14 llvm-14-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
clang-14 : Depends: libclang-cpp14 (>= 1:14.0.6~++20220622053019+f28c006a5895) but it is not going to be installed
Depends: libgcc-s1 (>= 3.0) but it is not installable
Depends: libllvm14 but it is not going to be installed
Depends: libstdc++6 (>= 11) but 8.4.0-1ubuntu1~18.04 is to be installed
Depends: libclang-common-14-dev (= 1:14.0.6~++20220622053019+f28c006a5895-1~exp1~20220622173056.159) but it is not going to be installed
Depends: llvm-14-linker-tools (= 1:14.0.6~++20220622053019+f28c006a5895-1~exp1~20220622173056.159) but it is not going to be installed
Depends: libclang1-14 (= 1:14.0.6~++20220622053019+f28c006a5895-1~exp1~20220622173056.159) but it is not going to be installed
llvm-14 : Depends: llvm-14-runtime (= 1:14.0.6~++20220622053019+f28c006a5895-1~exp1~20220622173056.159) but it is not going to be installed
Depends: llvm-14-linker-tools (= 1:14.0.6~++20220622053019+f28c006a5895-1~exp1~20220622173056.159) but it is not going to be installed
Depends: libgcc-s1 (>= 3.3) but it is not installable
Depends: libllvm14 but it is not going to be installed
Depends: libstdc++6 (>= 11) but 8.4.0-1ubuntu1~18.04 is to be installed
llvm-14-dev : Depends: libgcc-s1 (>= 3.0) but it is not installable
Depends: libllvm14 (= 1:14.0.6~++20220622053019+f28c006a5895-1~exp1~20220622173056.159) but it is not going to be installed
Depends: llvm-14-tools (= 1:14.0.6~++20220622053019+f28c006a5895-1~exp1~20220622173056.159) but it is not going to be installed
Depends: libclang-cpp14 (= 1:14.0.6~++20220622053019+f28c006a5895-1~exp1~20220622173056.159) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
@tobiashieta @smithp35 @tstellar @rpmvig @tedwoodward, will appreciate any thoughts you have.