sources.list file problem in ubuntu 9.04

Asked by weboye

I have edited sources.list file while i was installing ruby or maybe java 1.5

The following error is coming:
------
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:Invalid record in the preferences file, no Package header'
-------
Help me at urgent by providing a clean sources.list file for jaunty or guide me to correct this.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Philip Muškovac (yofel) said :
#1

Could you please post your sources.list here so that we can test what causes the problem? (And if it's really sources list related)

Revision history for this message
weboye (mindtrades) said :
#2

sources.list.
 deb http://gb.archive.ubuntu.com/ubuntu/ hardy restricted main multiverse universe
 deb-src http://gb.archive.ubuntu.com/ubuntu/ hardy restricted main multiverse universe

this is what is present in my sources.list. file..

I just dont understand whats wrong..
please guide me asap as things are really stuck.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#3

Please put this rows into your Ubuntu 9.04 Jaunty /etc/apt/sources.list file

deb http://archive.ubuntu.com/ubuntu/ jaunty restricted multiverse universe main
deb-src http://archive.ubuntu.com/ubuntu/ jaunty restricted multiverse universe main

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

deb http://archive.ubuntu.com/ubuntu/ jaunty-updates restricted multiverse universe main
deb-src http://archive.ubuntu.com/ubuntu/ jaunty-updates restricted multiverse universe main

Hope this helps

Revision history for this message
weboye (mindtrades) said :
#4

i tried this but the problem is still the same..

Revision history for this message
Steven Danna (ssd7) said :
#5

If it exists, can you provide the contents of the following file:

/etc/apt/preferences

Revision history for this message
weboye (mindtrades) said :
#6

 This is the content of preferences file:

1. Package: ruby
   2. Pin: release a=hardy
   3. Pin-Priority: 900
   4.
   5. Package: ruby1.8
   6. Pin: release a=hardy
   7. Pin-Priority: 900
   8.
   9. Package: libruby1.8
  10. Pin: release a=hardy
  11. Pin-Priority: 900
  12.
  13. Package: rdoc1.8
  14. Pin: release a=hardy
  15. Pin-Priority: 900
  16.
  17. Package: ri1.8
  18. Pin: release a=hardy
  19. Pin-Priority: 900
  20.
  21. Package: libgtk2-ruby1.8
  22. Pin: release a=hardy
  23. Pin-Priority: 900
  24.
  25. Package: libdbd-sqlite3-ruby1.8
  26. Pin: release a=hardy
  27. Pin-Priority: 900
  28.
  29. Package: libopenssl-ruby1.8
  30. Pin: release a=hardy
  31. Pin-Priority: 900
  32.
  33. Package: libsqlite3-ruby1.8
  34. Pin: release a=hardy
  35. Pin-Priority: 900
  36.
  37. Package: ruby1.8-dev
  38. Pin: release a=hardy
  39. Pin-Priority: 900
  40.
  41. Package: libdbi-ruby1.8
  42. Pin: release a=hardy
  43. Pin-Priority: 900
  44.
  45. Package: libatk1-ruby1.8
  46. Pin: release a=hardy
  47. Pin-Priority: 900
  48.
  49. Package: libpango1-ruby1.8
  50. Pin: release a=hardy
  51. Pin-Priority: 900
  52.
  53. Package: libatk1-ruby1.8
  54. Pin: release a=hardy
  55. Pin-Priority: 900
  56.
  57. Package: libgdk-pixbuf2-ruby1.8
  58. Pin: release a=hardy
  59. Pin-Priority: 900
  60.
  61. Package: libglib2-ruby1.8
  62. Pin: release a=hardy
  63. Pin-Priority: 900
  64.
  65. Package: libcairo-ruby1.8
  66. Pin: release a=hardy
  67. Pin-Priority: 900
  68.
  69. Package: irb1.8
  70. Pin: release a=hardy
  71. Pin-Priority: 900
  72.
  73. Package: libreadline-ruby1.8
  74. Pin: release a=hardy
  75. Pin-Priority: 900
  76.
  77. Package: libncurses-ruby1.8
  78. Pin: release a=hardy
  79. Pin-Priority: 900

Package: ruby
Pin: release a=hardy
Pin-Priority: 900

Package: ruby1.8
Pin: release a=hardy
Pin-Priority: 900

Package: libruby1.8
Pin: release a=hardy
Pin-Priority: 900

Package: rdoc1.8
Pin: release a=hardy
Pin-Priority: 900

Package: ri1.8
Pin: release a=hardy
Pin-Priority: 900

Package: libgtk2-ruby1.8
Pin: release a=hardy
Pin-Priority: 900

Package: libdbd-sqlite3-ruby1.8
Pin: release a=hardy
Pin-Priority: 900

Package: libopenssl-ruby1.8
Pin: release a=hardy
Pin-Priority: 900

Package: libsqlite3-ruby1.8
Pin: release a=hardy
Pin-Priority: 900

Package: ruby1.8-dev
Pin: release a=hardy
Pin-Priority: 900

Package: libdbi-ruby1.8
Pin: release a=hardy
Pin-Priority: 900

Package: libatk1-ruby1.8
Pin: release a=hardy
Pin-Priority: 900

Package: libpango1-ruby1.8
Pin: release a=hardy
Pin-Priority: 900

Package: libatk1-ruby1.8
Pin: release a=hardy
Pin-Priority: 900

Package: libgdk-pixbuf2-ruby1.8
Pin: release a=hardy
Pin-Priority: 900

Package: libglib2-ruby1.8
Pin: release a=hardy
Pin-Priority: 900

Package: libcairo-ruby1.8
Pin: release a=hardy
Pin-Priority: 900

Package: irb1.8
Pin: release a=hardy
Pin-Priority: 900

Package: libreadline-ruby1.8
Pin: release a=hardy
Pin-Priority: 900

Package: libncurses-ruby1.8
Pin: release a=hardy
Pin-Priority: 900

Revision history for this message
Steven Danna (ssd7) said :
#7

Unless you are certain you still want ruby pinned to the release you have it pinned to it. You can simply delete your preference file (sudo rm /etc/apt/preferences). If you do want it pinned, try removing all the lines with numbers in front of them from the /etc/apt/preferences file.

Revision history for this message
Amaresh Ch Das (amareshchandradas2005) said :
#8

# deb cdrom:[Ubuntu 8.04 _Hardy Heron_ - Release amd64 (20080423)]/ hardy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

#deb http://in.archive.ubuntu.com/ubuntu/ hardy main restricted
#deb-src http://in.archive.ubuntu.com/ubuntu/ hardy main restricted

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

## 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
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://in.archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://in.archive.ubuntu.com/ubuntu/ hardy universe
deb http://in.archive.ubuntu.com/ubuntu/ hardy-updates universe
deb-src http://in.archive.ubuntu.com/ubuntu/ hardy-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://in.archive.ubuntu.com/ubuntu/ hardy multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://in.archive.ubuntu.com/ubuntu/ hardy-updates multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ hardy-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://in.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ hardy-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 hardy partner
deb-src http://archive.canonical.com/ubuntu hardy partner

deb http://security.ubuntu.com/ubuntu hardy-security main restricted
deb-src http://security.ubuntu.com/ubuntu hardy-security main restricted
deb http://security.ubuntu.com/ubuntu hardy-security universe
deb-src http://security.ubuntu.com/ubuntu hardy-security universe
deb http://security.ubuntu.com/ubuntu hardy-security multiverse
deb http://archive.ubuntu.com/ubuntu/ feisty main universe restricted multiverse
deb-src http://archive.ubuntu.com/ubuntu/ feisty main universe restricted multiverse #Added by software-properties
deb-src http://security.ubuntu.com/ubuntu hardy-security multiverse

deb http://archive.ubuntu.com/ubuntu intrepid-backports main universe multiverse restricted

deb http://archive.ubuntu.com/ubuntu/ jaunty restricted multiverse universe main
deb-src http://archive.ubuntu.com/ubuntu/ jaunty restricted multiverse universe main

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

deb http://archive.ubuntu.com/ubuntu/ jaunty-updates restricted multiverse universe main
deb-src http://archive.ubuntu.com/ubuntu/ jaunty-updates restricted multiverse universe main

Revision history for this message
Amaresh Ch Das (amareshchandradas2005) said :
#9
Revision history for this message
Amaresh Ch Das (amareshchandradas2005) said :
#10

Can you help with this problem?

Provide an answer of your own, or ask weboye for more information if necessary.

To post a message you must log in.