no possible to repair thru boot-repair

Asked by norihiro terazawa

hello, im beginner in linux, and anyway dont know mucch in the world of PC.
so please help me step by step
herei started to use ubuntu 12.10 thru windows installer before few days.
worked quite good but then showed sign of error on right side up on a bar.
since then i cant upload, install software, at least, doesnt ,, even web works less.

i tried to reboot and repair thru boot-repair but it says repaired and nothing is solved.

this is what i can find us error message, always everywhere.

E:Malformed line 3 in source list /etc/apt/sources.list (dist parse), E:The list of sources could not be read., E:The package lists or status file could not be parsed or opened.

plz give me hands, i m lost without knowing what else i can do.........

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#1

On 10/23/2012 10:01 AM, norihiro terazawa wrote:
> New question #212047 on Ubuntu:
> https://answers.launchpad.net/ubuntu/+question/212047
>
> hello, im beginner in linux, and anyway dont know mucch in the world of PC.
> so please help me step by step
> herei started to use ubuntu 12.10 thru windows installer before few days.
> worked quite good but then showed sign of error on right side up on a bar.
> since then i cant upload, install software, at least, doesnt ,, even web works less.
>
> i tried to reboot and repair thru boot-repair but it says repaired and nothing is solved.
>
> this is what i can find us error message, always everywhere.
>
> E:Malformed line 3 in source list /etc/apt/sources.list (dist parse), E:The list of sources could not be read., E:The package lists or status file could not be parsed or opened.
>
> plz give me hands, i m lost without knowing what else i can do.........
>
Open a terminal and execute bellow commands with order and CAREFULLY.
Copy-paste from here

sudo rm -rf /var/lib/apt/lists/*

sudo apt-get update

sudo apt-get dist-upgrade

Thanks

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

You don't need boot repair, you have a bad line in /etc/apt/sources.list and nothing more.

Can you give the output of:

head /etc/apt/sources.list

Thanks

Revision history for this message
norihiro terazawa (ronkou-trzw) said :
#3

nikth, thank u for post. i tried but it didnt solve. i attach whole what terminal answered.(i mean except title)

 sudo rm -rf /var/lib/apt/lists/*

 sudo apt-get update
E: Malformed line 3 in source list /etc/apt/sources.list (dist parse)
E: The list of sources could not be read.
 sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

do u have any more ideas?

Revision history for this message
norihiro terazawa (ronkou-trzw) said :
#4

actionparsnip, thank u for reply. it still didnt solve. i attach what terminal said.

deb http://archive.ubuntu.com/ubuntu/ quantal main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ quantal-security main restricted universe multiverse
deb http://archive.canonical.com/ quantalparter
deb-src http://archive.canonical.com/ quantalparter
deb http://archive.canonical.com/ quantal partner
deb-src http://archive.canonical.com/ quantal partner
deb http://archive.ubuntu.com/ubuntu/ quantal-updates main restricted universe multiverse

how can i fix otherwise?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

Can you not spot the issue, read your last post carefully.

If you cannot spot it, I will give clues. You will need to run:

gksudo gedit /etc/apt/sources.list

To get read access

Revision history for this message
norihiro terazawa (ronkou-trzw) said :
#6

another things just happend.
 it shows
sorry, Ubuntu 12.10 has experience an internal error.
if you notice further problems, try restarting the computer.

in text box
executable Path.
 /usr/lib/update-notifier/apt_check.py

should i restart and it will solve????

Revision history for this message
norihiro terazawa (ronkou-trzw) said :
#7

even i cannot send error report

An error occurred while attempting to process this problem report:

[Errno 13] Permission denied: '//var/lib/apt/lists/partial'

Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#8

Please give the results of

find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

copy-paste the command from here to your terminal and press [Enter] .

Post back Full results.

Thanks

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#9

did you change the line:

deb http://archive.canonical.com/ quantalparter

Revision history for this message
norihiro terazawa (ronkou-trzw) said :
#10

>nikth

here i attach what u asked, and i will wait for ur replay

     1 deb http://archive.ubuntu.com/ubuntu/ quantal main restricted universe multiverse
     2 deb http://security.ubuntu.com/ubuntu/ quantal-security main restricted universe multiverse
     3 deb http://archive.canonical.com/ quantalparter
     4 deb-src http://archive.canonical.com/ quantalparter
     5 deb http://archive.canonical.com/ quantal partner
     6 deb-src http://archive.canonical.com/ quantal partner
     7 deb http://archive.ubuntu.com/ubuntu/ quantal-updates main restricted universe multiverse

/etc/apt/sources.list.d/skype-wrapper-ppa-quantal.list

     1 deb http://ppa.launchpad.net/skype-wrapper/ppa/ubuntu quantal main
     2 deb-src http://ppa.launchpad.net/skype-wrapper/ppa/ubuntu quantal main

/etc/apt/sources.list.d/medibuntu.list

     1 ## Please report any bug on https://bugs.launchpad.net/medibuntu/
     2 deb http://packages.medibuntu.org/ quantal free non-free #Medibuntu - Ubuntu 12.10 "quantal quetzal"
     3 # deb-src http://packages.medibuntu.org/ quantal free non-free #Medibuntu (source) - Ubuntu 12.10 "quantal quetzal"

/etc/apt/sources.list.d/yannubuntu-boot-repair-quantal.list

     1 deb http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu quantal main
     2 deb-src http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu quantal main

/etc/apt/sources.list.d/nae-team-ppa-quantal.list

     1 deb http://ppa.launchpad.net/nae-team/ppa/ubuntu quantal main
     2 deb-src http://ppa.launchpad.net/nae-team/ppa/ubuntu quantal main

Revision history for this message
norihiro terazawa (ronkou-trzw) said :
#11

>actionparship
what do u mean spot? im sorry that im such lack of idea in field. it might be silly for you, but i would be happy if u can direct me one step to the another with instruction of what exactly do......

i dont think that i changed the line.....

thank you for your help

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#12

Yes but you can spot patterns, right? Don't line 3 and line 4 of the top block of your output look different to the others to you?

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#13

To transfer the hints given previously into step-by-step instructions:

Open a terminal window by pressing the ctr-alt-t key combination

In the window that opens enter the command

gksudo gedit /etc/apt/sources.list
and press enter.
Enter your password when asked so, and an editor window will open with your sources.list loaded.

Scroll down to the third line and delete the third and fourth lines that read
"deb http://archive.canonical.com/ quantalparter
deb-src http://archive.canonical.com/ quantalparter"

save the file and close the editor.

That's it.

Revision history for this message
norihiro terazawa (ronkou-trzw) said :
#14

Thanks Manfred Hampl, that solved my question.

Revision history for this message
norihiro terazawa (ronkou-trzw) said :
#15

thank u for everyone, for kind and great help.

after all i understand that you all were trying to explain the same issue.
and excuse for my lack of understanding in this field.

thank u

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#16

You'll learn with time.