LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-16-2014, 06:19 PM   #1
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Rep: Reputation: Disabled
GFortran installation trouble.


I run VirtualBox with Ubuntu VM as a guest OS.

I went to this website http://packages.ubuntu.com/lucid/gfortran-4.4 To download GFortran. It offers to download GFortran 4.4. Well, I go down the page and see i386 which is a label-link. I click it and expect the download come up. NO!! It takes me to another page "Download Page for gfortran-4.4_4.4.3-4ubuntu5.1_i386.deb on Intel x86 machines" Then I see a box with this announcement: If you are running Ubuntu, it is strongly suggested to use a package manager like aptitude or synaptic to download and install packages, instead of doing so manually via this website. So, My question is:

1. What is aptitude?

I actually found aptitude file in one of my directories. So what?

And if I decided to ignore aptitude how can I download GFortran? So, I read further:

You can download the requested file from the pool/main/g/gcc-4.4/ subdirectory at:

security.ubuntu.com/Ubuntu

The latest line is actually a link-label and I click on it. It finally offers me to download something. It is gfortran-4.4_4.4.3-4ubuntu5.1_i386.deb. I choose to open it with Archive and after clicking the red button I get another page with an error message:

Dependency is not satisfiable: gcc-4.4-base.

2. What does it all mean?

Thanks, - AlexBB

Last edited by AlexBB; 03-16-2014 at 07:14 PM.
 
Old 03-16-2014, 07:20 PM   #2
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 751

Rep: Reputation: 156Reputation: 156
Hi Alex,

Linux distros tend to have a package manager which allow you to download a package plus all its dependencies. aptitude is the package manager for ubuntu and debian based distros. The advantage of using a package manager is that it will download a version specific to your distro AND check if any other packages (dependencies) also need installing. You don't have to do anything else.

I am not a debian user so I am not sure of the exact commands but I would expect something like

Quote:
apt-get install gfortran
would download that package PLUS all the dependencies your install is complaining about. If you want to install it yourself you will have to identify all the dependencies and install them yourself. EG. gcc-4.4.base.

If you don't want to use the command line then you should be able to install as per the instructions:

Quote:
If you are running Ubuntu, it is strongly suggested to use a package manager like aptitude or synaptic to download and install packages, instead of doing so manually via this website
Like I say, I am not too familiar with debian but in the Red Hat world I would:
  • download the package
  • double click on the downloaded file (from the file explorer)
  • the operating system would then ask me how to install and provide the "package manager" as the default
  • you just let the package manager (aptitude) to the rest

Hope this helps

Cheers
 
Old 03-16-2014, 07:41 PM   #3
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
timl, thank you. I will try. Hopefully someone else (Debian) will also show up with suggestions. AlexBB
 
Old 03-16-2014, 09:25 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,622
Blog Entries: 28

Rep: Reputation: 6231Reputation: 6231Reputation: 6231Reputation: 6231Reputation: 6231Reputation: 6231Reputation: 6231Reputation: 6231Reputation: 6231Reputation: 6231Reputation: 6231
Aptitude is a command line package manager for Debian. It is the ancestor of "apt-get" (in fact, it's where the "apt" in "apt-get" comes from); it's also where the "apt" in synaptic comes from.

This

Code:
Dependency is not satisfiable: gcc-4.4-base
tells me that gcc-4.4-base is needed for gfortran to work (it's a "dependency," in Linux-speak) and the package manager is saying it can't resolve the dependency. This seems odd to me as this link indicates that it is available for a number of versions of Ubuntu. You could try searching for it in the Ubuntu software center and installing it, then going back to install gfortran.

As a footnote, if you download a *.deb and want to install it from the local hard drive, the best way to do that is to use gdebi. Once it's installed, it normally will show up in the right-click menu in the file manager.

I am a long way away from my Debian machine right now, so I can't test installing gfortran on it. Hope this helps with some of the terminology.

Last edited by frankbell; 03-16-2014 at 09:27 PM.
 
Old 03-17-2014, 12:45 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The install command for gfortran is :
1) # apt-get update ( To update the package list.)
2) # apt-get install gfortran
 
Old 03-17-2014, 01:03 AM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726

Rep: Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706
HI,
Quote:
Originally Posted by AlexBB View Post
I run VirtualBox with Ubuntu VM as a guest OS.

I went to this website http://packages.ubuntu.com/lucid/gfortran-4.4 To download GFortran. It offers to download GFortran 4.4. Well, I go down the page and see i386 which is a label-link. I click it and expect the download come up. NO!! It takes me to another page "Download Page for gfortran-4.4_4.4.3-4ubuntu5.1_i386.deb on Intel x86 machines" Then I see a box with this announcement: If you are running Ubuntu, it is strongly suggested to use a package manager like aptitude or synaptic to download and install packages, instead of doing so manually via this website. So, My question is:

1. What is aptitude?
It is a package manager. See for example: https://wiki.debian.org/Aptitude

Quote:
I actually found aptitude file in one of my directories. So what?
You tell me. So what?

Quote:
And if I decided to ignore aptitude how can I download GFortran?
You already successfully downloaded it (as you describe below).

Quote:
So, I read further:

You can download the requested file from the pool/main/g/gcc-4.4/ subdirectory at:

security.ubuntu.com/Ubuntu

The latest line is actually a link-label and I click on it. It finally offers me to download something. It is gfortran-4.4_4.4.3-4ubuntu5.1_i386.deb. I choose to open it with Archive and after clicking the red button I get another page with an error message:

Dependency is not satisfiable: gcc-4.4-base.

2. What does it all mean?
It means you should follow the recommendation and use a package manager as the web page strongly suggests. Ubuntu is not windows. Downloading software using your web browser and then "clicking" on the downloaded package is almost never the correct way to install software on Ubuntu.

Evo2.
 
Old 03-17-2014, 09:07 PM   #7
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
Evo2: Ubuntu is not Windows. I actually read about it just after I posted here. Stumbled on an internet page with this explanation but it was too late. Thank you very much everyone who posed. It all is very helpful. - AlexBB
 
Old 03-19-2014, 04:15 PM   #8
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
The install command for gfortran is :
1) # apt-get update ( To update the package list.)
2) # apt-get install gfortran
knudfl, thanks for the pointer, however something went astray. I am posting a snapshot of the terminal "reaction" to commands you suggested.

This is what happened. First I was not sure if the pound signs were a part of the command, so I tried both variants. First I tried without them and the Ubuntu simply ignored them it seems. I did not see any reaction. When I tried them with the pound signs I got three lines of errors.

Also the system asks me if I am root. How do I respond to it.

I'll tell you, the fate of a novice is very tough especailly if you work and have to do it in your free time.

Thanks.
Attached Thumbnails
Click image for larger version

Name:	Linux.png
Views:	17
Size:	69.4 KB
ID:	15004  
 
Old 03-19-2014, 04:31 PM   #9
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
This is a QUOTE from frankBell: As a footnote, if you download a *.deb and want to install it from the local hard drive, the best way to do that is to use gdebi. Once it's installed, it normally will show up in the right-click menu in the file manager.

frankbell, thank you. This is what happens when I click on your link gdebi. First I get to anotherpage where I click on lucid. I go down the page and see: "Download gdebi". I click on that (all). It gives me another oage: "Download Page for gdebi_0.6.0ubuntu1_all.deb" There are North American mirrors on the left. I click on the top one. It gives me another form (window): Opening gdebi_0.6...... So I click "OK" and get this "user friendly" response: The application you chose ("") could not be found. Check the file name or choose another application.. Other mirrors give me the same. Yes, Ubuntu is truly a user friendly software, no question about it. You need to download a file, the system takes you through numerous websites, every one seems to promise a download but the final result escapes you. This is preposterous.

Last edited by AlexBB; 03-19-2014 at 04:33 PM.
 
Old 03-19-2014, 05:48 PM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 8 .

The commands to install gfortran are : *** EDIT : see post #12 for Ubuntu.
1) su <enter-root-password>
2) apt-get update
3) apt-get install gfortran

" # " in post 5 is the root command prompt : Do not type # as part of a command.
Like you do not type $ , when you are using the ordinary users command prompt : $.

-

Last edited by knudfl; 03-20-2014 at 02:47 AM.
 
Old 03-19-2014, 08:20 PM   #11
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
knudfl, thanks. Now I have a new complication. I type su, the system asks for a password and I type it in. I get a response: "Authentication failure" How come, just a minute, literally a minute before I signed into Ubuntu with my password and it opened the access to desktop with the roster of icons on the right edge. Why is it so? This is just ridiculous. - alexBB
 
Old 03-19-2014, 10:10 PM   #12
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726

Rep: Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706Reputation: 1706
Hi,
Quote:
Originally Posted by AlexBB View Post
knudfl, thanks. Now I have a new complication. I type su, the system asks for a password and I type it in. I get a response: "Authentication failure" How come, just a minute, literally a minute before I signed into Ubuntu with my password and it opened the access to desktop with the roster of icons on the right edge.
knudfl gave instructions that would work for most distros, but Ubuntu is a little different. Try the following:

Code:
sudo apt-get update
sudo apt-get install gfortran
When prompted, enter your password.

Quote:
Why is it so?
Because the su command wants the password for the root account, not your password.

Quote:
This is just ridiculous.
What is? That you are complaining to people who work and are helping you in their free time?

Evo2.
 
1 members found this post helpful.
Old 03-20-2014, 09:10 PM   #13
AlexBB
Member
 
Registered: Mar 2014
Posts: 464

Original Poster
Rep: Reputation: Disabled
evo2, I am sorry. You know I like Linux and kind of hate it at the same time. It is an enormous piece of imaginative work but it is hard to get used to it for a person who knows how to program in Windows. Anyhow I just ran the commands sudo ... update & sudo ... install gfortran. This is what I got:


Bug Description

$ sudo apt-get install nmh

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
qt4-demos
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
daemontools fastforward fgetty procmail qmail qmail-run qmail-uids-gids runit ucspi-tcp
Suggested packages:
exmh mh-e mh-book dot-forward qmail-tools socklog-run
Recommended packages:
mail-transport-agent metamail
The following NEW packages will be installed:
daemontools fastforward fgetty nmh procmail qmail qmail-run qmail-uids-gids runit ucspi-tcp
0 upgraded, 10 newly installed, 0 to remove and 170 not upgraded.
Need to get 3,339 kB of archives.
After this operation, 9,404 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://archive.ubuntu.com/ubuntu/ precise/universe daemontools amd64 1:0.76-3ubuntu3 [79.6 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ precise/universe fgetty amd64 0.6-5build1 [25.4 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ precise/universe nmh amd64 1.3-1build1 [2,346 kB]
Get:4 http://archive.ubuntu.com/ubuntu/ precise/main procmail amd64 3.22-19 [155 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ precise/universe runit amd64 2.1.1-6.2ubuntu2 [112 kB]
Get:6 http://archive.ubuntu.com/ubuntu/ precise/universe ucspi-tcp amd64 1:0.88-3 [112 kB]
Get:7 http://archive.ubuntu.com/ubuntu/ precise/universe fastforward amd64 1:0.51-3 [63.3 kB]
Get:8 http://archive.ubuntu.com/ubuntu/ precise/universe qmail-uids-gids all 1.06-4 [33.5 kB]
Get:9 http://archive.ubuntu.com/ubuntu/ precise/universe qmail amd64 1.06-4 [403 kB]
Get:10 http://archive.ubuntu.com/ubuntu/ precise/universe qmail-run all 2.0.2 [10.3 kB]
Fetched 3,339 kB in 7s (465 kB/s)
Selecting previously unselected package daemontools.
(Reading database ... 294665 files and directories currently installed.)
Unpacking daemontools (from .../daemontools_1%3a0.76-3ubuntu3_amd64.deb) ...
Selecting previously unselected package fgetty.
Unpacking fgetty (from .../fgetty_0.6-5build1_amd64.deb) ...
Selecting previously unselected package nmh.
Unpacking nmh (from .../nmh_1.3-1build1_amd64.deb) ...
Selecting previously unselected package procmail.
Unpacking procmail (from .../procmail_3.22-19_amd64.deb) ...
Selecting previously unselected package runit.
Unpacking runit (from .../runit_2.1.1-6.2ubuntu2_amd64.deb) ...
Selecting previously unselected package ucspi-tcp.
Unpacking ucspi-tcp (from .../ucspi-tcp_1%3a0.88-3_amd64.deb) ...
Selecting previously unselected package fastforward.
Unpacking fastforward (from .../fastforward_1%3a0.51-3_amd64.deb) ...
Selecting previously unselected package qmail-uids-gids.
Unpacking qmail-uids-gids (from .../qmail-uids-gids_1.06-4_all.deb) ...
Selecting previously unselected package qmail.
Unpacking qmail (from .../qmail_1.06-4_amd64.deb) ...
Selecting previously unselected package qmail-run.
Unpacking qmail-run (from .../qmail-run_2.0.2_all.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Setting up daemontools (1:0.76-3ubuntu3) ...
Setting up fgetty (0.6-5build1) ...
Setting up nmh (1.3-1build1) ...
Setting up procmail (3.22-19) ...
Setting up runit (2.1.1-6.2ubuntu2) ...
grep: /etc/inittab: No such file or directory
grep: /etc/inittab: No such file or directory
runsvdir start/running, process 5561
Setting up ucspi-tcp (1:0.88-3) ...
Setting up fastforward (1:0.51-3) ...
Setting up qmail-uids-gids (1.06-4) ...
No qmail-users or -groups found.

This script runs the following commands, without adding these users and
groups, this qmail-package cannot run on this system.

# groupadd -g 64010 qmail
# addgroup --system nofiles
# useradd -u 64010 -g nofiles -d /var/lib/qmail/alias alias
# useradd -u 64011 -g nofiles -d /var/lib/qmail qmaild
# useradd -u 64015 -g nofiles -d /var/lib/qmail qmaill
# useradd -u 64016 -g nofiles -d /var/lib/qmail qmailp
# useradd -u 64014 -g qmail -d /var/lib/qmail qmailq
# useradd -u 64013 -g qmail -d /var/lib/qmail qmailr
# useradd -u 64012 -g qmail -d /var/lib/qmail qmails

Adding group `nofiles' (GID 132) ...
Done.
qmail uids and gids ok.
Setting up qmail (1.06-4) ...

The hostname -f command returned: $1

Your system needs to have a fully qualified domain name (fqdn) in
order to install the var-qmail packages.

Installation aborted.

dpkg: error processing qmail (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of qmail-run:
qmail-run depends on qmail (>= 1.06-2.1); however:
Package qmail is not configured yet.
dpkg: error processing qmail-run (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
qmail
qmail-run
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: qmail 1.06-4
ProcVersionSignature: Ubuntu 3.2.0-48.74-generic 3.2.46
Uname: Linux 3.2.0-48-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.3
Architecture: amd64
Date: Fri Jul 26 17:23:38 2013
DistributionChannelDescriptor:
# This is a distribution channel descriptor
# For more information see http://wiki.ubuntu.com/DistributionChannelDescriptor
canonical-oem-somerville-precise-amd64-20120703-2
DuplicateSignature: package:qmail:1.06-4:subprocess installed post-installation script returned error exit status 1
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 12.04 "Precise" - Build amd64 LIVE Binary 20120703-15:08
MarkForUpload: True
SourcePackage: netqmail
Title: package qmail 1.06-4 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
Tags: precise amd64 apport-package Edit Tag help

Why do I get all this. I did not type install nmh. Why did I get it all?

It says the architecture is amd64. It is true for the host machine: Windows 7 but my Ubuntu is 32 bit machine because for some reason I could not install a 64 bit guest. I did not ask to install gmail. Why is it there?

Thanks, and I am sorry for my comment. - Alex

Last edited by AlexBB; 03-20-2014 at 09:12 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
installation of Compilers of gfortran and c sagar1karuna Linux - Newbie 16 09-26-2011 12:51 AM
[SOLVED] cuda for gfortran ? aihaike Programming 4 09-26-2010 09:07 PM
gfortran gives different output after installation openSUSE 11.3 Victorray Linux - Software 2 08-16-2010 03:39 PM
help gfortran mperez Programming 2 12-16-2007 01:50 PM
DBD installation trouble .. installation steps attached utw-mephisto Linux - Server 1 12-06-2007 12:57 AM

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

All times are GMT -5. The time now is 06:40 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