Sto usando PureOS, che è sostanzialmente Debian con alcune piccole modifiche. Ho provato a installare Firefox su di esso, ma ho finito con un casino completo. Se ora provo a fare un aggiornamento di base, ottengo questo:
$ sudo apt update && sudo apt upgrade
Ign:1 http://deb.debian.org/debian stretch InRelease
Get:2 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:3 http://deb.opera.com/opera stable InRelease [2592 B]
Get:4 http://security.debian.org stretch/updates InRelease [63.0 kB]
Hit:5 http://deb.debian.org/debian stretch Release
Get:6 https://repo.skype.com/deb stable InRelease [4486 B]
Get:7 http://deb.opera.com/opera stable/non-free amd64 Packages [1835 B]
Get:8 http://packages.microsoft.com/repos/vscode stable InRelease [2801 B]
Get:9 http://repository.spotify.com stable InRelease [3302 B]
Get:10 http://repo.puri.sm/pureos green InRelease [9427 B]
Get:12 http://security.debian.org stretch/updates/main Sources [110 kB]
Get:13 http://security.debian.org stretch/updates/contrib Sources [1384 B]
Get:14 http://security.debian.org stretch/updates/main amd64 Packages [271 kB]
Get:15 https://repo.skype.com/deb stable/main amd64 Packages [2251 B]
Get:16 http://security.debian.org stretch/updates/main Translation-en [120 kB]
Get:17 http://security.debian.org stretch/updates/contrib amd64 Packages [1776 B]
Get:18 http://security.debian.org stretch/updates/contrib Translation-en [1759 B]
Get:19 https://download.sublimetext.com apt/stable/ InRelease [2562 B]
Get:20 http://packages.microsoft.com/repos/vscode stable/main amd64 Packages [39.6 kB]
Ign:21 https://mega.nz/linux/MEGAsync/Debian_9.0 ./ InRelease
Get:22 http://repo.puri.sm/pureos green/main amd64 Packages [6286 kB]
Get:23 https://mega.nz/linux/MEGAsync/Debian_9.0 ./ Release [976 B]
Get:26 http://repo.puri.sm/pureos green/main Translation-en [5583 kB]
Hit:24 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease
Get:27 http://repo.puri.sm/pureos green/main amd64 DEP-11 Metadata [2202 kB]
Get:28 http://repo.puri.sm/pureos green/main DEP-11 64x64 Icons [6768 kB]
Fetched 21.6 MB in 4s (5487 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
59 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
iceweasel : Depends: firefox-esr but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Quindi ho provato a suggerire:
$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
firefox-esr
Suggested packages:
fonts-stix | otf-stix fonts-lmodern mozplugger
The following NEW packages will be installed:
firefox-esr
0 upgraded, 1 newly installed, 0 to remove and 59 not upgraded.
2 not fully installed or removed.
Need to get 0 B/46.5 MB of archives.
After this operation, 114 MB of additional disk space will be used.
Do you want to continue? [Y/n]
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US",
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 227765 files and directories currently installed.)
Preparing to unpack .../firefox-esr_52.6.0esr-1~deb9u1_amd64.deb ...
dpkg-divert: error: 'diversion of /usr/bin/firefox to /usr/bin/firefox.real by firefox-esr' clashes with 'diversion of /usr/bin/firefox to /usr/bin/firefox.real by purebrowser'
dpkg: error processing archive /var/cache/apt/archives/firefox-esr_52.6.0esr-1~deb9u1_amd64.deb (--unpack):
new firefox-esr package pre-installation script subprocess returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/firefox-esr_52.6.0esr-1~deb9u1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
E ora sono un po 'bloccato.
Qualcuno sa cosa posso fare per pulire questo casino? Tutti i suggerimenti sono benvenuti!
[MODIFICARE]
Ho provato a rimuovere Firefox in molti modi:
$ sudo apt -y remove firefox
[sudo] password for hielke:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'firefox' is not installed, so not removed
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
iceweasel : Depends: firefox-esr but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Ho anche provato le seguenti varianti, ma tutte hanno dato risultati simili:
sudo apt remove firefox
sudo apt purge firefox
sudo apt remove firefox-esr
sudo apt purge firefox-esr
sudo apt remove iceweasel
sudo apt purge iceweasel
sudo apt remove purebrowser
sudo apt purge purebrowser
[MODIFICA 2]
Dopo la risposta di @alan ho provato a rimuovere il diversivo:
$ sudo dpkg-divert --remove /usr/bin/firefox
Removing 'diversion of /usr/bin/firefox to /usr/bin/firefox.real by purebrowser'
Dopo quello ho fatto un aggiornamento e poi un aggiornamento:
$ sudo apt update
Hit:1 http://security.debian.org stretch/updates InRelease
Hit:2 http://repo.puri.sm/pureos green InRelease
Hit:3 http://deb.opera.com/opera stable InRelease
Ign:4 http://deb.debian.org/debian stretch InRelease
Hit:5 http://packages.microsoft.com/repos/vscode stable InRelease
Hit:6 http://deb.debian.org/debian stretch-updates InRelease
Hit:7 http://deb.debian.org/debian stretch Release
Hit:8 https://repo.skype.com/deb stable InRelease
Ign:9 https://mega.nz/linux/MEGAsync/Debian_9.0 ./ InRelease
Hit:10 http://repository.spotify.com stable InRelease
Hit:11 https://download.sublimetext.com apt/stable/ InRelease
Get:12 https://mega.nz/linux/MEGAsync/Debian_9.0 ./ Release [976 B]
Hit:14 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease
Fetched 976 B in 3s (385 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
135 packages can be upgraded. Run 'apt list --upgradable' to see them.
$
$
$
$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
iceweasel : Depends: firefox-esr but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Purtroppo lo stesso risultato che puoi vedere. Ho provato apt --fix-broken install
solo per essere sicuro, ma questo ha dato lo stesso risultato di prima.
Quindi ho usato il comando per trovare altre deviazioni (anche se non sono sicuro al 100% di quali deviazioni siano esattamente):
& sudo dpkg-divert --list | grep firefox
diversion of /usr/share/applications/firefox-esr.desktop to /usr/share/applications/firefox-esr.desktop.diverted by xul-ext-iceweasel-branding
Quindi ho appena compilato ciò che pensavo fosse giusto:
$ sudo dpkg-divert --remove /usr/share/applications/firefox-esr.desktop
Removing 'diversion of /usr/share/applications/firefox-esr.desktop to /usr/share/applications/firefox-esr.desktop.diverted by xul-ext-iceweasel-branding'
ma di nuovo ottengo lo stesso:
$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
iceweasel : Depends: firefox-esr but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
e un altro prova a risolverlo:
$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
firefox-esr
Suggested packages:
fonts-stix | otf-stix fonts-lmodern mozplugger
The following NEW packages will be installed:
firefox-esr
0 upgraded, 1 newly installed, 0 to remove and 135 not upgraded.
2 not fully installed or removed.
Need to get 0 B/46.5 MB of archives.
After this operation, 114 MB of additional disk space will be used.
Do you want to continue? [Y/n]
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US",
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 227763 files and directories currently installed.)
Preparing to unpack .../firefox-esr_52.6.0esr-1~deb9u1_amd64.deb ...
Adding 'diversion of /usr/bin/firefox to /usr/bin/firefox.real by firefox-esr'
Unpacking firefox-esr (52.6.0esr-1~deb9u1) ...
dpkg: error processing archive /var/cache/apt/archives/firefox-esr_52.6.0esr-1~deb9u1_amd64.deb (--unpack):
trying to overwrite '/usr/share/applications/firefox-esr.desktop', which is also in package xul-ext-iceweasel-branding 0.4.0
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/firefox-esr_52.6.0esr-1~deb9u1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Qualche altro consiglio?
[EDIT 3]
Seguendo i suggerimenti di @harrymc ho provato a eseguire questo:
$ sudo apt-get install iceweasel
[sudo] password for hielke:
Reading package lists... Done
Building dependency tree
Reading state information... Done
iceweasel is already the newest version (52.6.0esr-1~deb9u1).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
iceweasel : Depends: firefox-esr but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Come vedi non ha funzionato. Quindi ecco l'output apt-cache policy firefox-esr
:
$ apt-cache policy firefox-esr
firefox-esr:
Installed: (none)
Candidate: 52.6.0esr-1~deb9u1
Version table:
52.6.0esr-1~deb9u1 500
500 http://security.debian.org stretch/updates/main amd64 Packages
52.5.0esr-1~deb9u1 500
500 http://deb.debian.org/debian stretch/main amd64 Packages
Solo per informazioni, ecco i contenuti del mio /etc/apt/sources.list
:
deb http://repo.puri.sm/pureos/ green main
deb http://deb.opera.com/opera/ stable non-free
# deb-src http://deb.opera.com/opera/ stable non-free
# deb http://security.debian.org/debian-security stretch/updates main
# deb http://httpredir.debian.org/debian/ stretch main contrib non-free
deb http://deb.debian.org/debian stretch main contrib non-free
deb-src http://deb.debian.org/debian stretch main contrib non-free
deb http://deb.debian.org/debian stretch-updates main contrib non-free
deb-src http://deb.debian.org/debian stretch-updates main contrib non-free
deb http://security.debian.org/ stretch/updates main contrib non-free
deb-src http://security.debian.org/ stretch/updates main contrib non-free
Questo ti dice qualcosa?
sudo apt-get install iceweasel
. Se ciò non aiuta, fornire l'output di apt-cache policy firefox-esr
. E quale repository stai usando con apt?
sudo apt -y remove <package-name>