gfortran-4.6 dependency problems
JC Lawrence
jcl at cydesign.com
Tue Nov 6 21:38:08 UTC 2012
On 4 Nov 2012, at 15:29, Dmitrijs Ledkovs wrote:
> On 2 November 2012 21:45, JC Lawrence <jcl at cydesign.com> wrote:
>> The current version of gfortran in 12.0 LTS depends on gfortran-4.6, which in turn depends on GCC-4.6 (=, not >=), which can't be satisfied as the only GCC release in 12.0 is 4.6.1-2. Is this likely to be resolved soon? I need gfortran and am having the very devil of a time building GCC and thus gfortran from sources (arghh!).
>>
>> # apt-get install gfortran
>
> Can you show the output of:
>
> $ apt-cache policy gfortran
$ apt-cache policy gfortran
gfortran:
Installed: (none)
Candidate: 4:4.6.1-2ubuntu5
Version table:
4:4.6.1-2ubuntu5 0
500 http://us-west-1.ec2.archive.ubuntu.com/ubuntu/ oneiric/main amd64 Packages
Micah's assessment of a stale package repository was accurate (the AWS repositories are quite stale). After moving /etc/apt/sources.list over to the requisite Ubuntu repositories:
# apt-get -o Debug::pkgProblemResolver=yes install gfortran-4.6
Reading package lists... Done
Building dependency tree
Reading state information... Done
Starting
Starting 2
Investigating (0) gfortran-4.6 [ amd64 ] < none -> 4.6.1-9ubuntu3 > ( devel )
Broken gfortran-4.6:amd64 Depends on gcc-4.6-base [ amd64 ] < 4.6.3-1ubuntu5 > ( libs ) (= 4.6.1-9ubuntu3)
Considering gcc-4.6-base:amd64 61 as a solution to gfortran-4.6:amd64 9999
Broken gfortran-4.6:amd64 Depends on gcc-4.6 [ amd64 ] < none -> 4.6.1-9ubuntu3 > ( devel ) (= 4.6.1-9ubuntu3)
Considering gcc-4.6:amd64 1 as a solution to gfortran-4.6:amd64 9999
Reinst Failed early because of gcc-4.6-base:amd64
Broken gfortran-4.6:amd64 Depends on libgfortran3 [ amd64 ] < none -> 4.6.1-9ubuntu3 > ( libs ) (>= 4.6.1-9ubuntu3)
Considering libgfortran3:amd64 1 as a solution to gfortran-4.6:amd64 9999
Reinst Failed early because of gcc-4.6-base:amd64
Broken gfortran-4.6:amd64 Depends on libc6-dev [ amd64 ] < none -> 2.13-20ubuntu5.2 > ( libdevel ) (>= 2.13-0ubuntu6)
Considering libc6-dev:amd64 1 as a solution to gfortran-4.6:amd64 9999
Reinst Failed early because of libc6:amd64
Considering libc6-dev:amd64 1 as a solution to gfortran-4.6:amd64 9999
Broken gfortran-4.6:amd64 Depends on libmpc2 [ amd64 ] < none -> 0.9-3 | 0.9-4 > ( libs )
Considering libmpc2:amd64 1 as a solution to gfortran-4.6:amd64 9999
Re-Instated libmpfr4:amd64
Re-Instated libmpc2:amd64
Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
gfortran-4.6 : Depends: gcc-4.6-base (= 4.6.1-9ubuntu3) but 4.6.3-1ubuntu5 is to be installed
Depends: gcc-4.6 (= 4.6.1-9ubuntu3) but it is not going to be installed
Depends: libgfortran3 (>= 4.6.1-9ubuntu3) but it is not going to be installed
Depends: libc6-dev (>= 2.13-0ubuntu6) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
The long short and tall of which is that sufficient was pushed forward in a prior apt-get upgrade that moving back to get coherence with the current gfortran packages was a PITA. After dropping back to a raw-install, everything is again happy in the house of cross-compilation.
Thanks guys!
-- JCL
More information about the Ubuntu-devel-discuss
mailing list