An unresolvable problem occurred while initializing the package information.

Asked by Mclayne

I have this problem

An unresolvable problem occurred while initializing the package information.
Please report this bug against the 'update-manager' package and include the following error message:
'E:Type 'restricted' is not known on line 14 in source list /etc/apt/sources.list, E:The list of sources could not be read.'

HERE IS THE SOURCES LIST.

#deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ - Release i386 (20081029.5)]/
#intrepid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade
# to newer versions of the distribution.

deb http://pl.archive.ubuntu.com/ubuntu/ intrepid main restricted
deb-src http://pl.archive.ubuntu.com/ubuntu/ intrepid main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://pl.archive.ubuntu.com/ubuntu/ intrepid-updates main
restricted deb-src http://pl.archive.ubuntu.com/ubuntu/ intrepid-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://pl.archive.ubuntu.com/ubuntu/ intrepid universe deb-src
http://pl.archive.ubuntu.com/ubuntu/ intrepid universe deb
http://pl.archive.ubuntu.com/ubuntu/ intrepid-updates universe deb-src
http://pl.archive.ubuntu.com/ubuntu/ intrepid-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://pl.archive.ubuntu.com/ubuntu/ intrepid multiverse deb-src
http://pl.archive.ubuntu.com/ubuntu/ intrepid multiverse deb
http://pl.archive.ubuntu.com/ubuntu/ intrepid-updates multiverse deb-src
http://pl.archive.ubuntu.com/ubuntu/ intrepid-updates multiverse

## Uncomment the following two lines to add software from the
## 'backports' repository. 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://pl.archive.ubuntu.com/ubuntu/ intrepid-backports main
# restricted universe multiverse deb-src
# http://pl.archive.ubuntu.com/ubuntu/ intrepid-backports main
# restricted universe 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 intrepid partner deb-src
# http://archive.canonical.com/ubuntu intrepid partner

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

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Steve
Solved:
Last query:
Last reply:
Revision history for this message
Mclayne (michaelpecak) said :
#1

COULD ANYONE HELP ME OUT PLZ. THX

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#2

Hi,

I think you need to correct your sources.list like this:

Change the following block:

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

into the following block:

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

Notice that "restricted" - after correcting - is not on the same line as deb-src anymore

I think having restricted right in front of "deb-src" caused the error. "restricted" can only be at the END of a line in sources.list, not at the beginning.

Hope this helps,

Regards,

Mark

Revision history for this message
adsadasda (asdsadasdsa-deactivatedaccount) said :
#3

i think that your linux is right about the errors because your sources.list it's not well formed.it should look like this :

# deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ - Release i386 (20081029.5)]/ intrepid main restricted
deb http://gr.archive.ubuntu.com/ubuntu/ intrepid main restricted
deb-src http://gr.archive.ubuntu.com/ubuntu/ intrepid main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://gr.archive.ubuntu.com/ubuntu/ intrepid-updates main restricted
deb-src http://gr.archive.ubuntu.com/ubuntu/ intrepid-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://gr.archive.ubuntu.com/ubuntu/ intrepid universe
deb-src http://gr.archive.ubuntu.com/ubuntu/ intrepid universe
deb http://gr.archive.ubuntu.com/ubuntu/ intrepid-updates universe
deb-src http://gr.archive.ubuntu.com/ubuntu/ intrepid-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://gr.archive.ubuntu.com/ubuntu/ intrepid multiverse
deb-src http://gr.archive.ubuntu.com/ubuntu/ intrepid multiverse
deb http://gr.archive.ubuntu.com/ubuntu/ intrepid-updates multiverse
deb-src http://gr.archive.ubuntu.com/ubuntu/ intrepid-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## 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://gr.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
# deb-src http://gr.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe 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 intrepid partner
deb-src http://archive.canonical.com/ubuntu intrepid partner

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

## Medibuntu - Ubuntu 8.10 "intrepid ibex"
## Please report any bug on https://bugs.launchpad.net/medibuntu/
deb http://packages.medibuntu.org/ intrepid free non-free
deb-src http://packages.medibuntu.org/ intrepid free non-free

# Google software repository
deb http://dl.google.com/linux/deb/ stable non-free

and not this syntax that you have
restricted deb-src http://pl.archive.ubuntu.com/ubuntu/ intrepid-updates (which is actually the error that it finds first!!!!)

Revision history for this message
Tom (tom6) said :
#4

Ok, i'm not sure about this but is your system working fine apart from not being able to update? I also wanted to check that you are using 8.10?

errr, i have just looked up my sources list and it does look a little different. The lines at the end

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

have done some weird wrap around thing which looks all wrong compared to my working sources list and the backup from before adding medibuntu stuff to my 8.04. Try changing to

deb http://security.ubuntu.com/ubuntu intrepid-security main restricted

deb-src http://security.ubuntu.com/ubuntu intrepid-security main restricted

deb http://security.ubuntu.com/ubuntu intrepid-security universe

deb-src http://security.ubuntu.com/ubuntu intrepid-security universe

deb http://security.ubuntu.com/ubuntu intrepid-security multiverse

deb-src http://security.ubuntu.com/ubuntu intrepid-security multiverse

putting spaces between the lines should be fine and makes it a lot clearer imo. I hope this helps!
Good luck and regards from
Tom :)

Revision history for this message
Best Steve (stupendoussteve-deactivatedaccount) said :
#5

It looks like the linebreaks in your sources.list may be misplaced (unless they were messed up just from pasting here, please correct me if that is the case). For example:

deb http://pl.archive.ubuntu.com/ubuntu/ intrepid-updates main
restricted deb-src http://pl.archive.ubuntu.com/ubuntu/ intrepid-updates
main restricted

Should be:
deb http://pl.archive.ubuntu.com/ubuntu/ intrepid-updates main restricted
deb-src http://pl.archive.ubuntu.com/ubuntu/ intrepid-updates main restricted

If this truly is the problem, your entire sources.list should read:

#deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ - Release i386 (20081029.5)]/ intrepid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade
# to newer versions of the distribution.

deb http://pl.archive.ubuntu.com/ubuntu/ intrepid main restricted
deb-src http://pl.archive.ubuntu.com/ubuntu/ intrepid main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://pl.archive.ubuntu.com/ubuntu/ intrepid-updates main restricted
deb-src http://pl.archive.ubuntu.com/ubuntu/ intrepid-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://pl.archive.ubuntu.com/ubuntu/ intrepid universe
deb-src http://pl.archive.ubuntu.com/ubuntu/ intrepid universe
deb http://pl.archive.ubuntu.com/ubuntu/ intrepid-updates universe
deb-src http://pl.archive.ubuntu.com/ubuntu/ intrepid-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://pl.archive.ubuntu.com/ubuntu/ intrepid multiverse
deb-src http://pl.archive.ubuntu.com/ubuntu/ intrepid multiverse
deb http://pl.archive.ubuntu.com/ubuntu/ intrepid-updates multiverse
deb-src http://pl.archive.ubuntu.com/ubuntu/ intrepid-updates multiverse

## Uncomment the following two lines to add software from the
## 'backports' repository. 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://pl.archive.ubuntu.com/ubuntu/ intrepid-backports main
# restricted universe multiverse deb-src
# http://pl.archive.ubuntu.com/ubuntu/ intrepid-backports main
# restricted universe 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 intrepid partner deb-src
# http://archive.canonical.com/ubuntu intrepid partner

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

Updating the file through the Software Sources (System>Administration>Software Sources) application should prevent issues like this.

Revision history for this message
Tom (tom6) said :
#6

Rofls. It's like buses lol. Nothing for ages and then suddenly 3 at the same time! I'm quite impressed that my answer looks roughly like the others in the way that i was worried about :)

Previous questions and my own past experience in LaunchPad would tend to make me go with Mark's answer first. He's usually excellent at this sort of thing. Stellios and Steven are quite new here (but seem excellent too) and i was only guessing.

Good luck, hope this helps!
Regards from
Tom :)

Revision history for this message
Tom (tom6) said :
#7

Ok, now i've looked in more detail and think Steven's answer is the right one here? So go up to the top taskbar and click on

Applications - Accessories - Terminal

and type in

sudo gedit /etc/apt/sources.list

This should now allow you to save the file after you've copied and pasted Steven's answer in to replace what you have there at the moment.

Good luck and regards from
Tom :)

Revision history for this message
Steve (stupendoussteve-deactivatedaccount) said :
#8

The answer from stelios looks correct as well. I didn't correct the linebreaks within the comments and he did. Should not affect functionality unless you uncomment them without fixing them.

Revision history for this message
Mclayne (michaelpecak) said :
#9

Thanks Steven S, that solved my question.

Revision history for this message
Tom (tom6) said :
#10

Brilliant, nicely done!! :)
I think taking a hint from Stelios and adding the Medibuntu packages and repositories by going through the checklist
https://help.ubuntu.com/community/Medibuntu
would be a good plan. this should bring almost all your multimedia apps up to a good standard.

Good luck and regards from
Tom :)