Malformed entry 1

good day sir please if i type in sudo apt-get update this is what it shows me
E: Malformed entry 1 in list file /etc/apt/sources.list.d/archive_uri-https_repo_mysql_com_apt_ubuntu-jammy.list (absolute Suite Component)
E: The list of sources could not be read.

how do i fix this

1 Like

Line 1 of the file /etc/apt/sources.list.d/archive_uri-https_repo_mysql_com_apt_ubuntu-jammy.list contains an error which needs to be corrected.

We're limited to details you provide (ie we can't know what's in that file, as you provided only the error message); but whomever added it (it's not a standard file, so someone on your system with sudo rights added it) added a incorrectly formatted file. Edit the file and correct the error(s).

Please note; that line was treated as an EOF (End Of File) because of the error, thus other errors in the file could exist; the processor ignored subsequent lines on encountering the first error; so check the whole file for problems.

The directory /etc/ requires elevated or sudo privileges, but use whatever editor you're familiar with (eg. I'd use vim, but others will use nano or ... etc)

4 Likes

Hi, @brm and welcome to the Ubuntu MATE Community!

1 Like

That error tells me that you tried to define a reference for a repository so that you could download a MySQL-related package.

The specification definition for that repository was either

  • incorrectly provided by whichever source you got that from, or
  • you incorrectly transcribed the information that you read somewhere.

Either way, the contents of the file are "malformed" and your package manager cannot correctly parse that information.

The content of the file (1 line or more lines) should be of the form:

You will need to go back to the source to verify/correct the information ... or ... download a corrected file. :slight_smile:

3 Likes