LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-02-2013, 11:04 AM   #1
mikebaiduu
LQ Newbie
 
Registered: Oct 2013
Posts: 6

Rep: Reputation: Disabled
Unable to locate package gfortran


Unable to locate package gfortran
I am trying to install gfortran on my linux mint 15, 64bit machine. But the above feedback was returned when I typed in the command:
sudo apt-get update && sudo apt-get install gfortran
can anyone help?
 
Old 10-02-2013, 02:12 PM   #2
dr_agon
Member
 
Registered: Sep 2007
Location: Poland
Distribution: Ubuntu LTS
Posts: 101
Blog Entries: 12

Rep: Reputation: 26
It seems that linux mint distro does not have this package it its repositrories.
Since this distro uses debian packages, you can try to get gfortran in several ways:
  1. Add a repository from debian or ubuntu (or other debian-based distro) containing gfortran package to your list of repositories, re-run "sudo apt-get update" and try to install the package. (Try to choose the repository with similar kernel version).
  2. Download directly the .deb package file and install it using dpkg. It's worth trying first. You will probably get error messages about missing dependencies, but if there are only few of them, try to resolve it by installing missing packages from your distro. If there are many missing dependencies - better add proper repository (as above).
  3. Get the sources and compile it on your machine. You may get most reliable result in this way, avoiding problems with different versions of packages between mint and other distro.
Good luck.
 
Old 10-04-2013, 12:15 PM   #3
mikebaiduu
LQ Newbie
 
Registered: Oct 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
Re: Unable to locate package gfortran

Thanks very much. Anyway, I attempted adding the gfortran repository from debian but when I keyed in the command:
/etc/apt/sources.list
I received the following feedback:
bash: /etc/apt/sources.list: Permission denied

Please is there a reason for this. How can I get my way around it.
 
Old 10-05-2013, 05:28 AM   #4
dr_agon
Member
 
Registered: Sep 2007
Location: Poland
Distribution: Ubuntu LTS
Posts: 101
Blog Entries: 12

Rep: Reputation: 26
Quote:
Originally Posted by mikebaiduu View Post
Anyway, I attempted adding the gfortran repository from debian but when I keyed in the command:
/etc/apt/sources.list
I received the following feedback:
bash: /etc/apt/sources.list: Permission denied
Of course.
This is not the way to add a repository.
/etc/apt/sources.list is a plain file, not an executable program. You can see that using command ls -l /etc/apt/sources.list
You can also see its contents using cat or less commands. You can edit it in any editor and add required repository manually, but remember that you need root privilages to write it.
Do you know what repository you need?

BTW - are you familiar with linux man command? It can be very helpful.
 
Old 10-07-2013, 09:55 AM   #5
mikebaiduu
LQ Newbie
 
Registered: Oct 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
Re: Unable to locate package gfortran

Thanks a lot for the concern you have shown.
However from the response I am getting, I believe the problem is from the version of linux I am using.
I am using (Cinamon) linux mint 15 with codename: 'Olivia'
Any of the developers following this can consider upgrading it.
I think I will have to uninstall it and find a new one.

Last edited by mikebaiduu; 10-07-2013 at 10:03 AM.
 
Old 10-08-2013, 12:25 PM   #6
mikebaiduu
LQ Newbie
 
Registered: Oct 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
Re: Unable to locate package gfortran

I have successfully installed linux mint 15 (MATE Desktop) and it has gfortran in its repositories. I think the only problem was that, the mint 15 (cinnamon desktop) does not have gfortran.
Thanks a lot.
 
Old 10-08-2013, 02:50 PM   #7
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Sounds like a bug. Your choice of DE should have no effect on apt-get, its repos, or the (in)availability of a program like gfortran. You may want to bring this to the attention of the developers. It could be that the Cinnamon package available on their site has accidentally left of one or two of the key repos.
 
Old 10-09-2013, 12:26 AM   #8
dr_agon
Member
 
Registered: Sep 2007
Location: Poland
Distribution: Ubuntu LTS
Posts: 101
Blog Entries: 12

Rep: Reputation: 26
Before answering I did a simple search through http://packages.linuxmint.com/ and found no package gfortran, so I thought it is not included in any mint repositories. Is it?
 
  


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
[SOLVED] In ubuntu 12.1 unable to locate package tree jimeast Linux - Newbie 5 01-19-2013 01:39 PM
E:unable to locate package hafiznasrullah Linux - Server 7 09-10-2012 08:42 AM
[SOLVED] E: Unable to locate package nova-comm E: Unable to locate package python-psycopq2 mint12 Linux - Virtualization and Cloud 2 01-05-2012 01:07 PM
Unable to locate package VSFTP LoneWolf69 Linux - Newbie 2 08-22-2011 05:58 PM
[SOLVED] E: Unable to locate package lamis0 Ubuntu 4 03-27-2011 07:33 AM


All times are GMT -5. The time now is 02:41 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration