انجمنهای فارسی اوبونتو
کمک و پشتیبانی => انجمن عمومی => نویسنده: rbenyro در 29 مهر 1398، 10:18 بظ
-
سلام دوستان کسی میتونه توضیح بده دستور
sudo apt-get install -f
دقیقا چیکار میکته ؟
من opera-stable رو نمیتونستم نصب کنم با این ارور
Selecting previously unselected package opera-stable.
(Reading database ... 179353 files and directories currently installed.)
Preparing to unpack opera-stable_64.0.3417.61_amd64.deb ...
Unpacking opera-stable (64.0.3417.61) ...
dpkg: dependency problems prevent configuration of opera-stable:
opera-stable depends on libcurl3 (>= 7.16.2) | libcurl4 (>= 7.58.0); however:
Package libcurl3 is not installed.
Package libcurl4 is not installed.
dpkg: error processing package opera-stable (--install):
dependency problems - leaving unconfigured
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for shared-mime-info (1.9-2) ...
Errors were encountered while processing:
opera-stable
که مشکلم حل شد با اون دستور
ممنون میشم کمکم کنید
-
به نقل از man apt-get
-f, --fix-broken
Fix; attempt to correct a system with broken dependencies
in place. This option, when used with install/remove, can
omit any packages to permit APT to deduce a likely
solution. If packages are specified, these have to
completely correct the problem. The option is sometimes
necessary when running APT for the first time; APT itself
does not allow broken package dependencies to exist on a
system. It is possible that a system's dependency
structure can be so corrupt as to require manual
intervention (which usually means using dpkg --remove to
eliminate some of the offending packages). Use of this
option together with -m may produce an error in some
situations. Configuration Item: APT::Get::Fix-Broken.
-
نمیدونم ولی بنظرم برای نصب کتابخانه های مورد نیاز هستش .
اگه با apt برنامه ها رو نصب کنید نیازی به این دستور نیست ولی اگه از اینترنت یه برنامه بگیرید با این دستور پکیج هایی که وجود ندارن رو دانلود میکنه.
پس احتمالا شما هم مثل من اوپرا رو از سایتش دانلود کردید و بعضی پکیج هایی که همراهش نبودن رو با دستور
sudo apt install -f
نصب کردین.
-
وقتی شما از اینترنت یه برنامه ای رو ناقص دانلود میکنید در هنگام نصب نصب نمیشه و ارور میده و مینویسه package has broken یعنی برنامه ی ناقص یا شکسته شده اگر کمی انگلیسی بلد باشید fix یعنی تعمیر پس دستور sudo apt install --fix-broken یعنی تعمیر فایل نصب یا به نوعی کامل کردنش