Wie wählt man die Abhängigkeitsabhängigkeit während der Paketinstallation unter Debian?

384
problemofficer

Ich möchte Roundcube installieren und PostgreSQL verwenden, aber Debian möchte mariadb und mysql als abhängigkeit installieren.

Einzelheiten:

Ich versuche, Roundcube zu installieren, der vom Roundcube-Core abhängt, der wiederum von Mysql oder Sqlite oder Postresql abhängt:

# aptitude show roundcube-core ... Depends:...roundcube-mysql (= 1.1.4+dfsg.1-1~bpo8+1) | roundcube-sqlite3 (= 1.1.4+dfsg.1-1~bpo8+1) | roundcube-pgsql (= 1.1.4+dfsg.1-1~bpo8+1)... 

Ich möchte Postgresql verwenden. Wenn ich versuche, roundcube-core zu installieren, möchte apt mariadb und mysql installieren, ohne mich zu fragen, welche Datenbank ich verwenden möchte.

# aptitude install roundcube The following NEW packages will be installed: aspell aspell-en dictionaries-common emacsen-common libaspell15 libc-client2007e libdbd-mysql-perl libltdl7 libmcrypt4 libmysqlclient18  libterm-readkey-perl mariadb-client mariadb-client-10.0 mariadb-client-core-10.0 mariadb-common mlock mysql-common php-auth php-auth-sasl php-db  php-http-request php-log php-mail php-mail-mime php-mail-mimedecode php-mdb2 php-net-dime php-net-ldap2 php-net-ldap3 php-net-sieve php-net-smtp  php-net-socket php-net-url php-soap php5-imap php5-intl php5-mcrypt php5-mysqlnd php5-pspell php5-sqlite roundcube roundcube-core roundcube-mysql  0 packages upgraded, 43 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/7,850 kB of archives. After unpacking 58.4 MB will be used. Do you want to continue? [Y/n/?] 

Ich denke, das ist vorher nicht passiert. Ich hätte vielleicht etwas kaputtgemacht. Was könnte die Ursache sein?

Hinweis: Ich benutze Jessie-Backports, um Roundcube zu installieren.

1

1 Antwort auf die Frage

0
Dario Seidl

Afaik, aptitude wird den ersten aus der Liste der Abhängigkeiten installieren. In Ihrem Fall ist das so roundcube-mysql.

Um ein anderes zu installieren, fügen Sie es einfach dem Installationsbefehl hinzu:

aptitude install roundcube roundcube-pgsql+M 

Das +Mist zwar nicht notwendig, sagt Eignung der markieren roundcube-pgsqlals automatisch installiert, wie die anderen Abhängigkeiten.