Ubuntu 7.4 (Fiesty Fawn) Problem

Status
Not open for further replies.

Third Eye

gooby pls
I have Ubuntu 7.4 (Fiesty Fawn) installed and i am unable to install softwares,games.etc
When ever i tried to install any application via Synaptic Package Manager then it gives me an error(See the screenshot)

*img123.imageshack.us/img123/209/ubuntuerrorti6.th.jpg

Earlier i was able to install the applications

Please help
 

infra_red_dude

Wire muncher!
jus' execute these commands to clean up:

sudo apt-get autoremove
sudo apt-get update
sudo apt-get upgrade

in that order in terminal and report back.
 

praka123

left this forum longback
@techgenius:eek:pen terminal(menu Applications>accessrs>terminal or right clik on desktop) and try
Code:
sudo apt-get install -f
or
Code:
sudo dpkg --configure  -a
dont open synaptic while doing this in terminal.
also make sure u got a good /etc/apt/sources.list.
 
OP
Third Eye

Third Eye

gooby pls
Still getting the same error when installing softwares (See the screen)


*s2.supload.com/thumbs/default/error-20070706110225.jpg


I think the problem is in usr/bin/dpkg

infra_red_dude said:
ok what errors do u get in terminal when u execute these commands?

Code:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be upgraded:
  update-manager update-manager-core
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/896kB of archives.
After unpacking 4096B of additional disk space will be used.
Do you want to continue [Y/n]? Y
dpkg: parse error, in file `/var/lib/dpkg/available' near line 1:
 field name `r.gz,' must be followed by colon
E: Sub-process /usr/bin/dpkg returned an error code (2)

I get this error when executing sudo apt-get upgrade
 
Last edited:

praka123

left this forum longback
this is a problem with sources.list I think. /var/lib/available is fetched and updated when u do "sudo apt-get update" from terminal.try.if u want u can reinstall dpkg:
Code:
sudo apt-get install dpkg --reinstall
first post the output of "sudo apt-get update" from terminal and post the o/p here.
 
OP
Third Eye

Third Eye

gooby pls
Here is the output of sudo apt-get update

Code:
Ign cdrom://Ubuntu 7.04 _Feisty Fawn_ - Release i386 (20070415) feisty/main Translation-en_US
Ign cdrom://Ubuntu 7.04 _Feisty Fawn_ - Release i386 (20070415) feisty/restricted Translation-en_US
Ign cdrom://Ubuntu 7.04 _Feisty Fawn_ - Release i386 (20070415) feisty/main Translation-en_US
Ign cdrom://Ubuntu 7.04 _Feisty Fawn_ - Release i386 (20070415) feisty/restricted Translation-en_US
Get:1 *archive.ubuntu.com feisty Release.gpg [191B]                      
Get:2 *us.archive.ubuntu.com feisty Release.gpg [191B]                   
Ign *us.archive.ubuntu.com feisty/main Translation-en_US                 
Get:3 *security.ubuntu.com feisty-security Release.gpg [191B]            
Ign *security.ubuntu.com feisty-security/main Translation-en_US          
Get:4 *archive.canonical.com dapper-commercial Release.gpg [191B]        
Ign *archive.canonical.com dapper-commercial/main Translation-en_US      
Hit *archive.ubuntu.com feisty Release                                   
Ign *security.ubuntu.com feisty-security/restricted Translation-en_US    
Ign *security.ubuntu.com feisty-security/universe Translation-en_US      
Ign *security.ubuntu.com feisty-security/multiverse Translation-en_US    
Ign *us.archive.ubuntu.com feisty/restricted Translation-en_US           
Ign *us.archive.ubuntu.com feisty/universe Translation-en_US             
Ign *us.archive.ubuntu.com feisty/multiverse Translation-en_US           
Ign *us.archive.ubuntu.com feisty/main Translation-en_US                 
Get:5 *us.archive.ubuntu.com feisty-updates Release.gpg [191B]           
Ign *us.archive.ubuntu.com feisty-updates/main Translation-en_US         
Hit *archive.ubuntu.com feisty/restricted Sources                        
Hit *archive.canonical.com dapper-commercial Release                     
Hit *security.ubuntu.com feisty-security Release                         
Hit *archive.ubuntu.com feisty/main Sources                              
Ign *us.archive.ubuntu.com feisty-updates/restricted Translation-en_US   
Hit *us.archive.ubuntu.com feisty Release                                
Hit *archive.canonical.com dapper-commercial/main Packages               
Hit *security.ubuntu.com feisty-security/main Packages                   
Hit *us.archive.ubuntu.com feisty-updates Release                        
Hit *security.ubuntu.com feisty-security/restricted Packages             
Hit *security.ubuntu.com feisty-security/restricted Sources              
Hit *security.ubuntu.com feisty-security/main Sources       
Hit *us.archive.ubuntu.com feisty/main Packages             
Hit *us.archive.ubuntu.com feisty/restricted Packages       
Hit *us.archive.ubuntu.com feisty/restricted Sources        
Hit *security.ubuntu.com feisty-security/multiverse Sources 
Hit *security.ubuntu.com feisty-security/universe Sources   
Hit *security.ubuntu.com feisty-security/universe Packages               
Hit *security.ubuntu.com feisty-security/multiverse Packages             
Hit *us.archive.ubuntu.com feisty/main Sources                           
Hit *us.archive.ubuntu.com feisty/multiverse Sources        
Hit *us.archive.ubuntu.com feisty/universe Sources          
Hit *us.archive.ubuntu.com feisty/universe Packages         
Hit *us.archive.ubuntu.com feisty/multiverse Packages
Hit *us.archive.ubuntu.com feisty/main Packages
Hit *us.archive.ubuntu.com feisty-updates/main Packages
Hit *us.archive.ubuntu.com feisty-updates/restricted Packages
Hit *us.archive.ubuntu.com feisty-updates/main Sources      
Hit *us.archive.ubuntu.com feisty-updates/restricted Sources
Get:6 *ubuntu.beryl-project.org feisty Release.gpg [191B]                
Ign *ubuntu.beryl-project.org feisty/main Translation-en_US              
Ign *ubuntu.beryl-project.org feisty/main Translation-en_US              
Hit *ubuntu.beryl-project.org feisty Release                             
Hit *ubuntu.beryl-project.org feisty/main Packages                       
Hit *ubuntu.beryl-project.org feisty/main Sources                        
Hit *ubuntu.beryl-project.org feisty/main Packages                       
Hit *ubuntu.beryl-project.org feisty/main Sources                        
Fetched 196B in 12s (16B/s)                                                    
Reading package lists... Done
 

praka123

left this forum longback
my opinion is u can try the apt-get reinstall dpkg.
did u already ran "apt-get install -f".it mostly fixes.
another think is,u can just go through the output of below commands to notice which package is in error state by looking through:
Code:
 dpkg -l |less
 
OP
Third Eye

Third Eye

gooby pls
praka123 said:
my opinion is u can try the apt-get reinstall dpkg.
did u already ran "apt-get install -f".it mostly fixes.


ya i have tried it.

praka123 said:
another think is,u can just go through the output of below commands to notice which package is in error state by looking through:

Code:
dpkg-query: parse error, in file `/var/lib/dpkg/available' near line 1:
 field name `r.gz,' must be followed by colon
(END)

error
 
Last edited:

praka123

left this forum longback
did u tried:
Code:
 sudo apt-get install dpkg --reinstall
and try again.
if this too fails.then a manual house keeping needed.
u need to backup and do the following.
Code:
~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available.bk /CODE]
now,
[CODE]:~$sudo touch /var/lib/dpkg/available
now apt-get update,see any furthur error.
 
OP
Third Eye

Third Eye

gooby pls
praka123 said:
did u tried:
Code:
 sudo apt-get install dpkg --reinstall
and try again.
if this too fails.then a manual house keeping needed.
u need to backup and do the following.
Code:
~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available.bk /CODE]
now,
[code]:~$sudo touch /var/lib/dpkg/available
now apt-get update,see any furthur error.

this is what i have got

Code:
antileet@MTNL:~$  sudo apt-get install dpkg --reinstall 
Password:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 2 not upgraded.
Need to get 0B/1947kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: parse error, in file `/var/lib/dpkg/available' near line 1:
 field name `r.gz,' must be followed by colon
E: Sub-process /usr/bin/dpkg returned an error code (2)
antileet@MTNL:~$
 

praka123

left this forum longback
if this too fails.then a manual house keeping needed.
u need to backup and do the following.
Code:
~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available.bk
now,
Code:
:~$sudo touch /var/lib/dpkg/available
now apt-get update,see any furthur error
 
OP
Third Eye

Third Eye

gooby pls
antileet@MTNL:~$ ~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available.bk
bash: ~$: command not found
antileet@MTNL:~$ ~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available.bk
bash: ~$: command not found
antileet@MTNL:~$ :~$sudo touch /var/lib/dpkg/available
bash: :~: command not found
antileet@MTNL:~$
 

praka123

left this forum longback
dude!I meant like this:
Code:
sudo mv /var/lib/dpkg/available /var/lib/dpkg/available.bk
now,
Code:
sudo touch /var/lib/dpkg/available
now apt-get update,see any furthur error
 

Garbage

God of Mistakes...
The only thing I understood by above discussions is that,
When things gone bad in Linux, Then they REALLY GONE BAD...:-(
 

praka123

left this forum longback
some command line that u always be ready with any unix-like OS.see my thread:
Can You Live without Terminal in GNU/Linux:
*www.thinkdigit.com/forum/search.php?searchid=293542
and for ubuntu or Debian isnt a rocket science to know apt-dpkg and few ls,cp,mv like commands.
*wiki.debian.org/Introduction_to_Apt_and_Dpkg?highlight=(dpkg)
 
OP
Third Eye

Third Eye

gooby pls
I am now able to install softwares :p

Thanks praka123 and thanks to infra_red_dude too
 
Last edited:

adithyagenius

I WANT MORE FPS!!
Tech Genius said:
antileet@MTNL:~$ ~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available.bk
bash: ~$: command not found
antileet@MTNL:~$ ~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available.bk
bash: ~$: command not found
antileet@MTNL:~$ :~$sudo touch /var/lib/dpkg/available
bash: :~: command not found
antileet@MTNL:~$
LOL. Many books make the mistake of not telling what the $ , # etc mean and this is what happens. $ means standard user and # means administrator.
 

praka123

left this forum longback
I always thought it will be easier to figure out "$" and "#" in the CLI/terminal when it is to put a code here . :p
but most users are coming from win platform where casual users are not so aware of user accounts and permission system and Linux admin account root etc etc
yes.that needs to be known to new users.for that matter some shells uses "->" or "%" ...and u can change the prompt in bash like whatever:
Code:
 PS1='`whoami`:$PWD # ';export PS1
;)
^prank
 
Status
Not open for further replies.
Top Bottom