2

I would like to install gcc-7 on Ubuntu 22.04. I added:

deb [arch=amd64] http://archive.ubuntu.com/ubuntu focal main universe

to /etc/apt/sources.list and ran apt update; apt install g++-7, but it did not work.

click@click:~$ sudo nano /etc/apt/sources.list
click@click:~$ apt update; apt install g++-7
E: Malformed line 1 in source list /etc/apt/sources.list (type)
E: The list of sources could not be read.
E: Malformed line 1 in source list /etc/apt/sources.list (type)
E: The list of sources could not be read.
click@click:~$
Hi-Angel
  • 4,810

0 Answers0