Quote:
E: Malformed line 1 in source list /etc/apt/sources.list (type)
|
I guess line 1 is the first line that does not start with a "#".
Code:
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
It does not look malformed to me, but the server can't be reached.
The hint "type" seems to point to the first word on the line (deb).
Maybe there's some invisible characters there? Maybe you edited the file on a Windows machine (that uses incompatible line endings)?
Please make an effort to use the command line for this one & show us commands exactly as entered & their full output, in CODE tags.