LinuxForum.Fans
Тема

ошибка в строке 56 (решено)

Автор: aradia4943 17 сообщений 3086 просмотров
#326579

При попытке ввести в консоли sudo apt-get update, "E: искаженная строка 56 в списке источников /etc/apt/sources.list (dist parse)", не читается список источников.
Подскажите пожалуйста чайнику, первый день на убунте, уже проблемы :) В sources.list строка 56 не вызывает особого подозрения и ВРОДЕ верна.

#326580
"aradia4943⇓" написал:
В sources.list строка 56 не вызывает особого подозрения и ВРОДЕ верна.

Так покажите всем весь файл.

#326581
Lupo Alberto написал:
[quote="aradia4943⇓"]В sources.list строка 56 не вызывает особого подозрения и ВРОДЕ верна.

Так покажите всем весь файл.[/quote]

Показать
#deb cdrom:[Ubuntu 13.04 _Raring Ringtail_ - Release i386 (20130424)]/ raring main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ru.archive.ubuntu.com/ubuntu/ raring main restricted
deb-src http://ru.archive.ubuntu.com/ubuntu/ raring main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ru.archive.ubuntu.com/ubuntu/ raring-updates main restricted
deb-src http://ru.archive.ubuntu.com/ubuntu/ raring-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ru.archive.ubuntu.com/ubuntu/ raring universe
deb-src http://ru.archive.ubuntu.com/ubuntu/ raring universe
deb http://ru.archive.ubuntu.com/ubuntu/ raring-updates universe
deb-src http://ru.archive.ubuntu.com/ubuntu/ raring-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ru.archive.ubuntu.com/ubuntu/ raring multiverse
deb-src http://ru.archive.ubuntu.com/ubuntu/ raring multiverse
deb http://ru.archive.ubuntu.com/ubuntu/ raring-updates multiverse
deb-src http://ru.archive.ubuntu.com/ubuntu/ raring-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://ru.archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse
deb-src http://ru.archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu raring-security main restricted
deb-src http://security.ubuntu.com/ubuntu raring-security main restricted
deb http://security.ubuntu.com/ubuntu raring-security universe
deb-src http://security.ubuntu.com/ubuntu raring-security universe
deb http://security.ubuntu.com/ubuntu raring-security multiverse
deb-src http://security.ubuntu.com/ubuntu raring-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu raring partner
# deb-src http://archive.canonical.com/ubuntu raring partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu raring main
deb-src http://extras.ubuntu.com/ubuntu raring main
#326582

Предлагаете вручную строки отсчитывать?
Что-то подсказывает, что это последняя строка и после неё нет перевода строки.

#326583
"Lupo Alberto⇓" написал:
Предлагаете вручную строки отсчитывать?
Что-то подсказывает, что это последняя строка и после неё нет перевода строки.

Покажите вывод команды (используя, кстати, соответсвующие тэги code):

text

cat -nA  /etc/apt/sources.list
#326584
Lupo Alberto написал:
[quote="Lupo Alberto⇓"]Предлагаете вручную строки отсчитывать?
Что-то подсказывает, что это последняя строка и после неё нет перевода строки.

Покажите вывод команды (используя, кстати, соответсвующие тэги code):

text

cat -nA  /etc/apt/sources.list

[/quote]

упс, извините. да, последняя, я, конечно, полный профан, но текстовой редактор насчитывает там всего 56 строк, а по вашей команде вот так:

Показать
1 # deb cdrom:[Ubuntu 13.04 _Raring Ringtail_ - Release i386 (20130424)]/ raring main restricted$
2 $
3 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to$
4 # newer versions of the distribution.$
5 deb http://ru.archive.ubuntu.com/ubuntu/ raring main restricted$
6 deb-src http://ru.archive.ubuntu.com/ubuntu/ raring main restricted$
7 $
8 ## Major bug fix updates produced after the final release of the$
9 ## distribution.$
10 deb http://ru.archive.ubuntu.com/ubuntu/ raring-updates main restricted$
11 deb-src http://ru.archive.ubuntu.com/ubuntu/ raring-updates main restricted$
12 $
13 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu$
14 ## team. Also, please note that software in universe WILL NOT receive any$
15 ## review or updates from the Ubuntu security team.$
16 deb http://ru.archive.ubuntu.com/ubuntu/ raring universe$
17 deb-src http://ru.archive.ubuntu.com/ubuntu/ raring universe$
18 deb http://ru.archive.ubuntu.com/ubuntu/ raring-updates universe$
19 deb-src http://ru.archive.ubuntu.com/ubuntu/ raring-updates universe$
20 $
21 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu $
22 ## team, and may not be under a free licence. Please satisfy yourself as to $
23 ## your rights to use the software. Also, please note that software in $
24 ## multiverse WILL NOT receive any review or updates from the Ubuntu$
25 ## security team.$
26 deb http://ru.archive.ubuntu.com/ubuntu/ raring multiverse$
27 deb-src http://ru.archive.ubuntu.com/ubuntu/ raring multiverse$
28 deb http://ru.archive.ubuntu.com/ubuntu/ raring-updates multiverse$
29 deb-src http://ru.archive.ubuntu.com/ubuntu/ raring-updates multiverse$
30 $
31 ## N.B. software from this repository may not have been tested as$
32 ## extensively as that contained in the main release, although it includes$
33 ## newer versions of some applications which may provide useful features.$
34 ## Also, please note that software in backports WILL NOT receive any review$
35 ## or updates from the Ubuntu security team.$
36 deb http://ru.archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse$
37 deb-src http://ru.archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse$
38 $
39 deb http://security.ubuntu.com/ubuntu raring-security main restricted$
40 deb-src http://security.ubuntu.com/ubuntu raring-security main restricted$
41 deb http://security.ubuntu.com/ubuntu raring-security universe$
42 deb-src http://security.ubuntu.com/ubuntu raring-security universe$
43 deb http://security.ubuntu.com/ubuntu raring-security multiverse$
44 deb-src http://security.ubuntu.com/ubuntu raring-security multiverse$
45 $
46 ## Uncomment the following two lines to add software from Canonical's$
47 ## 'partner' repository.$
48 ## This software is not part of Ubuntu, but is offered by Canonical and the$
49 ## respective vendors as a service to Ubuntu users.$
50 # deb http://archive.canonical.com/ubuntu raring partner$
51 # deb-src http://archive.canonical.com/ubuntu raring partner$
52 $
53 ## This software is not part of Ubuntu, but is offered by third-party$
54 ## developers who want to ship their latest software.$
55 deb http://extras.ubuntu.com/ubuntu raring main$
56 deb http://archive.canonical,com/ partner$
57 # deb-src http://archive.canonical,com/ partner$
58 deb-src http://extras.ubuntu.com/ubuntu raring main$
#326585
"aradia4943⇓" написал:
56 deb http://archive.canonical,com/ partner$

В адресе вместо точки написана запятая.

#326586
"aradia4943⇓" написал:
57 # deb-src http://archive.canonical,com/ partner$

В 57-й строке, кстати, тоже, но, к счастью, она закомментирована :D

#326587
Lupo Alberto написал:
[quote="aradia4943⇓"] 57 # deb-src http://archive.canonical,com/ partner$

В 57-й строке, кстати, тоже, но, к счастью, она закомментирована :D[/quote]

угум, точно, спасибо. вроде в самом листе исправление сохранилось. снова открываю по вашей команде в консоли - там изменение тоже есть. пробую апдейт, снова пишет, что со строкой 56 что-то не то. Я неправильно исправляю?

#326588
"aradia4943⇓" написал:
снова пишет, что со строкой 56 что-то не то.
"aradia4943⇓" написал:
но текстовой редактор насчитывает там всего 56 строк, а по вашей команде вот так:

Такое ощущение, что вы используете разные файлы.

#326589

Да, и вывод консоли лучше не «пересказывать», а показывать — от ввода команды до сообщений об ошибке.

#326593
Lupo Alberto написал:
[quote="aradia4943⇓"]снова пишет, что со строкой 56 что-то не то.
"aradia4943⇓" написал:
но текстовой редактор насчитывает там всего 56 строк, а по вашей команде вот так:

Такое ощущение, что вы ипользуете разные файлы.[/quote]

==, вот я лошара, действительно, сейв открылся. Но в нужном листе последние несколько строк выглядят так; третья снизу, как я понимаю, была с запятой. Сейчас там точка:

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu raring main
deb http://archive.canonical.com/ partner
# deb-src http://archive.canonical,com/ partner
deb-src http://extras.ubuntu.com/ubuntu raring main

#326599

я думаю было бы не плохо еще раз сделать

text
cat -nA  /etc/apt/sources.list

и следом

text
sudo apt-get update

и выхлопы выложить сюда

#326601
sotariz написал:
я думаю было бы не плохо еще раз сделать
text
cat -nA  /etc/apt/sources.list

и следом

text
sudo apt-get update

и выхлопы выложить сюда

Показать
~$ cat -nA /etc/apt/sources.list
1 # deb cdrom:[Ubuntu 13.04 _Raring Ringtail_ - Release i386 (20130424)]/ raring main restricted$
2 $
3 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to$
4 # newer versions of the distribution.$
5 deb http://ru.archive.ubuntu.com/ubuntu/ raring main restricted$
6 deb-src http://ru.archive.ubuntu.com/ubuntu/ raring main restricted$
7 $
8 ## Major bug fix updates produced after the final release of the$
9 ## distribution.$
10 deb http://ru.archive.ubuntu.com/ubuntu/ raring-updates main restricted$
11 deb-src http://ru.archive.ubuntu.com/ubuntu/ raring-updates main restricted$
12 $
13 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu$
14 ## team. Also, please note that software in universe WILL NOT receive any$
15 ## review or updates from the Ubuntu security team.$
16 deb http://ru.archive.ubuntu.com/ubuntu/ raring universe$
17 deb-src http://ru.archive.ubuntu.com/ubuntu/ raring universe$
18 deb http://ru.archive.ubuntu.com/ubuntu/ raring-updates universe$
19 deb-src http://ru.archive.ubuntu.com/ubuntu/ raring-updates universe$
20 $
21 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu $
22 ## team, and may not be under a free licence. Please satisfy yourself as to $
23 ## your rights to use the software. Also, please note that software in $
24 ## multiverse WILL NOT receive any review or updates from the Ubuntu$
25 ## security team.$
26 deb http://ru.archive.ubuntu.com/ubuntu/ raring multiverse$
27 deb-src http://ru.archive.ubuntu.com/ubuntu/ raring multiverse$
28 deb http://ru.archive.ubuntu.com/ubuntu/ raring-updates multiverse$
29 deb-src http://ru.archive.ubuntu.com/ubuntu/ raring-updates multiverse$
30 $
31 ## N.B. software from this repository may not have been tested as$
32 ## extensively as that contained in the main release, although it includes$
33 ## newer versions of some applications which may provide useful features.$
34 ## Also, please note that software in backports WILL NOT receive any review$
35 ## or updates from the Ubuntu security team.$
36 deb http://ru.archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse$
37 deb-src http://ru.archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse$
38 $
39 deb http://security.ubuntu.com/ubuntu raring-security main restricted$
40 deb-src http://security.ubuntu.com/ubuntu raring-security main restricted$
41 deb http://security.ubuntu.com/ubuntu raring-security universe$
42 deb-src http://security.ubuntu.com/ubuntu raring-security universe$
43 deb http://security.ubuntu.com/ubuntu raring-security multiverse$
44 deb-src http://security.ubuntu.com/ubuntu raring-security multiverse$
45 $
46 ## Uncomment the following two lines to add software from Canonical's$
47 ## 'partner' repository.$
48 ## This software is not part of Ubuntu, but is offered by Canonical and the$
49 ## respective vendors as a service to Ubuntu users.$
50 # deb http://archive.canonical.com/ubuntu raring partner$
51 # deb-src http://archive.canonical.com/ubuntu raring partner$
52 $
53 ## This software is not part of Ubuntu, but is offered by third-party$
54 ## developers who want to ship their latest software.$
55 deb http://extras.ubuntu.com/ubuntu raring main$
56 deb http://archive.canonical.com/ partner$
57 # deb-src http://archive.canonical,com/ partner$
58 deb-src http://extras.ubuntu.com/ubuntu raring main$
--
***@****-Ubuntu:~$ sudo apt-get update
[sudo] password:
E: Искажённая строка 56 в списке источников /etc/apt/sources.list (dist parse)
E: Не читается перечень источников.

так?

#326609
Lupo Alberto написал:
[quote="aradia4943⇓"]56 deb http://archive.canonical.com/ partner$

Я с Ubuntu почти не знаком, поэтому...
...эта строка не должна выглядеть так?
deb http://archive.canonical.com/ubuntu partner[/quote]
Даже так

text

deb http://archive.canonical.com/ubuntu <имя_дистрибутива> partner
#326633

Всем спасибо большое :)
казалось бы, элементарно, но черт возьми, новичок бы ни за что в жизни не догадался.
sudo gedit /etc/apt/sources.list, иисправляем и судо апдейт успешно выполняется :З

Войдите или зарегистрируйтесь, чтобы ответить.