GNU/Linux >> Linux Esercitazione >  >> Ubuntu

Impossibile installare Thesql-workbench per Ubuntu 16.04 Lts?

Ho dato un'occhiata alle diverse risposte ma nessuna ha risolto il mio problema.
Innanzitutto, ho provato sudo apt install mysql-workbench -f .

Mostra

The following packages have unmet dependencies:  mysql-workbench :
Depends: libgdal.so.1-1.11.3
                   Depends: libgdal1i (>= 1.8.0) but it is not going to be installed
                   Recommends: mysql-utilities but it is not going to be installed 
E: Unable to correct problems, you have held broken
packages.

Se ho provato ad installare libgdal1i , mostrerà

The following packages have unmet dependencies:  libgdal1i : Depends:
libarmadillo6 but it is not going to be installed
             Depends: libhdf5-10 but it is not going to be installed
             Depends: libnetcdf11 (>= 4.0.1) but it is not going to be installed 
E: Unable to correct problems, you have held broken packages.

Non c'è fine a questa storia. Ho provato a installare un dep ma mi dice sempre che un altro dep è mancante e deve essere installato.
Inoltre, non so perché dice E: Unable to correct problems, you have held broken . Ho controllato in synaptic ->custom filters ->broken , non c'è niente.

Inoltre, ho provato sudo aptitude install mysql-workbench -f poiché altri post dicevano aptitude è meglio.

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.  mysql-connector-python : Conflicts: python-mysql.connector
but 2.0.4-1 is to be installed. The following actions will resolve
these dependencies:

      Keep the following packages at their current version: 
1)      libarmadillo6 [Not Installed]   
2)      libarpack2> [Not Installed]   
3)      libgdal1i [Not Installed]
4)      libgfortran3 [Not Installed] 
5)      libhdf5-10 [Not Installed]  
6)      liblapack3 [Not Installed]                        
7)      libnetcdf11 [Not Installed]
8)      mysql-connector-python [Not Installed]
9)      mysql-utilities [Not Installed]
10)     mysql-workbench [Not Installed]                    



Accept this solution? [Y/n/q/?]  No packages will be installed,
upgraded, or removed. 0 packages upgraded, 0 newly installed, 0 to
remove and 0 not to upgrade. Need to get 0 B of archives. After
unpacking 0 B will be used.

Ho accettato la soluzione digitando enter , come puoi vedere il problema non è stato risolto.

Nell'ultimo, ho provato a scaricare .deb dal sito ufficiale e installa. Nessuna fortuna e vengono richiesti errori simili.

Inserendo apt-cache policy mysql-workbench libgdal1i gcc-5-base libhdf5-10 , visualizza:

mysql-workbench:   
   Installed: (none)
   Candidate: 6.3.6+dfsg-0ubuntu1  Version table:
         6.3.6+dfsg-0ubuntu1 500
            500 http://au.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages 

libgdal1i:   
   Installed: (none)
   Candidate:    1.11.3+dfsg-3build2
   Version table:
         1.11.3+dfsg-3build2 500
            500 http://au.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages 

gcc-5-base:
   Installed: 5.4.0-6ubuntu1~16.04.1
   Candidate: 5.4.0-6ubuntu1~16.04.1
   Version table:
  *** 5.4.0-6ubuntu1~16.04.1 100
            100 /var/lib/dpkg/status
         5.3.1-14ubuntu2 500
            500 http://au.archive.ubuntu.com/ubuntu xenial/main amd64 Packages 

libhdf5-10:
   Installed: (none)
   Candidate:  1.8.16+docs-4ubuntu1
   Version table:
         1.8.16+docs-4ubuntu1 500
            500 http://au.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages

Il risultato di apt-cache policy libgfortran3 libarmadillo6 libnetcdf11 python-mysql.connector è

libgfortran3:
Installed: 5.3.1-14ubuntu2
Candidate: 5.3.1-14ubuntu2
Version table:
*** 5.3.1-14ubuntu2 500
500 http://au.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
100 /var/lib/dpkg/status
libarmadillo6:
Installed: 1:6.500.5+dfsg-1
Candidate: 1:6.500.5+dfsg-1
Version table:
*** 1:6.500.5+dfsg-1 500
500 http://au.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
100 /var/lib/dpkg/status
libnetcdf11:
Installed: 1:4.4.0-2
Candidate: 1:4.4.0-2
Version table:
*** 1:4.4.0-2 500
500 http://au.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
100 /var/lib/dpkg/status
python-mysql.connector:
Installed: 2.0.4-1
Candidate: 2.0.4-1
Version table:
*** 2.0.4-1 500
500 http://au.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
500 http://au.archive.ubuntu.com/ubuntu xenial/universe i386 Packages
100 /var/lib/dpkg/status

Il risultato di grep -v ^# -r /etc/apt/sources.list etc/apt/sources.list.d/*.list è:

Correlati:nessun modo sicuro per rimuovere il software GNOME in 16.04 e installare il classico Ubuntu Software Center?

/etc/apt/sources.list:
/etc/apt/sources.list:deb http://au.archive.ubuntu.com/ubuntu/ xenial main restricted
/etc/apt/sources.list:
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://au.archive.ubuntu.com/ubuntu/ xenial universe
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://au.archive.ubuntu.com/ubuntu/ xenial multiverse
/etc/apt/sources.list:
/etc/apt/sources.list:
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main
/etc/apt/sources.list.d/google-chrome.list:deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
/etc/apt/sources.list.d/mysql.list:deb http://repo.mysql.com/apt/ubuntu/ xenial mysql-apt-config
/etc/apt/sources.list.d/mysql.list:deb http://repo.mysql.com/apt/ubuntu/ xenial mysql-5.7
/etc/apt/sources.list.d/mysql.list:deb http://repo.mysql.com/apt/ubuntu/ xenial mysql-tools
/etc/apt/sources.list.d/mysql.list:deb-src http://repo.mysql.com/apt/ubuntu/ xenial mysql-5.7
/etc/apt/sources.list.d/slack.list:deb https://packagecloud.io/slacktechnologies/slack/debian/ jessie main
/etc/apt/sources.list.d/sublime-text.list:deb https://download.sublimetext.com/ apt/stable/

Risposta accettata:

Sembra che tu abbia dimenticato di eseguire sudo apt-get update prima di installare MySQL Workbench (il mirror australiano è sincronizzato normalmente, ha la versione corretta di gcc-5-base nel pool).

Se non aiuta, prova a passare al server principale (Software e aggiornamenti o software-properties-gtk , Software Ubuntu scheda, imposta Scarica da al server principale ).

Di sicuro aggiungi tutti i repository ufficiali con:

sudo add-apt-repository main
sudo add-apt-repository universe
sudo add-apt-repository multiverse

Assicurati di aver abilitato xenial-updates e xenial-security sezioni:

  1. apri software-properties-gtk
  2. vai su Aggiornamenti scheda
  3. seleziona le prime due caselle di controllo:(xenial-updates) e (xenial-security)
  4. inserisci la password, fai clic su Autentica
  5. fai clic su Chiudi , quindi Ricarica e aspetta che finisca.

Quindi esegui

sudo apt-get update   
sudo apt-get install -f
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install mysql-workbench

Ubuntu
  1. Installa Dokuwiki su Ubuntu 20.04 LTS

  2. Installa Karbon su Ubuntu 20.04 LTS

  3. Impossibile installare Thesql 5.7 su Ubuntu 20.04?

  4. Alexa per Ubuntu?

  5. Non riesco a installare Chromium o Chrome su Ubuntu 16.04 Lts?

Installa Code-Server per il codice VS su Ubuntu 22.04 o 20.04 LTS

Installa Mono su Ubuntu 20.04 LTS

Come installare Vai su Ubuntu 22.04 LTS

Come installare Vai su Ubuntu 18.04 LTS

Come installare Vai su Ubuntu 20.04 LTS

Come installare il modulo Brotli per Nginx su Ubuntu 20.04 LTS