Linux Lite Forums

Software - Support => Updates => Topic started by: Captikus on March 12, 2024, 09:23:55 AM

Title: can't update - Malformed entry
Post by: Captikus on March 12, 2024, 09:23:55 AM
Hi Guys, Greet from new member.
I just installed linux lite yesterday and I got lot of problem when i tried to update. This is the last log when I try to update. sorry for bad english
Thanks for your help :048:
===========================
Install Updates Error log
===========================
Install Updates could not fetch the package cache information lists.
Go to https://www.linuxliteos.com/forums/ and paste the log below into a new or existing thread for assistance.

============ Log ===========

E: Malformed entry 1 in list file /etc/apt/sources.list.d/linuxlite.list (Component)
E: The list of sources could not be read.
Title: Re: can't update - Malformed entry
Post by: stevef on March 12, 2024, 01:24:12 PM
Quote
I got lot of problem when i tried to update
Can you recall what update problems you had and how you tried to fix them ?
The problem posted indicates that at least one of the files needed to update is incorrect which is unusual.

To look at the file that is reported, please open a terminal by pressing 'Ctrl' 'Alt' and 'T' together.

This should open a terminal window.
In the window type or copy and paste in the following command
Code: [Select]
cat /etc/apt/sources.list.d/linuxlite.listFollowed by 'Enter'
This should list the contents of the malformed file

Please copy and paste the results of the command to the thread - this may help working out what happened.

It should be a single line that looks like this
Code: [Select]
deb http://repo.linuxliteos.com/linuxlite/ fluorite main
If you are confident to modify the file, go ahead but if you need help let us know.
Then try update/upgrade again and post back with the results.

If there are multiple issues, it may be quicker to re-install.
Title: Re: can't update - Malformed entry
Post by: Captikus on March 12, 2024, 02:04:47 PM
The problem is the update never complete, I just tried update few time and I change the repository sources.
Code: [Select]
cat /etc/apt/sources.list.d/linuxlite.listIt's the result 
Code: [Select]
deb http://repo.linuxliteos.com/linuxlite/  main I don't know what to do am I need to reinstall all over?
I apricied for every help
sorry for bad english :048:
Thanks
Quote
I got lot of problem when i tried to update
Can you recall what update problems you had and how you tried to fix them ?
The problem posted indicates that at least one of the files needed to update is incorrect which is unusual.

To look at the file that is reported, please open a terminal by pressing 'Ctrl' 'Alt' and 'T' together.

This should open a terminal window.
In the window type or copy and paste in the following command
Code: [Select]
cat /etc/apt/sources.list.d/linuxlite.listFollowed by 'Enter'
This should list the contents of the malformed file

Please copy and paste the results of the command to the thread - this may help working out what happened.

It should be a single line that looks like this
Code: [Select]
deb http://repo.linuxliteos.com/linuxlite/ fluorite main
If you are confident to modify the file, go ahead but if you need help let us know.
Then try update/upgrade again and post back with the results.

If there are multiple issues, it may be quicker to re-install.
Title: Re: can't update - Malformed entry
Post by: stevef on March 12, 2024, 03:09:33 PM
No problem with your English.  I will try to keep the instructions simple.

To try to solve this issue we can try a few things, but if it gets complicated a re-install will be easier.

Confirm which Linux Lite version you installed.
Your user profile says version 6.6 so these instructions are for Linux Lite 6.x, not for 5.x
If you installed version 5.x the edit will require the word 'emerald' instead of 'fluorite'.

Open a terminal as before (Ctrl Alt T)
Type in this command
Code: [Select]
sudo nano /etc/apt/sources.list.d/linuxlite.listFollowed by enter.
When asked, type in your password followed by enter.

The terminal window will become a text editor showing the contents of the file.
You should see this line.

Code: [Select]
deb http://repo.linuxliteos.com/linuxlite/  mainThe cursor should be at at the beginning of the line over the 'd' of deb.

Use arrow keys to move the cursor along the line to the double space between 'linuxlite/' and 'main'
Type in the word
Code: [Select]
fluoriteso that the line looks like this
Code: [Select]
deb http://repo.linuxliteos.com/linuxlite/ fluorite mainMake sure there is a space before and after 'fluorite'

Press Ctrl and X together to exit the editor
You should be asked 'Save modified buffer?'
Press y to confirm you want to save the change.
You should then be asked to confirm the File Name.
Press Enter
You should be returned to a normal terminal.
Check your change with this command
Code: [Select]
cat /etc/apt/sources.list.d/linuxlite.listNow retry the update and post back
Title: Re: can't update - Malformed entry
Post by: Captikus on March 13, 2024, 10:07:42 AM
Hi stevef thanks a lot for your help :54:
I have solved the issue just by change the repository from my country to the US

No problem with your English.  I will try to keep the instructions simple.

To try to solve this issue we can try a few things, but if it gets complicated a re-install will be easier.

Confirm which Linux Lite version you installed.
Your user profile says version 6.6 so these instructions are for Linux Lite 6.x, not for 5.x
If you installed version 5.x the edit will require the word 'emerald' instead of 'fluorite'.

Open a terminal as before (Ctrl Alt T)
Type in this command
Code: [Select]
sudo nano /etc/apt/sources.list.d/linuxlite.listFollowed by enter.
When asked, type in your password followed by enter.

The terminal window will become a text editor showing the contents of the file.
You should see this line.

Code: [Select]
deb http://repo.linuxliteos.com/linuxlite/  mainThe cursor should be at at the beginning of the line over the 'd' of deb.

Use arrow keys to move the cursor along the line to the double space between 'linuxlite/' and 'main'
Type in the word
Code: [Select]
fluoriteso that the line looks like this
Code: [Select]
deb http://repo.linuxliteos.com/linuxlite/ fluorite mainMake sure there is a space before and after 'fluorite'

Press Ctrl and X together to exit the editor
You should be asked 'Save modified buffer?'
Press y to confirm you want to save the change.
You should then be asked to confirm the File Name.
Press Enter
You should be returned to a normal terminal.
Check your change with this command
Code: [Select]
cat /etc/apt/sources.list.d/linuxlite.listNow retry the update and post back