Could not initialize the package information

Asked by Ivo Hampsink

A red marked appeared with the following message:
I am using Ubuntu 10.04 LTS

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 '--2010-12-27' is not known on line 1 in source list /etc/apt/sources.list.d/winehq.list, E:The list of sources could not be read.'

From this point I could not get into update manger any more?
What could be the problem?

the contents of winehq.list is:
--2010-12-27 00:11:11-- http://wine.budgetdedicated.com/apt/sources.list.d/intrepid.list
Resolving wine.budgetdedicated.com... 93.174.106.66
Connecting to wine.budgetdedicated.com|93.174.106.66|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2010-12-27 00:11:11 ERROR 404: Not Found.

thx, Ivo

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Nitesh Mistry (mistrynitesh) said :
#1

Can you please Copy-Paste the contents of the file /etc/apt/sources.list.d/winehq.list ?

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

You could just delete the file and add the wine ppa using the commands at the bottom of this page:
http://www.winehq.org/download/deb

Revision history for this message
Ivo Hampsink (iggejo) said :
#3

hi actionparsnip,
the file winehq.list can not be deleted.
it's a read only file, and permissions are not allowed to modify.
i used the rm command, trying to delete the file?

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

Use
sudo rm /etc/apt/sources.list.d/winehq.list

And it will delete.

Revision history for this message
Ivo Hampsink (iggejo) said :
#5

Hi Nitesh,
thanks for your reply.
I attached below, the content of the file: winehq.list

--2010-12-27 00:11:11-- http://wine.budgetdedicated.com/apt/sources.list.d/intrepid.list
Resolving wine.budgetdedicated.com... 93.174.106.66
Connecting to wine.budgetdedicated.com|93.174.106.66|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2010-12-27 00:11:11 ERROR 404: Not Found.

Revision history for this message
Ivo Hampsink (iggejo) said :
#6

Hi Actionparsnip,
The delete has worked fine now, thanks for this
by adding the wine ppa:ubuntu-wine/ppa, it came with folowing message;

The information about available software is out-of-date
To install software and updates from newly added or changed sources, you have to reload the information about available software.
by RELOAD, following message; ( i have network connection)
Could not download all repository indexes

The repository may no longer be available or could not be contacted because of network problems. If available an older version of the failed index will be used. Otherwise the repository will be ignored. Check your network connection and ensure the repository address in the preferences is correct.

Failed to fetch http://ppa.launchpad.net/user/ppa-name/ubuntu/dists/lucid/main/binary-i386/Packages.gz 404 Not Found
Some index files failed to download, they have been ignored, or old ones used instead.

Not sure if above message is acceptable

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

Ok then click reload. The commandline way is massively easier and what i actually advised..

You need to find where the repo in your previos post is being referenced and remove it

Revision history for this message
Ivo Hampsink (iggejo) said :
#8

problem solved wrt bringing update manager 'alive'.
Removing the file did the trick

messages about repository not found is still there, but I need to have a closed look what's going on...