LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-10-2008, 01:00 PM   #1
codfreek
LQ Newbie
 
Registered: Sep 2007
Location: Michigan, USA
Distribution: ubuntu 7.10 gutsy
Posts: 14

Rep: Reputation: 0
Nothing is installing in ubuntu


Hi,

This problem is making me mad because it has never happened before.

The Problem:

-I've just installed ubuntu 7.10 Gutsy onto one of my old machines and I don't have wine (I really need it!)

I went to the konsole and type:

"wine --version"

and it said:

"The program 'wine' is currently not installed",

so I type:

"sudo apt_get install wine"

and it tells me:

" dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem."

so manually ru it and it tells me:

"dpkg: requested operation requires superuser privilege"

I am the superuser so, ???? and it does this for all things I try to install



I also try to get it through the Add/Remove option in the menu, but it tells me the same thing as when I type "sudo apt-get install wine"

Why does it do this? It has not done this on any of my other installations. I am dual-booting with winXP 'cause the woman wanted to use both, could that be the problem?

I have looked into Cedega, but I'm not prepared to pay $$$ to install windows applications on linux.

I even downloaded the latest version (9.55) and tried to install, but that failed.


SYSTEM SPECS:

-Mobo - Gateway
-CPU - Pentium 3 866 MHz
-memory - 512 MB SDRAM
-GPU - (integrated) Intel 820, is not supported by Intel any longer
-HDD - WD 200GB, partitioned into 5 slices. (1x 100GB for winXP, 1x 50GB FAT32, 1x 1GB win SWAP, 1x 15GB ext3 for ubuntu 7.10, and 1x 35GB unused.

I'll be thankful for any help you can offer.
 
Old 02-10-2008, 01:20 PM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
well this kinda tells me this is a source deb that has to be compiled with dpkg________
and that is why it has to be done manually dpkg --configure -a. seams you are missing some libraries. and it is not getting past the configure stage. make sure you have your deb build programs and make aoutomake aoutoconf etc so it can build from a deb source file. some debs are pre built but some are deb.source files.make sure you have a g++ compiler type in a teminal cc then enter it should read out.(cc: no input files) that means at least you hav a g++ compiler go into your deb package manager and see all you programs then use your apt get to get the devel programans
 
Old 02-10-2008, 01:22 PM   #3
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
if you installed from a live distro you will be missing all the development files so apt-get them.
 
Old 02-10-2008, 01:48 PM   #4
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Quote:
" dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem."
I'm not so sure if it's a source package that's dealt with here. Or if that's the case, I've been installing _loads_ of source debs that just happen to message that when the installation operation is stopped before it's finished. I know my pc isn't the fastest on earth, but the packages do install pretty swiftly, so I thought they're binaries - source compilation takes so much longer - and still I face that error each time I interrupt apt before it's install process is successfully ended.

Well, what you do after that message:
Code:
sudo dpkg --configure -a
That should fix it, if it does. Then re-run
Code:
sudo apt-get install wine
if it wasn't installed yet.

Note that on Ubuntu the root account is locked for good reasons (if you're against that, it's ok to me - you're free to do what you want, like burn down your house - but it actually is a sensible thing to do if you consider it), and the first user that is created (during the setup) is given full sudo rights. That means that user is the "main" user, who can run anything with root privileges, using sudo. Yeah, you can even become root trough sudo "abuse", but that's not the point here. Rest of the users created will not have sudo privileges by default, unless you give it to them - and if you do, be careful, or they can become root and kick your butt Anyway, the first user created during setup has pretty much power, but not without sudo - it's a minimum line of defense, so to say, and not particulary safe unless you think before doing. It's better than logging in as root, but worse than working with thought.

So anything system-wide or admin-like you do, you do trough sudo. That means put "sudo" in front of the command you would otherwise run as root. It asks your user's password unless you just put it in a moment ago (it forgets it in a moment, for security, but I'd rather not have it remember it at all), and then runs the given command with root privileges. Without that the command is run with your user's privileges, which are lower, and can't for example change files owned by someone else; typically system files are owned by either root or some dedicated user/group that is created for the job.

Shortly:
Code:
apt-get install package
should fail, because apt-get needs high privileges to change system files, and that command is executed as regular user, who can't change system files.
Code:
sudo apt-get install package
does not fail, because apt-get is now run with root privileges, and can change system files.
Code:
rm -rf /
should fail, because the command is executed as a regular user who can't write to /
Code:
sudo rm -rf /
makes pretty nice damage, because now 'rm' (remove files) is executed as root (because of 'sudo'), and the flags 'r' and 'f' mean 'recursively' and 'force' (or 'without asking questions). Means it tries to remove, without confirmation, each and every file on your filesystems mounted under /, which means all mounted ones

Note that apt is nice when it tells you what to run in order to try and fix the situation. It would be more difficult if it just told you "error" and stopped there.
 
Old 02-11-2008, 10:22 AM   #5
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
hey b)uncer you are so right I just re-read the original post did you see how they typed sudo apt_get instead of sudo apt-get ,-------- correct cool handle B0uncer lol good luck
 
Old 02-11-2008, 01:03 PM   #6
codfreek
LQ Newbie
 
Registered: Sep 2007
Location: Michigan, USA
Distribution: ubuntu 7.10 gutsy
Posts: 14

Original Poster
Rep: Reputation: 0
Sorry about the typo. But I did type "sudo apt-get package" into the konsole.

Thanks bOuncer, you were right. I had failed to type "sudo" before "dpkg --configure -a," I did so and it worked, and everything is good now. Until now I had not known the significance of using sudo and what it's purpose was.

Forums like this do a world of good for a lot of people, keep-up the good work guys.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Installing Xen On An Ubuntu 7.10 (Gutsy Gibbon) Server From The Ubuntu Reposito LXer Syndicated Linux News 0 11-06-2007 08:50 PM
LXer: Installing Xen On An Ubuntu Feisty Fawn Server From The Ubuntu Repositories LXer Syndicated Linux News 0 07-01-2007 06:46 AM
ubuntu partitioning tool does not see external usb hard drive when installing ubuntu fakie_flip Linux - Software 2 07-30-2006 12:44 AM
Installing the nvidia driver off the web site and installing rpm in ubuntu? darkhatter Ubuntu 3 02-19-2006 02:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration