octave installed error - Depende de: gcc-5-base (= 5.3.1-14ubuntu2)

1

eu li todo este artigo e pesquiso mas meu problema não resolve

eu instalo ubuntu 16.04.1 LTS

$sudo apt-get install octave
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:
 octave : Depends: libarpack2 (>= 2.1) but it is not going to be installed
          Depends: libcholmod3.0.6 but it is not going to be installed
          Depends: liboctave3 (= 4.0.0-3ubuntu9) but it is not going to be installed
          Recommends: libopenblas-base but it is not going to be installed or
                      libatlas3-base but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

e com aptitute :

$sudo aptitude install octave
The following NEW packages will be installed:
  aglfn{a} ca-certificates-java{a} default-jre-headless{a} gnuplot-data{a} gnuplot-tex{a} gnuplot-x11{a} java-common{a} 
  libaec0{a} libamd2.4.1{a} libarpack2{a} libblas-common{a} libblas3{a} libcamd2.4.1{a} libccolamd2.9.1{a} libcholmod3.0.6{a} 
  libcxsparse3.1.4{a} libfltk-gl1.3{a} libfltk1.3{a} libgfortran3{ab} libgl2ps0{a} libglpk36{a} libgraphicsmagick++-q16-12{a} 
  libgraphicsmagick-q16-3{a} libhdf5-10{a} libjasper1{a} liblapack3{a} liblua5.1-0{a} libmagick++-6.q16-5v5{a} libmng2{a} 
  libmysqlclient20{a} liboctave3{a} libopenblas-base{a} libosmesa6{a} libplot2c2{a} libpstoedit0c2a{a} libqhull7{a} 
  libqrupdate1{a} libqscintilla2-12v5{a} libqscintilla2-l10n{a} libqt4-dbus{a} libqt4-declarative{a} libqt4-network{a} 
  libqt4-opengl{a} libqt4-script{a} libqt4-sql{a} libqt4-sql-mysql{a} libqt4-xml{a} libqt4-xmlpatterns{a} libqtcore4{a} 
  libqtdbus4{a} libqtgui4{a} libsz2{a} libtext-unidecode-perl{a} libumfpack5.7.1{a} libxml-libxml-perl{a} 
  libxml-namespacesupport-perl{a} libxml-sax-base-perl{a} libxml-sax-expat-perl{a} libxml-sax-perl{a} mysql-common{a} octave 
  octave-common{a} openjdk-8-jre-headless{a} pstoedit{a} qdbus{a} qt-at-spi{a} qtchooser{a} qtcore4-l10n{a} tex-common{a} 
  texinfo{a} 
0 packages upgraded, 70 newly installed, 0 to remove and 0 not upgraded.
Need to get 66.2 MB of archives. After unpacking 283 MB will be used.
The following packages have unmet dependencies:
 libgfortran3 : Depends: gcc-5-base (= 5.3.1-14ubuntu2) but 5.4.0-6ubuntu1~16.04.1 is installed.
The following actions will resolve these dependencies:

      Keep the following packages at their current version:
1)      libarpack2 [Not Installed]                         
2)      libcholmod3.0.6 [Not Installed]                    
3)      libgfortran3 [Not Installed]                       
4)      libhdf5-10 [Not Installed]                         
5)      liblapack3 [Not Installed]                         
6)      liboctave3 [Not Installed]                         
7)      libopenblas-base [Not Installed]                   
8)      libqrupdate1 [Not Installed]                       
9)      libumfpack5.7.1 [Not Installed]                    
10)     octave [Not Installed]                             

      Leave the following dependencies unresolved:         
11)     octave recommends libopenblas-base | libatlas3-base

esta linha mostra quando eu quero instalar outro pacote:

Depends: gcc-5-base (= 5.3.1-14ubuntu2) but 5.4.0-6ubuntu1~16.04.1 is installed.

por exemplo, para g++ :

$ sudo apt install g++
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:
 g++ : Depends: g++-5 (>= 5.3.1-3~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

eu configurei o repo para o site principal do ubunu e execute apt-get update , mas não resolva

eu corro apt-get update , apt-get upgrade , aptget -f install ,

e ... mas não resolve o problema

    
por بارپابابا 26.11.2016 / 17:49

1 resposta

0

Eu corro sudo aptitude octave e instale o pacote de downgrade

versão gcc-5-base 5.4.0 instalado no sistema, mas eu faço downgrade para gcc-5-base 5.3.1

eu executo este comando sudo aptitude octave e no prompt de comando eu digitei . e depois pressione enter para mostrar a próxima solução para downgrade. então eu aceito resolver com o tipo Y . O pacote gcc-5-base foi desclassificado e o octave instalado e o sistema não é problema.

    
por بارپابابا 27.11.2016 / 13:44