LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 10-21-2022, 12:14 PM   #1
LisaMarie78
LQ Newbie
 
Registered: Oct 2022
Posts: 12

Rep: Reputation: 0
Urgent cannot upgrade my Linux


Hello I am trying to upgrade my Linux and I cannot I get this saying
E:Malformed line 1 in source list etc//apt/sources.list (type)
E: The list of sources could not be read.sudo

I do not know what to do I tried everything I am ready to throw this stupid chromebook to the garbage i do not like this at all please someone help.

I have the Acer Chromebook spin 11 and I hate this thing.
 
Old 10-21-2022, 12:39 PM   #2
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,599

Rep: Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546

The error is telling you the problem - your sources.list has an incorrect line 1.

(Note, the path is "/etc/apt/sources.list" not "etc//apt/sources.list" - please take extra care when copying error messages.)

Open the file "/etc/apt/sources.list" in a text editor - if the issue is not obvious, copy-paste the contents into a post inside "[code]..[/code]" tags.

You can see an example Debian sources.list here: https://wiki.debian.org/SourcesList#Example_sources.list

Other distros will have different values but the same structure to the lines.

It's always a good idea to create a backup before modifying such files.

 
Old 10-21-2022, 04:48 PM   #3
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,111
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
Hmmmm, You say you have Acer Chromebook Flip 11.

Has It been hacked so as to run something Debian based instead of ChromeOS.

Because ChromeOS has reached end of life for updates in ChromeOS for that model acer.


Citation: https://www.pcworld.com/article/3933...es-matter.html

Yours expired in June 2024. I am only answering because I am on my HP Chromebook X360 which I just updated.
ChromeOS handles this of course kinda like Windows. Keeps you out of the loop.

If by chance someone shoe horned a Debian distro on your chromebook.
Try this command in terminal so we get some info on your installation.

Code:
inxi -Fxz -r
I have installed inxi in Termux in my chromebook. So here is my example.
https://i.ibb.co/y4dqfv9/Screenshot-...4-42-09-PM.png

Termux does not use copy and paste. Sorry the screenshot is a bit small. Use the CTRL + keys to blow up the picture.
That will blur it a little though.
 
Old 10-21-2022, 05:24 PM   #4
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,599

Rep: Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546
Quote:
Originally Posted by rokytnji View Post
Hmmmm, You say you have Acer Chromebook Flip 11.
No, they said they have an "Acer Chromebook spin 11"

Quote:
Yours expired in June 2024.
Huh? Has one of us fallen through a time portal from two-plus years into the future...?

Quote:
Try this command in terminal so we get some info on your installation.
Code:
inxi -Fxz -r
Inxi doesn't give any information about if/why sources.list is corrupted. (It seems to simply ignore invalid entries.)

 
Old 10-22-2022, 08:29 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
Quote:
Originally Posted by LisaMarie78 View Post
E:Malformed line 1 in source list etc//apt/sources.list (type)
So can you post this file?
 
Old 10-22-2022, 04:33 PM   #6
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,111
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
My bad. Sorry.

I guess I'll be no help in this thread. At least I tried. @ the OP. Don't listen to me.

Edit: https://www.techrepublic.com/videos/...ns-linux-apps/

Last edited by rokytnji; 10-24-2022 at 08:22 PM.
 
Old 11-12-2022, 11:08 PM   #7
LisaMarie78
LQ Newbie
 
Registered: Oct 2022
Posts: 12

Original Poster
Rep: Reputation: 0
Unhappy

Quote:
Originally Posted by boughtonp View Post
No, they said they have an "Acer Chromebook spin 11"


Huh? Has one of us fallen through a time portal from two-plus years into the future...?


Inxi doesn't give any information about if/why sources.list is corrupted. (It seems to simply ignore invalid entries.)

Current version is Debian GNU/Linux 10 and I cannot even upgrade it because of Linux..
 
Old 11-13-2022, 02:17 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
Quote:
Originally Posted by LisaMarie78 View Post
Current version is Debian GNU/Linux 10 and I cannot even upgrade it because of Linux..
I'm afraid I don't understand this sentence. From the other hand without additional info we can't help you.
http://catb.org/~esr/faqs/smart-ques...html#beprecise
 
1 members found this post helpful.
Old 11-13-2022, 03:47 AM   #9
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,503

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
I do not know what to do I tried everything
No, you didn't because if you had followed the suggestion in post 2 you would have resolved the problem. You need to open that file in a text editor with root (sudo) privileges and either comment out the first line by placing a # at the beginning of the line or deleting it.

Quote:
Current version is Debian GNU/Linux 10 and I cannot even upgrade it because of Linux..
You don't seem to understand that Debian is one version (distribution) of Linux of which there are hundreds.
 
Old 11-13-2022, 04:26 AM   #10
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,490

Rep: Reputation: Disabled
Quote:
E:Malformed line 1 in source list etc//apt/sources.list (type)
E: The list of sources could not be read.sudo
You have to correct this - you will need to use sudo (or be the root operator).

It is the file /etc/apt/sources.list, which is needed to be able to update/upgrade your system.
 
Old 11-13-2022, 07:23 AM   #11
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,573
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
Lisa Marie, please don't panic. Linux is not harder to use than Windows, it's just different. One of those differences is that all the configuration is in text files (mostly in the /etc folder), not in an inaccessible binary registry. And if any of them goes wrong, it can be edited and corrected just like any other bit of text. Another difference is that most Linux utilities give very informative error messages when they go wrong. The message you saw is a case in point. It tells you precisely which file has got corrupted. /etc/apt/sources.list is the file where the addresses (URLs) of the Debian software repositories are stored. If one of these isn't a valid URL, apt can't download anything from that site.

Obviously you cannot be expected to edit this file unless you know what it is supposed to look like. That's why several people here have told you to post the file itself so that we can all have a look at it and see what's wrong with it.

If it's any comfort to you, I had an almost identical problem after a new install of another member of the Debian family. I didn't know what was wrong with the addresses in the file, so I posted the whole file here. And the friendly people here told me what those addresses were supposed to look like. I edited them all and apt worked again.

Last edited by hazel; 11-13-2022 at 07:24 AM.
 
1 members found this post helpful.
Old 11-14-2022, 02:58 AM   #12
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,972
Blog Entries: 32

Rep: Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465Reputation: 1465
LisaMarie78,

The solution to your problem is outlined in post #2.

You need to open the file, /etc/apt/sources.list in Terminal with the command:

Code:
sudo nano /etc/apt/sources.list
Debian’s default text editor is nano.

If you are not familiar with nano, here are two links which may be helpful:

https://www.hostinger.co.uk/tutorial...no-text-editor

https://www.tecmint.com/learn-nano-t...itor-in-linux/

Personally I would install gedit, since it is much simpler to use:

Code:
sudo apt install gedit
Of course this probably will not work because of the problem with your sources list and therefore you will be obliged to use nano in the first instance.

Once you have opened the sources list using:

Code:
sudo nano /etc/apt/sources.list
take a screenshot (Print Scrn key) and then close the file using the combination of Ctrl + X.

Then post the screenshot on here using Additional items > Attach files (below the main text box).

Last edited by beachboy2; 11-14-2022 at 06:12 AM.
 
Old 11-21-2022, 01:31 AM   #13
LisaMarie78
LQ Newbie
 
Registered: Oct 2022
Posts: 12

Original Poster
Rep: Reputation: 0
I tried everything..:(

this is what I I get I attached a screen shot of what it says when I type something in sorry that I cannot figure it out even though you guys told me how to do it sorry that I can not figure this out this Chromebook is new thing for me and I do not like it at all.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2022-11-21 2.23.20 AM.png
Views:	22
Size:	39.5 KB
ID:	39896  
 
Old 11-21-2022, 01:37 AM   #14
LisaMarie78
LQ Newbie
 
Registered: Oct 2022
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by fatmac View Post
you have to correct this - you will need to use sudo (or be the root operator).

It is the file /etc/apt/sources.list, which is needed to be able to update/upgrade your system.
it will not let me
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2022-11-21 2.23.20 AM.png
Views:	15
Size:	39.5 KB
ID:	39897  
 
Old 11-21-2022, 01:39 AM   #15
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
you need to run: cat /etc/apt/sources.list (and post the output)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
boot sector and lilo collapse !!!!! URGENT URGENT URGEN !!!!! frelihm Linux - Software 21 12-02-2009 10:21 AM
Urgent Question Regarding Urgent Questions! Need Help Now! Crashed_Again LQ Suggestions & Feedback 11 10-17-2007 08:07 PM
Urgent..Im Having A Nightmare..Urgent!!!! midgcool Linux - Software 41 11-30-2004 10:19 AM
Urgent Urgent !!!! Mozilla Keeps All Your Deleted Emails !!!! odin123 Linux - Software 2 01-31-2004 02:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 12:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration