Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E: Package 'clang-12' has no installation candidate #96

Closed
nerbivol opened this issue Jul 25, 2024 · 2 comments
Closed

E: Package 'clang-12' has no installation candidate #96

nerbivol opened this issue Jul 25, 2024 · 2 comments

Comments

@nerbivol
Copy link

Bug report

  • AirSim Version: Last Colosseum
  • UE/Unity version: 5.4.3
  • autopilot version: N/A
  • OS Version: Ubuntu 24.04 LTS

What's the issue?

I get error:

nerbivol@ideapad:~/Colosseum$ ./setup.sh 
+ set -e
+++ dirname ./setup.sh
++ cd .
++ pwd
+ SCRIPT_DIR=/home/nerbivol/Colosseum
+ pushd /home/nerbivol/Colosseum
+ downloadHighPolySuv=true
+ MIN_CMAKE_VERSION=3.10.0
++ uname
+ '[' Linux == Darwin ']'
+ DEBUG=false
+ [[ 0 -gt 0 ]]
++ uname
+ '[' Linux == Darwin ']'
+ sudo apt-get update
Hit:1 http://ua.archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://ua.archive.ubuntu.com/ubuntu noble-updates InRelease                                                                                          
Hit:3 http://ua.archive.ubuntu.com/ubuntu noble-backports InRelease                                                                                        
Hit:4 https://download.mono-project.com/repo/ubuntu stable-focal InRelease                                                                                 
Hit:5 https://download.docker.com/linux/ubuntu noble InRelease                                                                                             
Hit:6 https://dl.google.com/linux/chrome/deb stable InRelease                                                                                              
Hit:7 http://security.ubuntu.com/ubuntu noble-security InRelease                                                              
Hit:8 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu noble InRelease                           
Hit:9 https://packages.lunarg.com/vulkan jammy InRelease
Reading package lists... Done
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://download.mono-project.com/repo/ubuntu stable-focal InRelease' doesn't support architecture 'i386'
W: https://download.docker.com/linux/ubuntu/dists/noble/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
N: Skipping acquire of configured file 'stable/binary-i386/Packages' as repository 'https://download.docker.com/linux/ubuntu noble InRelease' doesn't support architecture 'i386'
+ sudo apt-get -y install --no-install-recommends lsb-release rsync software-properties-common wget libvulkan1 vulkan-utils
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'vulkan-tools' instead of 'vulkan-utils'
lsb-release is already the newest version (12.0-2).
rsync is already the newest version (3.2.7-1ubuntu1).
software-properties-common is already the newest version (0.99.48).
wget is already the newest version (1.21.4-1ubuntu4.1).
libvulkan1 is already the newest version (1.3.290.0~rc1-1lunarg22.04-1).
vulkan-tools is already the newest version (1.3.290.0~rc1-1lunarg22.04-1).
The following packages were automatically installed and are no longer required:
  linux-headers-6.8.0-36 linux-headers-6.8.0-36-generic linux-image-6.8.0-36-generic linux-modules-6.8.0-36-generic linux-modules-extra-6.8.0-36-generic
  linux-modules-nvidia-535-6.8.0-36-generic linux-objects-nvidia-535-6.8.0-36-generic linux-signatures-nvidia-6.8.0-36-generic linux-tools-6.8.0-36
  linux-tools-6.8.0-36-generic nvidia-firmware-535-535.171.04
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
++ lsb_release -rs
++ cut -d. -f1
+ VERSION=24
+ '[' 24 -lt 17 ']'
+ sudo apt-get install -y clang-12 clang++-12 libc++-12-dev libc++abi-12-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'librust-clang-sys+clang-12-0-dev' for regex 'clang++-12'
Note, selecting 'librust-clang-sys-1.3+clang-12-0-dev' for regex 'clang++-12'
Note, selecting 'clang-12' for regex 'clang++-12'
Note, selecting 'librust-clang-sys-1.3.0+clang-12-0-dev' for regex 'clang++-12'
Note, selecting 'librust-clang-sys-1+clang-12-0-dev' for regex 'clang++-12'
Note, selecting 'librust-clang-sys-dev' instead of 'librust-clang-sys+clang-12-0-dev'
Note, selecting 'librust-clang-sys-dev' instead of 'librust-clang-sys-1+clang-12-0-dev'
Note, selecting 'librust-clang-sys-dev' instead of 'librust-clang-sys-1.3+clang-12-0-dev'
Note, selecting 'librust-clang-sys-dev' instead of 'librust-clang-sys-1.3.0+clang-12-0-dev'
Package clang-12 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'clang-12' has no installation candidate
E: Unable to locate package libc++-12-dev
E: Couldn't find any package by regex 'libc++-12-dev'
E: Unable to locate package libc++abi-12-dev
E: Couldn't find any package by regex 'libc++abi-12-dev'
@xxEoD2242
Copy link

I would recommend bumping to gcc or clang 14. Not sure if 24.04 has gcc `14 in it.

@xxEoD2242
Copy link

Let me know if that solves it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants