Sunday, May 5, 2024
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 5489  / 3 Years ago, wed, june 2, 2021, 8:28:49

I am currently using Ubuntu 18.04, and I need gcc 4.8 for MATLAB. So I tried to install gcc-4.8 using


$ sudo apt-get install gcc-4.8
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_4.15.0-117.118_amd64.deb 404 Not Found [IP: 2403:8940:3:1::f 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

so I ran the command


sudo apt-get update 

I didn't show any error but running gcc version command gave this


$ gcc -v
Command 'gcc' not found, but can be installed with:
sudo apt install gcc

previously I used to have 7.5 but now it is not.


More From » software-installation

 Answers
3

Open the terminal and type:


sudo apt install linux-libc-dev 
sudo apt-get -f install
sudo apt install gcc-4.8

[#2632] Thursday, June 3, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
listeerrated

Total Points: 354
Total Questions: 112
Total Answers: 100

Location: Guam
Member since Fri, Jun 18, 2021
3 Years ago
listeerrated questions
;