Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 1630  / 2 Years ago, thu, may 5, 2022, 9:50:40

I am trying to configure a build engine (Bazel) to use gcc-7. For that I needed links to all of the .deb packages needed.


One of the dependencies of gcc-7 is libatomic1 (>= 7.5.0-6ubuntu2). I realise this is "greater than or equal" but if I wanted to use the original libraries distributed with gcc-7, where could I get them?


For instance, if I do apt download --print-uris libatomic1=7.5.0-6ubuntu2 why is apt telling me :


E: Version '7.5.0-6ubuntu2' for 'libatomic1' was not found

but when I do apt show libgcc-7-dev I see that libatomic1>=7.5.0-6ubuntu2 is listed as a dependency. Where would I be able to find this libatomic1=7.5.0-6ubuntu2?


I was thinking that I might find the library package in http://old-releases.ubuntu.com/ubuntu/pool/main/g/gcc-7/ but it's not there.


More From » apt

 Answers
3

If you check here, you will see that security updates replaced older versions. The older versions are no longer available due to security reasons.


I performed the search at packages.ubuntu.com using "focal" as the distribution.



enter image description here



Another reason the old version is not available is because the standard version of libatomic1 is no longer built from gcc-7. As you can see here, the current version available for Ubuntu Focal is built from gcc-10 (on the right hand side under "Ubuntu Resources").


If you want, you could download the source for gcc-7 and build libatomic1 from there. This is probably not something you would want to do but it is possible.


You can enable sources in your /etc/apt/sources.list file and then run:


sudo apt source gcc-7

or you can download the source from packages.ubuntu.com and on the right hand side, you will see three options to download the source.



enter image description here



Also, it should be noted that if you're going to build something, you will need to download the required build dependencies:


sudo apt build-dep gcc-7

[#792] Thursday, May 5, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
losbu

Total Points: 71
Total Questions: 124
Total Answers: 106

Location: Honduras
Member since Sat, Jul 24, 2021
3 Years ago
losbu questions
Mon, Jan 31, 22, 21:41, 2 Years ago
Tue, Nov 22, 22, 01:27, 1 Year ago
Wed, Jan 25, 23, 00:28, 1 Year ago
Wed, May 11, 22, 08:41, 2 Years ago
;