Unable to install Anything

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Unable to install Anything

Postby Newboy Si on Sun Mar 15, 2009 5:03 pm

Hi There

This week I successfully installed Mint on to my Packard Bell Desktop PC. However I am unable to install anyother software including over 200 updates from the Mint update tool and software from the software manager. I am able to download it all, but when it comes to installation it fails.

The text in the Terminal says that there is something called a "Parse error" in the file. It goes on to say that "Field name It must be followed by colon"

It then says that " E: Sub process /user/bin/dpkg returned an error code (2)

Finally it says that " A package failed to install. Trying to recover".

If anyone could tell me why i am unable to install anything and offer any suggestions of how i could fix this, it would be most helpful.

Thanks....
Newboy Si
Level 1
Level 1
 
Posts: 5
Joined: Sun Mar 15, 2009 4:33 pm

Linux Mint is funded by ads and donations.
 

Re: Unable to install Anything

Postby garda on Sun Mar 15, 2009 10:20 pm

Try to install something from the command line and post here the complete output (especially error messages).
User avatar
garda
Level 5
Level 5
 
Posts: 744
Joined: Sat Aug 30, 2008 2:55 am
Location: /root

Re: Unable to install Anything

Postby Newboy Si on Tue Mar 17, 2009 5:04 am

Hi, thanks for replying.

Im not sure how to use the command line yet, still learning the basics as i am new to linux.

So far I have only used the graphic installer used in Mint update and the software manager.

Thanks anyway.
Newboy Si
Level 1
Level 1
 
Posts: 5
Joined: Sun Mar 15, 2009 4:33 pm

Re: Unable to install Anything

Postby Newboy Si on Tue Mar 17, 2009 11:25 am

Does anybody think that a re-install might help?

I could only just about understand the partitioning section, maybe that had something to do with it?
Newboy Si
Level 1
Level 1
 
Posts: 5
Joined: Sun Mar 15, 2009 4:33 pm

Re: Unable to install Anything

Postby Kaye on Tue Mar 17, 2009 11:59 am

Type this in a terminal:
Code: Select all
sudo apt-get install screenlets

Then type in your password when prompted and hit enter, then paste the output of that so we can see what's going wrong. (To copy from a terminal, highlight everything you want to copy and use ctrl-shift-c)
"In somnis veritas"
Antivirus or defragging?
Image
User avatar
Kaye
Level 5
Level 5
 
Posts: 942
Joined: Fri Feb 06, 2009 5:05 pm
Location: Boston College

Re: Unable to install Anything

Postby Newboy Si on Tue Mar 17, 2009 3:34 pm

Hello

Thanks for picking up ths message.

When I type in "sudo apt-get install screenlets" as shown in the message above, this is what is displayed next in the Terminal:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
localechooser-data
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libtidy-0.99-0 python-chardet python-feedparser python-utidylib
Suggested packages:
python-dcop evolution gnome-orca
The following NEW packages will be installed
libtidy-0.99-0 python-chardet python-feedparser python-utidylib screenlets
0 upgraded, 5 newly installed, 0 to remove and 259 not upgraded.
6 not fully installed or removed.
Need to get 3028kB of archives.
After this operation, 11.4MB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
libtidy-0.99-0 python-chardet python-feedparser python-utidylib screenlets
Authentication warning overridden.
Get: 1 http://archive.ubuntu.com intrepid/main libtidy-0.99-0 20080116cvs-2 [134kB]
Get: 2 http://archive.ubuntu.com intrepid/universe python-chardet 1.0.1-1 [172kB]
Get: 3 http://archive.ubuntu.com intrepid/universe python-feedparser 4.1-10ubuntu1 [114kB]
Get: 4 http://archive.ubuntu.com intrepid/main python-utidylib 0.2-3.2ubuntu1 [8544B]
Get: 5 http://archive.ubuntu.com intrepid/universe screenlets 0.1.2-3ubuntu1 [2599kB]
Fetched 3028kB in 11s (255kB/s)
dpkg: parse error, in file `/var/lib/dpkg/available' near line 28098 package `libmagick10':
field name `It' must be followed by colon
E: Sub-process /usr/bin/dpkg returned an error code (2)
Newboy Si
Level 1
Level 1
 
Posts: 5
Joined: Sun Mar 15, 2009 4:33 pm

Re: Unable to install Anything

Postby garda on Tue Mar 17, 2009 8:35 pm

Seems like the /var/lib/dpkg/available file is corrupted somehow. Try executing these commands in Terminal and see what will happen:
Code: Select all
sudo cp /var/lib/dpkg/available /dpkg.available

Code: Select all
sudo dpkg --clear-avail; sudo apt-get update; sudo apt install screenlets

If the problem keeps appearing randomly, there might have been something wrong with the partition -- or partition table, to be precise -- in which case you will have to delete your ext partition and reinstall Mint.
User avatar
garda
Level 5
Level 5
 
Posts: 744
Joined: Sat Aug 30, 2008 2:55 am
Location: /root

Re: Unable to install Anything

Postby Newboy Si on Thu Mar 19, 2009 5:53 am

Thanks Garda....

The commands you provided have improved things. I was able to install the updates, (Only did levels 1 and 2 since 3,4 and 5 are apparantly untested) and was able to install another program too. However there was one that wouldnt install but I guess that may be for a different reason, and I will have to try some more installations (When i get some time!! :lol:) to check that things are as they should be, but what you suggested certainly helped...

Thanks to all who replied...

Newboy Si
Newboy Si
Level 1
Level 1
 
Posts: 5
Joined: Sun Mar 15, 2009 4:33 pm

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: Bing [Bot] and 27 guests