سؤال كيف يمكنني حل مشكلات التبعية مع فايرفوكس؟ [مكرر]


ممكن تكرار:
كيف أقوم بحل تبعيات غير ملباة؟ 

لا أستطيع فعل أي شيء من Ubuntu Software Center او من Terminal

هذا ما أحصل عليه من سطر الأوامر:

deus@comp:~$ sudo apt-get autoremove
[sudo] password for deus: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
firefox-globalmenu : Depends: firefox (= 18.0+build1-0ubuntu0.12.04.3) but it is not installed
E: Unmet dependencies. Try using -f.
deus@comp:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
firefox
Suggested packages:
latex-xft-fonts firefox-gnome-support
The following NEW packages will be installed:
firefox
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
1 not fully installed or removed.
Need to get 0 B/23.7 MB of archives.
After this operation, 49.7 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
(Reading database ... 203826 files and directories currently installed.)
Unpacking firefox (from .../firefox_18.0+build1-0ubuntu0.12.04.3_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/firefox_18.0+build1-0ubuntu0.12.04.3_i386.deb (--unpack):
trying to overwrite '/usr/lib/firefox/plugins', which is also in package adobe-flashplugin 11.2.202.261-0precise1
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for man-db ...
Errors were encountered while processing:
/var/cache/apt/archives/firefox_18.0+build1-0ubuntu0.12.04.3_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
deus@comp:~$ sudo apt-get clean
deus@comp:~$ sudo apt-get check
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
firefox-globalmenu : Depends: firefox (= 18.0+build1-0ubuntu0.12.04.3) but it is not installed
E: Unmet dependencies. Try using -f.
deus@comp:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
firefox
Suggested packages:
latex-xft-fonts firefox-gnome-support
The following NEW packages will be installed:
firefox
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
1 not fully installed or removed.
Need to get 23.7 MB of archives.
After this operation, 49.7 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://gr.archive.ubuntu.com/ubuntu/ precise-updates/main firefox i386 18.0+build1-0ubuntu0.12.04.3 [23.7 MB]
Fetched 23.7 MB in 1min 27s (271 kB/s)                                         
(Reading database ... 203826 files and directories currently installed.)
Unpacking firefox (from .../firefox_18.0+build1-0ubuntu0.12.04.3_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/firefox_18.0+build1-0ubuntu0.12.04.3_i386.deb (--unpack):
trying to overwrite '/usr/lib/firefox/plugins', which is also in package adobe-flashplugin 11.2.202.261-0precise1
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for man-db ...
Errors were encountered while processing:
/var/cache/apt/archives/firefox_18.0+build1-0ubuntu0.12.04.3_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

أي أفكار حول ما هو الخطأ؟

تحرير / الإجابة على التعليقات

Lucio فعلت ما قلته وهنا هي النتيجة.

deus@comp:~$ sudo dpkg -r firefox
dpkg: warning: there's no installed package matching firefox
deus@comp:~$ ^C
deus@comp:~$ apt-get -f install && sudo apt-get update && sudo apt-get upgrade
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
deus@comp:~$ sudo apt-get -f install && sudo apt-get update && sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
firefox
Suggested packages:
latex-xft-fonts firefox-gnome-support
The following NEW packages will be installed:
firefox
0 upgraded, 1 newly installed, 0 to remove and 8 not upgraded.
1 not fully installed or removed.
Need to get 0 B/23.7 MB of archives.
After this operation, 49.7 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
(Reading database ... 203826 files and directories currently installed.)
Unpacking firefox (from .../firefox_18.0+build1-0ubuntu0.12.04.3_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/firefox_18.0+build1-0ubuntu0.12.04.3_i386.deb (--unpack):
trying to overwrite '/usr/lib/firefox/plugins', which is also in package adobe-flashplugin 11.2.202.261-0precise1
No apport report written because MaxReports is reached already
                                                            Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for man-db ...
Errors were encountered while processing:
/var/cache/apt/archives/firefox_18.0+build1-0ubuntu0.12.04.3_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

4
2018-01-16 19:44


الأصل


Aditya حل هذه المشكلة ليس موجودًا نظرًا لأنه لا يستند إلى جذر المشكلة تبعيات غير ملباة. - Lucio


الأجوبة:


كما ألاحظ أن لديك مشاكل في التثبيت firefox لأنه يحاول الكتابة فوق الدليل المستخدم من قبل adobe-flashplugin. لذلك تحتاج إلى إلغاء تثبيت هذا المكون الإضافي أولاً:

sudo apt-get remove adobe-flashplugin* 

الآن تثبيت سوف تكون قادرة على تثبيت فايرفوكس دون مشاكل.

sudo apt-get update
sudo apt-get install firefox

لمزيد من المعلومات المتعلقة بالمشكلة E: Sub-process /usr/bin/dpkg returned an error code (1) إعادة النظر هذا السؤال.


4
2018-01-16 20:11



لم يفعل ذلك - Deus Deceit
نعم لقد فعلت أنا أيضا أفسدت مع الكثير من الاشياء. أعتقد أنني أزلت كل ما يتعلق بها. ولكن ما زلت لا أستطيع تثبيته مرة أخرى. أحصل على خطأ عند محاولة إعادة التثبيت. - Deus Deceit
شكرا على محاولة المساعدة ... أراهن على التعليقات أعلاه لا تظهر الكثير من الامتنان. آسف إذا كان هذا هو ما يبدو. - Deus Deceit
إزالة adobe-flashplugin وحاول مرة أخرى. لازالة: sudo apt-get remove adobe-flashplugin* - Lucio
بهذه البساطة ... عملت! أضف ذلك إلى إجابتك إذا كنت تريد. سوف أضع علامة على أنه مقبول على أي حال. - Deus Deceit