PDA

View Full Version : [ubuntu] cannot install anything after an interruption



joytree
August 11th, 2011, 02:59 PM
Hi, everyone

I'm quite new to unbuntu and I'm getting puzzled for whenever I type

'sudo aptitude install ' for any software, I got the same error:

'E: I wasn't able to locate a file for the skype package. This might mean you need to manually fix this package. (due to missing arch)'

I guess it's due to I manually stopped the installation of skype for 'skype-ubuntu_2.2.0.35-1_i386.deb', and restarted my computer.

ps. I cannot install anything from Unbuntu software center either.

Could you tell me how to check what's wrong and how to fix?

Thanks!

dino99
August 11th, 2011, 03:08 PM
close all the opened/running software and try into a terminal:

sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove

sudo apt-get update
sudo apt-get install -f
sudo dpkg --configure -a

joytree
August 11th, 2011, 03:20 PM
close all the opened/running software and try into a terminal:

sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove

sudo apt-get update
sudo apt-get install -f
sudo dpkg --configure -a

Thanks!

But in 'sudo apt-get autoremove' and 'sudo apt-get install -f', I get

'E: The package skype needs to be reinstalled, but I can't find an archive for it.'

and it seems I still cannot install anything..

dino99
August 11th, 2011, 03:24 PM
Thanks!

But in 'sudo apt-get autoremove' and 'sudo apt-get install -f', I get

'E: The package skype needs to be reinstalled, but I can't find an archive for it.'

and it seems I still cannot install anything..

open nautilus and search for "skype" on top quicksearch field, then delete all the "skype" folders/files found: check each for their proprties (righ click) to know their path.

joytree
August 11th, 2011, 03:31 PM
open nautilus and search for "skype" on top quicksearch field, then delete all the "skype" folders/files found: check each for their proprties (righ click) to know their path.


sorry, I don't whether I have nautilus or not.. when I type nautilus in a terminal, it pops out File Browser..

dino99
August 11th, 2011, 03:41 PM
sorry, I don't whether I have nautilus or not.. when I type nautilus in a terminal, it pops out File Browser..

Nautilus is the official file manager for the GNOME desktop. It allows
to browse directories, preview files and launch applications associated
with them. It is also responsible for handling the icons on the GNOME
desktop. It works on local and remote filesystems.

TheGuvernor
August 11th, 2011, 03:41 PM
Nautilus is your file browser. When you go to Places>Home it's the window that pops up. Search in there and you should find them.

joytree
August 11th, 2011, 04:06 PM
Nautilus is your file browser. When you go to Places>Home it's the window that pops up. Search in there and you should find them.

Thanks. But even after I deleted all the 'skype' file I found in the file system, it still has the problem above...
and when I open Synaptic Package Manager, it pops out the same error :
E: The package skype needs to be reinstalled, but I can't find an archive for it.
E: Internal error opening cache (1). Please report.

... help needed ...

TheGuvernor
August 11th, 2011, 04:20 PM
Try this command in Terminal:

find / -name skype*

See if it comes up with anything

yaddoshi
August 11th, 2011, 04:24 PM
I find 'locate' works a bit better in terminal, but you have to update the database periodically.


sudo apt-get install locate
sudo updatedb
locate skype

TheGuvernor
August 11th, 2011, 04:58 PM
I find 'locate' works a bit better in terminal, but you have to update the database periodically.


sudo apt-get install locate
sudo updatedb
locate skype

The database should update every night at midnight. But you can force it at any time by:

sudo updatedb

joytree
August 12th, 2011, 07:33 AM
The database should update every night at midnight. But you can force it at any time by:

sudo updatedb


It's solved, in an unexpected way:

it seems no use to delete every 'skype' file. One senior guy in my lab tried

sudo dpkg -i skype-debian_2.2.0.35-1_i386.deb

to reinstall it again. and it solved!

Thanks.