انجمنهای فارسی اوبونتو
کمک و پشتیبانی => نصب، راهاندازی و بروزآوری => نویسنده: haghighati در 06 دی 1392، 08:45 قظ
-
سلام دوستان چند روزه وقتی می خوام بروز رسانی کنم با این ارور مواجه میشم
Check if you are using third party repositories. If so disable them, since they are a common source of problems.
Furthermore run the following command in a Terminal: apt-get install -f
بعدش که فرمان خواسته شده رو توی ترمینال میزنم با این جواب مواجه میشم
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؟
-
ابتدا این دستور رو بزنید
sudo rm /var/lib/dpkg/lock
وحالا
sudo apt-get install -f
-
حل نشد این دفعه این ارور رو میده:
E: Sub-process /usr/bin/dpkg returned an error code (1)
-
sudo dpkg --configure -a
اگر بازهم حل نشد متن کامل خطا رو بذارید
-
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libstlport4.6ldbl libboost-python1.46.1 gir1.2-ubuntuoneui-3.0 libcmis-0.2-0
python-qt4 libubuntuoneui-3.0-1 python-sip libmagick++4 python-pythonmagick
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libreoffice-calc libreoffice-draw libreoffice-gnome libreoffice-gtk
libreoffice-impress
Suggested packages:
libreoffice-evolution
The following packages will be upgraded:
libreoffice-calc libreoffice-draw libreoffice-gnome libreoffice-gtk
libreoffice-impress
5 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
5 not fully installed or removed.
Need to get 0 B/9,917 kB of archives.
After this operation, 16.4 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: dependency problems prevent configuration of libreoffice-calc:
libreoffice-calc depends on libreoffice-base-core (= 1:4.1.3-0ubuntu1~precise1~ppa1); however:
Version of libreoffice-base-core on system is 1:4.1.4~rc2-0ubuntu1~precise1~ppa1.
libreoffice-calc depends on libreoffice-core (= 1:4.1.3-0ubuntu1~precise1~ppa1); however:
Version of libreoffice-core on system is 1:4.1.4~rc2-0ubuntu1~precise1~ppa1.
libreoffice-core (1:4.1.4~rc2-0ubuntu1~precise1~ppa1) breaks libreoffice-calc (<< 1:4.1.4~rc2-0ubuntu1~precise1~ppa1) and is installed.
Version of libreoffice-calc to be configured is 1:4.1.3-0ubuntu1~precise1~ppa1.
dpkg: error processing libreoffice-calc (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of libreoffice-draw:
libreoffice-draw depends on libreoffice-core (= 1:4.1.3-0ubuntu1~precise1~ppa1); however:
Version of libreoffice-core on system is 1:4.1.4~rc2-0ubuntu1~precise1~ppa1.
libreoffice-core (1:4.1.4~rc2-0ubuntu1~precise1~ppa1) breaks libreoffice-draw (<< 1:4.1.4~rc2-0ubuntu1~precise1~ppa1) and is installed.
Version of libreoffice-draw to be configured is 1:4.1.3-0ubuntu1~precise1~ppa1.
dpkg: error processing libreoffice-draw (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-impress:
libreoffice-impress depends on libreoffice-core (= 1:4.1.3-0ubuntu1~precise1~ppa1); however:
Version of libreoffice-core on system is 1:4.1.4~rc2-0ubuntu1~precise1~ppa1.
libreoffice-impress depends on libreoffice-draw (= 1:4.1.3-0ubuntu1~precise1~ppa1); however:
No apport report written because MaxReports is reached already
Package libreoffice-draw is not configured yet.
libreoffice-core (1:4.1.4~rc2-0ubuntu1~precise1~ppa1) breaks libreoffice-impress (<< 1:4.1.4~rc2-0ubuntu1~precise1~ppa1) and is installed.
Version of libreoffice-impress to be configured is 1:4.1.3-0ubuntu1~precise1~ppa1.
dpkg: error processing libreoffice-impress (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of libreoffice-gtk:
libreoffice-gtk depends on libreoffice-core (= 1:4.1.3-0ubuntu1~precise1~ppa1); however:
Version of libreoffice-core on system is 1:4.1.4~rc2-0ubuntu1~precise1~ppa1.
libreoffice-core (1:4.1.4~rc2-0ubuntu1~precise1~ppa1) breaks libreoffice-gtk (<< 1:4.1.4~rc2-0ubuntu1~precise1~ppa1) and is installed.
Version of libreoffice-gtk to be configured is 1:4.1.3-0ubuntu1~precise1~ppa1.
dpkg: error processing libreoffice-gtk (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of libreoffice-gnome:
libreoffice-gnome depends on libreoffice-core (= 1:4.1.3-0ubuntu1~precise1~ppa1); however:
Version of libreoffice-core on system is 1:4.1.4~rc2-0ubuntu1~precise1~ppa1.
libreoffice-gnome depends on libreoffice-gtk; however:
Package libreoffice-gtk is not configured yet.
libreoffice-core (1:4.1.4~rc2-0ubuntu1~precise1~ppa1) breaks libreoffice-gnome (<< 1:4.1.4~rc2-0ubuntu1~precise1~ppa1) and is installed.
Version of libreoffice-gnome to be configured is 1:4.1.3-0ubuntu1~precise1~ppa1.
dpkg: error processing libreoffice-gnome (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Errors were encountered while processing:
libreoffice-calc
libreoffice-draw
libreoffice-impress
libreoffice-gtk
libreoffice-gnome
E: Sub-process /usr/bin/dpkg returned an error code (1)
-
ابتدا دستور زیر رو بزنید:
sudo apt-get autoremove
حالا ppa زیر رو اضافه کنید به مخازنتون.
ppa:libreoffice/ppa
و بعد
sudo apt-get update
sudo apt-get install libreoffice
-
اولین دستور رو که میزنم این پیام رو میده:
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:
libreoffice-calc : Depends: libreoffice-base-core (= 1:4.1.3-0ubuntu1~precise1~ppa1) but 1:4.1.4~rc2-0ubuntu1~precise1~ppa1 is installed
Depends: libreoffice-core (= 1:4.1.3-0ubuntu1~precise1~ppa1) but 1:4.1.4~rc2-0ubuntu1~precise1~ppa1 is installed
libreoffice-core : Breaks: libreoffice-calc (< 1:4.1.4~rc2-0ubuntu1~precise1~ppa1) but 1:4.1.3-0ubuntu1~precise1~ppa1 is installed
Breaks: libreoffice-draw (< 1:4.1.4~rc2-0ubuntu1~precise1~ppa1) but 1:4.1.3-0ubuntu1~precise1~ppa1 is installed
Breaks: libreoffice-gnome (< 1:4.1.4~rc2-0ubuntu1~precise1~ppa1) but 1:4.1.3-0ubuntu1~precise1~ppa1 is installed
Breaks: libreoffice-gtk (< 1:4.1.4~rc2-0ubuntu1~precise1~ppa1) but 1:4.1.3-0ubuntu1~precise1~ppa1 is installed
Breaks: libreoffice-impress (< 1:4.1.4~rc2-0ubuntu1~precise1~ppa1) but 1:4.1.3-0ubuntu1~precise1~ppa1 is installed
libreoffice-draw : Depends: libreoffice-core (= 1:4.1.3-0ubuntu1~precise1~ppa1) but 1:4.1.4~rc2-0ubuntu1~precise1~ppa1 is installed
libreoffice-gnome : Depends: libreoffice-core (= 1:4.1.3-0ubuntu1~precise1~ppa1) but 1:4.1.4~rc2-0ubuntu1~precise1~ppa1 is installed
libreoffice-gtk : Depends: libreoffice-core (= 1:4.1.3-0ubuntu1~precise1~ppa1) but 1:4.1.4~rc2-0ubuntu1~precise1~ppa1 is installed
libreoffice-impress : Depends: libreoffice-core (= 1:4.1.3-0ubuntu1~precise1~ppa1) but 1:4.1.4~rc2-0ubuntu1~precise1~ppa1 is installed
E: Unmet dependencies. Try using -f.
-
این رو تو ترمینال وارد کن:
sudo apt-get -f install