llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.98k stars 11.95k forks source link

https://apt.llvm.org/llvm.sh - failure to install 15, 16 on Ubuntu 22.04 with " python3-lldb-14 : Conflicts: python3-lldb-x.y" errror #64182

Open XVilka opened 1 year ago

XVilka commented 1 year ago

It started happening since yesterday on our CI. I tried different versions but it didn't help.

Run wget https://apt.llvm.org/llvm.sh -O /tmp/llvm-install.sh; chmod +x /tmp/llvm-install.sh; sudo /tmp/llvm-install.sh 16
--2023-07-28 01:24:35--  https://apt.llvm.org/llvm.sh
Resolving apt.llvm.org (apt.llvm.org)... 146.75.30.49, 2a04:4e42:77::561
Connecting to apt.llvm.org (apt.llvm.org)|146.75.30.49|:443... connected.
HTTP request sent, awaiting response... [200](https://github.com/rizinorg/rizin/actions/runs/5687146426/job/15415102768?pr=3696#step:4:201) OK
Length: 5558 (5.4K) [application/octet-stream]
Saving to: ‘/tmp/llvm-install.sh’

     0K .....                                                 100% 65.2M=0s

[202](https://github.com/rizinorg/rizin/actions/runs/5687146426/job/15415102768?pr=3696#step:4:203)3-07-28 01:24:35 (65.2 MB/s) - ‘/tmp/llvm-install.sh’ saved [5558/5558]

+ CURRENT_LLVM_STABLE=17
+ BASE_URL=http://apt.llvm.org
+ needed_binaries=(lsb_release wget add-apt-repository gpg)
+ missing_binaries=()
+ for binary in "${needed_binaries[@]}"
+ which lsb_release
+ for binary in "${needed_binaries[@]}"
+ which wget
+ for binary in "${needed_binaries[@]}"
+ which add-apt-repository
+ for binary in "${needed_binaries[@]}"
+ which gpg
+ [[ 0 -gt 0 ]]
+ LLVM_VERSION=17
+ ALL=0
++ lsb_release -is
+ DISTRO=Ubuntu
++ lsb_release -sr
+ VERSION=22.04
+ UBUNTU_CODENAME=
+ CODENAME_FROM_ARGUMENTS=
+ source /etc/os-release
++ PRETTY_NAME='Ubuntu 22.04.2 LTS'
++ NAME=Ubuntu
++ VERSION_ID=22.04
++ VERSION='22.04.2 LTS (Jammy Jellyfish)'
++ VERSION_CODENAME=jammy
++ ID=ubuntu
++ ID_LIKE=debian
++ HOME_URL=https://www.ubuntu.com/
++ SUPPORT_URL=https://help.ubuntu.com/
++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/
++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy
++ UBUNTU_CODENAME=jammy
+ DISTRO=ubuntu
+ case ${DISTRO} in
+ [[ -n jammy ]]
+ CODENAME=jammy
+ [[ -n jammy ]]
+ LINKNAME=-jammy
+ '[' 1 -ge 1 ']'
+ '[' 1 '!=' - ']'
+ '[' 16 '!=' all ']'
+ LLVM_VERSION=16
+ OPTIND=2
+ '[' 1 -ge 2 ']'
+ getopts :hm:n: arg
+ [[ 0 -ne 0 ]]
+ declare -A LLVM_VERSION_PATTERNS
+ LLVM_VERSION_PATTERNS[9]=-9
+ LLVM_VERSION_PATTERNS[10]=-10
+ LLVM_VERSION_PATTERNS[11]=-11
+ LLVM_VERSION_PATTERNS[12]=-12
+ LLVM_VERSION_PATTERNS[13]=-13
+ LLVM_VERSION_PATTERNS[14]=-14
+ LLVM_VERSION_PATTERNS[15]=-15
+ LLVM_VERSION_PATTERNS[16]=-16
+ LLVM_VERSION_PATTERNS[17]=-17
+ LLVM_VERSION_PATTERNS[18]=
+ '[' '!' _ ']'
+ LLVM_VERSION_STRING=-16
+ [[ -n jammy ]]
+ REPO_NAME='deb http://apt.llvm.org/jammy/  llvm-toolchain-jammy-16 main'
+ wget -q --method=HEAD http://apt.llvm.org/jammy
+ [[ ! -f /etc/apt/trusted.gpg.d/apt.llvm.org.asc ]]
+ tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
+ wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.12 (GNU/Linux)

mQINBFE9lCwBEADi0WUAApM/mgHJRU8lVkkw0CHsZNpqaQDNaHefD6Rw3S4LxNmM
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hmzp9G97SRYYeqU+8lyNXtU2PdrLLq7QHkzrsloG78lCpQcalHGACJzrlUWVP/
fN3Ht3kAEQEAAYkCHwQYAQIACQUCUT2ULAIbDAAKCRAVz00Yr090IbhWEADbr50X
OEXMIMGRLe+YMjeMX9NG4jxs0jZaWHc/WrGR+CCSUb9r6aPXeLo+45949uEfdSsB
pbaEdNWxF5Vr1CSjuO5siIlgDjmT655voXo67xVpEN4HhMrxugDJfCa6z97P0+ML
PdDxim57uNqkam9XIq9hKQaurxMAECDPmlEXI4QT3eu5qw5/knMzDMZj4Vi6hovL
wvvAeLHO/jsyfIdNmhBGU2RWCEZ9uo/MeerPHtRPfg74g+9PPfP6nyHD2Wes6yGd
oVQwtPNAQD6Cj7EaA2xdZYLJ7/jW6yiPu98FFWP74FN2dlyEA2uVziLsfBrgpS4l
tVOlrO2YzkkqUGrybzbLpj6eeHx+Cd7wcjI8CalsqtL6cG8cUEjtWQUHyTbQWAgG
5VPEgIAVhJ6RTZ26i/G+4J8neKyRs4vz+57UGwY6zI4AB1ZcWGEE3Bf+CDEDgmnP
LSwbnHefK9IljT9XU98PelSryUO/5UPw7leE0akXKB4DtekToO226px1VnGp3Bov
1GBGvpHvL2WizEwdk+nfk8LtrLzej+9FtIcq3uIrYnsac47Pf7p0otcFeTJTjSq3
krCaoG4Hx0zGQG2ZFpHrSrZTVy6lxvIdfi0beMgY6h78p6M9eYZHQHc02DjFkQXN
bXb5c6gCHESH5PXwPU4jQEE7Ib9J6sbk7ZT2Mw==
=j+4q
-----END PGP PUBLIC KEY BLOCK-----
++ grep -i llvm
++ apt-key list
+ [[ -z /etc/apt/trusted.gpg.d/apt.llvm.org.asc
uid           [ unknown] Sylvestre Ledru - Debian LLVM packages <sylvestre@debian.org> ]]
+ add-apt-repository 'deb http://apt.llvm.org/jammy/  llvm-toolchain-jammy-16 main'
Hit:1 http://azure.archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://azure.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Get:3 http://azure.archive.ubuntu.com/ubuntu jammy-backports InRelease [108 kB]
Get:4 http://azure.archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:5 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
Get:6 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:7 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease [3611 B]
Get:8 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Get:9 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [855 kB]
Get:10 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [209 kB]
Get:11 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [15.4 kB]
Get:12 http://azure.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [668 kB]
Get:13 http://azure.archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [106 kB]
Get:14 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [962 kB]
Get:15 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [[207](https://github.com/rizinorg/rizin/actions/runs/5687146426/job/15415102768?pr=3696#step:4:208) kB]
Get:16 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 c-n-f Metadata [21.4 kB]
Get:17 http://azure.archive.ubuntu.com/ubuntu jammy-updates/multiverse Translation-en [9768 B]
Hit:18 https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu jammy InRelease
Get:20 http://azure.archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages [634 kB]
Get:21 http://azure.archive.ubuntu.com/ubuntu jammy-security/main Translation-en [149 kB]
Get:22 http://azure.archive.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [11.0 kB]
Get:23 http://azure.archive.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [656 kB]
Get:24 http://azure.archive.ubuntu.com/ubuntu jammy-security/restricted Translation-en [104 kB]
Get:25 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [764 kB]
Get:26 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe Translation-en [137 kB]
Get:27 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main armhf Packages [8563 B]
Get:28 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 Packages [79.9 kB]
Get:29 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [16.3 kB]
Get:30 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main arm64 Packages [17.1 kB]
Get:31 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [634 kB]
Get:32 http://security.ubuntu.com/ubuntu jammy-security/main Translation-en [149 kB]
Get:33 http://security.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [11.0 kB]
Get:34 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages [1395 kB]
Get:35 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [656 kB]
Get:36 http://security.ubuntu.com/ubuntu jammy-security/restricted Translation-en [104 kB]
Get:37 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 c-n-f Metadata [532 B]
Get:19 https://apt.llvm.org/jammy llvm-toolchain-jammy-16 InRelease [6833 B]
Get:38 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [764 kB]
Get:39 http://archive.ubuntu.com/ubuntu jammy/main Translation-en [510 kB]
Get:40 http://archive.ubuntu.com/ubuntu jammy/main amd64 c-n-f Metadata [30.3 kB]
Get:41 http://security.ubuntu.com/ubuntu jammy-security/universe Translation-en [137 kB]
Get:42 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages [129 kB]
Get:43 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [16.3 kB]
Get:44 http://archive.ubuntu.com/ubuntu jammy/restricted Translation-en [18.6 kB]
Get:45 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [36.5 kB]
Get:46 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 c-n-f Metadata [488 B]
Get:47 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [855 kB]
Get:48 http://security.ubuntu.com/ubuntu jammy-security/multiverse Translation-en [7060 B]
Get:49 http://archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [[209](https://github.com/rizinorg/rizin/actions/runs/5687146426/job/15415102768?pr=3696#step:4:210) kB]
Get:50 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 c-n-f Metadata [260 B]
Get:51 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [15.4 kB]
Get:52 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [668 kB]
Get:53 http://archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [106 kB]
Get:54 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 c-n-f Metadata [528 B]
Get:55 https://apt.llvm.org/jammy llvm-toolchain-jammy-16/main amd64 Packages [12.4 kB]
Fetched 12.9 MB in 2s (5501 kB/s)
Reading package lists...
Repository: 'deb http://apt.llvm.org//jammy/ llvm-toolchain-jammy-16 main'
Description:
Archive for codename: llvm-toolchain-jammy-16 components: main
More info: http://apt.llvm.org/jammy/
Adding repository.
Adding deb entry to /etc/apt/sources.list.d/archive_uri-http_apt_llvm_org_jammy_-jammy.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/archive_uri-http_apt_llvm_org_jammy_-jammy.list
+ apt-get update
Hit:1 http://azure.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://azure.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 http://azure.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:4 http://azure.archive.ubuntu.com/ubuntu jammy-security InRelease
Hit:5 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:6 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:7 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease
Hit:9 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:10 https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu jammy InRelease
Hit:8 https://apt.llvm.org/jammy llvm-toolchain-jammy-16 InRelease
Reading package lists...
+ PKG='clang-16 lldb-16 lld-16 clangd-16'
+ [[ 0 -eq 1 ]]
+ apt-get install -y clang-16 lldb-16 lld-16 clangd-16
Reading package lists...
Building dependency tree...
Reading state information...
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:
 python3-lldb-14 : Conflicts: python3-lldb-x.y
 python3-lldb-16 : Conflicts: python3-lldb-x.y
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Error: Process completed with exit code [100](https://github.com/rizinorg/rizin/actions/runs/5687146426/job/15415102768?pr=3696#step:4:101).

https://github.com/rizinorg/rizin/actions/runs/5683740019/job/15415025478

llvmbot commented 1 year ago

@llvm/issue-subscribers-lldb

firewave commented 1 year ago

See also #64120.

sylvestre commented 1 year ago

I can't reproduce on Debian I will try with ubuntu

firewave commented 1 year ago

Happens to me on ubuntu-22.04 with llvm.sh 16 and llvm.sh 17. In both cases it is a clean system with no previous usage of llvm.sh.

sylvestre commented 1 year ago

@LocutusOfBorg rings a bell? I don't have my laptop with me today

binarymaster commented 1 year ago

https://apt.llvm.org/llvm.sh - failure to install 15, 16

It seems 13 is affected as well: https://github.com/llvm/llvm-project/issues/64120#issuecomment-1656201384

annnei commented 1 year ago

I saw this in our CI as well. It runs on a Ubuntu 22.04 with various tools preinstalled, including llvm 14. I managed to work around the issue by adding this command line before ./llvm.sh 16:

sudo apt-get purge --auto-remove llvm python3-lldb-14 llvm-14

sylvestre commented 1 year ago

Really sorry about this. I am traveling with a proper connexion.

binarymaster commented 1 year ago

Looks like it's fixed now, our builders are green again, many thanks 🙂