Não é possível instalar libgfortran3 (dependências não atendidas)

1

Não consigo instalar o ligbfortran3. Qual é a melhor maneira de resolver isso? Quero manter minha instalação o mais padrão possível. Obrigado.

root@arau:~# apt-get --simulate install libgfortran3
Reading package lists... Done
Building dependency tree       
Reading state information... 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:
 libgfortran3 : Depends: gcc-4.8-base (= 4.8.2-19ubuntu1) but 4.8.4-2ubuntu1~14.04 is to be installed
E: Unable to correct problems, you have held broken packages.
root@arau:~# 
root@arau:~# 
root@arau:~# 
root@arau:~# 
root@arau:~# aptitude show gcc-4.8-base 
Package: gcc-4.8-base                    
State: installed
Automatically installed: no
Multi-Arch: same
Version: 4.8.4-2ubuntu1~14.04
Priority: required
Section: libs
Maintainer: Ubuntu Core developers <[email protected]>
Architecture: amd64
Uncompressed Size: 222 k
Breaks: dehydra (<= 0.9.hg20110609-2), dehydra (<= 0.9.hg20110609-2), gcc-4.4-base (< 4.4.7), gcc-4.4-base (< 4.4.7), gcc-4.7-base (< 4.7.3),
        gcc-4.7-base (< 4.7.3), gcj-4.4-base (< 4.4.6-9~), gcj-4.4-base (< 4.4.6-9~), gcj-4.6-base (< 4.6.1-4~), gcj-4.6-base (< 4.6.1-4~),
        gnat-4.4-base (< 4.4.6-3~), gnat-4.4-base (< 4.4.6-3~), gnat-4.6 (< 4.6.1-5~), gnat-4.6 (< 4.6.1-5~), gcc-4.8-base (!= 4.8.4-2ubuntu1~14.04)
Replaces: gcc-4.8-base (< 4.8.4-2ubuntu1~14.04)
Description: GCC, the GNU Compiler Collection (base package)
 This package contains files common to all languages and libraries contained in the GNU Compiler Collection (GCC).
Homepage: http://gcc.gnu.org/

Minha sources.list é padrão:

root@arau:~# cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140722.2)]/ trusty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://fr.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://fr.archive.ubuntu.com/ubuntu/ trusty main restricted

## Major bug fix updates produced after the final release of the
## distribution.

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://fr.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://fr.archive.ubuntu.com/ubuntu/ trusty universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://fr.archive.ubuntu.com/ubuntu/ trusty multiverse
deb-src http://fr.archive.ubuntu.com/ubuntu/ trusty multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.


## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu trusty partner
# deb-src http://archive.canonical.com/ubuntu trusty partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu trusty main
deb-src http://extras.ubuntu.com/ubuntu trusty main

------------- EDIT 1

root@arau:~# apt-cache policy gcc-4.8-base
gcc-4.8-base:
  Installed: 4.8.4-2ubuntu1~14.04
  Candidate: 4.8.4-2ubuntu1~14.04
  Version table:
 *** 4.8.4-2ubuntu1~14.04 0
        100 /var/lib/dpkg/status
     4.8.2-19ubuntu1 0
        500 http://fr.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

------------- EDIT 2

root@arau:~# dpkg -l | grep gcc
ii  gcc                                                   4:4.8.2-1ubuntu6                                    amd64        GNU C compiler
ii  gcc-4.8                                               4.8.4-2ubuntu1~14.04                                amd64        GNU C compiler
ii  gcc-4.8-base:amd64                                    4.8.4-2ubuntu1~14.04                                amd64        GCC, the GNU Compiler Collection (base package)
ii  gcc-4.9-base:amd64                                    4.9.1-0ubuntu1                                      amd64        GCC, the GNU Compiler Collection (base package)
ii  libgcc-4.8-dev:amd64                                  4.8.4-2ubuntu1~14.04                                amd64        GCC support library (development files)
ii  libgcc1:amd64                                         1:4.9.1-0ubuntu1                                    amd64        GCC support library

------------- EDITAR 3

na verdade, "aptitude" resolveu meu problema, obrigado pessoal.

root@arau:~# aptitude install libgfortran3
The following NEW packages will be installed:
  libgfortran3{b} 
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 250 kB of archives. After unpacking 1 230 kB will be used.
The following packages have unmet dependencies:
 libgfortran3 : Depends: gcc-4.8-base (= 4.8.2-19ubuntu1) but 4.8.4-2ubuntu1~14.04 is installed.
Internal error: found 2 (choice -> promotion) mappings for a single choice.
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     libgfortran3 [Not Installed]                       



Accept this solution? [Y/n/q/?] n
Internal error: found 2 (choice -> promotion) mappings for a single choice.
Internal error: found 2 (choice -> promotion) mappings for a single choice.
The following actions will resolve these dependencies:

      Downgrade the following packages:                                        
1)      cpp-4.8 [4.8.4-2ubuntu1~14.04 (now) -> 4.8.2-19ubuntu1 (trusty)]       
2)      gcc-4.8 [4.8.4-2ubuntu1~14.04 (now) -> 4.8.2-19ubuntu1 (trusty)]       
3)      gcc-4.8-base [4.8.4-2ubuntu1~14.04 (now) -> 4.8.2-19ubuntu1 (trusty)]  
4)      libasan0 [4.8.4-2ubuntu1~14.04 (now) -> 4.8.2-19ubuntu1 (trusty)]      
5)      libatomic1 [4.8.4-2ubuntu1~14.04 (now) -> 4.8.2-19ubuntu1 (trusty)]    
6)      libgcc-4.8-dev [4.8.4-2ubuntu1~14.04 (now) -> 4.8.2-19ubuntu1 (trusty)]
7)      libgomp1 [4.8.4-2ubuntu1~14.04 (now) -> 4.8.2-19ubuntu1 (trusty)]      
8)      libitm1 [4.8.4-2ubuntu1~14.04 (now) -> 4.8.2-19ubuntu1 (trusty)]       
9)      libquadmath0 [4.8.4-2ubuntu1~14.04 (now) -> 4.8.2-19ubuntu1 (trusty)]  
10)     libstdc++6 [4.8.4-2ubuntu1~14.04 (now) -> 4.8.2-19ubuntu1 (trusty)]    
11)     libtsan0 [4.8.4-2ubuntu1~14.04 (now) -> 4.8.2-19ubuntu1 (trusty)]      



Accept this solution? [Y/n/q/?] y
    
por Bob Yoplait 19.08.2015 / 13:06

1 resposta

0

Você realmente precisa da versão 3? 4.8 é o atual no meu sistema confiável. Se você tem um antigo executável referindo-se a uma versão antiga, tente apenas adicionar um link para a versão 4. Isso pode funcionar, a menos que o antigo exe esteja usando funções obsoletas.

Supondo que você realmente precise da biblioteca 3, talvez uma delas seja instalar as versões de 32 bits para evitar conflitos com as versões de 64 bits da biblioteca.

Tente ver a versão 12.04.5 ainda suportada para ver qual versão ela usa, mas suponha que ela esteja em 4 também. Qualquer lançamento com o 3 fortran como padrão não será suportado no momento.

Você pode remover o pacote conflitante (provavelmente alguns), tentar instalar o lib3, ver quais novas reclamações são feitas, excluí-las, até que finalmente não há conflitos. Então, você precisaria fornecer fontes para as versões necessárias, ficar confuso aqui e, em seguida, se conseguir fazer com que as coisas fiquem consistentes, congele-as para que nenhuma atualização adicional aconteça nesses pacotes. Certamente não é a sua instalação padrão desejada.

A melhor abordagem que posso ver é tratar o material da lib3 como um compilador cruzado. Instale o que você precisa localmente e não toque no sistema normal.

    
por ubfan1 19.08.2015 / 15:57