انجمنهای فارسی اوبونتو
کمک و پشتیبانی => انجمن عمومی => نویسنده: ni3ma در 16 بهمن 1402، 11:23 قظ
-
سلام. اوبونتو 22.04 نصب کردم از طریق software updater میخواستم سیستم رو آپدیت کنم که موقع نصب بسته ها دچار مشکل شد و این پیام رو داد (توی عکس) حالا نه میتونه نرم افزار نصب کنه و نه سیستم رو آپدیت کنه. نرم افزارها نه از استور نصب میشن نه از ترمینال. اگه یه راه ساده و سریع برای تعمیرش هست راهنمایی کنید، اگر تعمیر کردنش دردسر زیادی داره که اوبونتو رو پاک کنم و از نو بریزم. عکس خطا رو پیوست کردم.
-
برنامه هارو از پایانه بروز و نصب کنید، راحت تر و امن تره.
چی شد که این جوری شد؟
در پایانه بزنید
sudo apt update
sudo apt upgrade
و خطاشو اینجا بزارید
مخزن یا ppa اضافه کردید؟
-
خیر هیچ دخالتی در سیستم نکردم. عرض کردم که بعد از نصب اوبونتو software updater رو اجرا کردم و اینطوری شد.
این هم خروجی دستورات
ali@ali-computer:~$ sudo apt update
[sudo] password for ali:
Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease
Get:3 http://archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Hit:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Fetched 339 kB in 2s (145 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
4 packages can be upgraded. Run 'apt list --upgradable' to see them.
ali@ali-computer:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libreoffice-base-core : Depends: libreoffice-core (= 1:7.3.7-0ubuntu0.22.04.4) but 1:7.3.7-0ubuntu0.22.04.3 is installed or
libreoffice-core-nogui (= 1:7.3.7-0ubuntu0.22.04.4) but it is not installed
libreoffice-calc : Depends: libreoffice-core (= 1:7.3.7-0ubuntu0.22.04.4) but 1:7.3.7-0ubuntu0.22.04.3 is installed
libreoffice-draw : Depends: libreoffice-core (= 1:7.3.7-0ubuntu0.22.04.4) but 1:7.3.7-0ubuntu0.22.04.3 is installed
libreoffice-gnome : Depends: libreoffice-core (= 1:7.3.7-0ubuntu0.22.04.4) but 1:7.3.7-0ubuntu0.22.04.3 is installed
libreoffice-gtk3 : Depends: libreoffice-core (= 1:7.3.7-0ubuntu0.22.04.4) but 1:7.3.7-0ubuntu0.22.04.3 is installed
libreoffice-impress : Depends: libreoffice-core (= 1:7.3.7-0ubuntu0.22.04.4) but 1:7.3.7-0ubuntu0.22.04.3 is installed
libreoffice-math : Depends: libreoffice-core (= 1:7.3.7-0ubuntu0.22.04.4) but 1:7.3.7-0ubuntu0.22.04.3 is installed
libreoffice-writer : Depends: libreoffice-core (= 1:7.3.7-0ubuntu0.22.04.4) but 1:7.3.7-0ubuntu0.22.04.3 is installed
python3-uno : Depends: libreoffice-core (= 1:7.3.7-0ubuntu0.22.04.4) but 1:7.3.7-0ubuntu0.22.04.3 is installed or
libreoffice-core-nogui (= 1:7.3.7-0ubuntu0.22.04.4) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
ali@ali-computer:~$
دستور ترمیمی که خودش پیشنهاد داده رو هم زدم. خروجی:
ali@ali-computer:~$ sudo apt --fix-broken install
[sudo] password for ali:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libreoffice-core
Suggested packages:
gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad gstreamer1.0-libav
The following packages will be upgraded:
libreoffice-core
1 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
124 not fully installed or removed.
Need to get 0 B/40.4 MB of archives.
After this operation, 8,192 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 202128 files and directories currently installed.)
Preparing to unpack .../libreoffice-core_1%3a7.3.7-0ubuntu0.22.04.4_amd64.deb ...
Unpacking libreoffice-core (1:7.3.7-0ubuntu0.22.04.4) over (1:7.3.7-0ubuntu0.22.04.3) ...
dpkg-deb (subprocess): ZSTD_decompressStream error : Corrupted block detected
dpkg-deb: error: <decompress> subprocess returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/libreoffice-core_1%3a7.3.
7-0ubuntu0.22.04.4_amd64.deb (--unpack):
cannot copy extracted data for './usr/lib/libreoffice/program/libmergedlo.so' t
o '/usr/lib/libreoffice/program/libmergedlo.so.dpkg-new': unexpected end of file
or stream
Errors were encountered while processing:
/var/cache/apt/archives/libreoffice-core_1%3a7.3.7-0ubuntu0.22.04.4_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
ali@ali-computer:~$
-
احتمالا وسط نصب بسته ها فرایند قطع شده.
خروجی دستور زیر را بزارید
dpkg -l | grep ^..r
-
این چه دستوریه؟! سیستم رو خراب نکنه! ;D زدم هیچ پاسخی نداد.
-
نه اینا که اصلا sudo هم نداره.
دستورات زیر را به ترتیب بزنید ببینید.
sudo apt clean
و خروجی زیر را بزارید. دستور زیر بسته های brok شده را نشون میده.
sudo apt autoremove
-
خروجی هر دو دستور خدمت شما:
ali@ali-computer:~$ sudo apt clean
[sudo] password for ali:
ali@ali-computer:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libreoffice-base-core : Depends: libreoffice-core (= 1:7.3.7-0ubuntu0.22.04.4) but 1:7.3.7-0ubuntu0.22.04.3 is installed or
libreoffice-core-nogui (= 1:7.3.7-0ubuntu0.22.04.4) but it is not installed
libreoffice-calc : Depends: libreoffice-core (= 1:7.3.7-0ubuntu0.22.04.4) but 1:7.3.7-0ubuntu0.22.04.3 is installed
libreoffice-draw : Depends: libreoffice-core (= 1:7.3.7-0ubuntu0.22.04.4) but 1:7.3.7-0ubuntu0.22.04.3 is installed
libreoffice-gnome : Depends: libreoffice-core (= 1:7.3.7-0ubuntu0.22.04.4) but 1:7.3.7-0ubuntu0.22.04.3 is installed
libreoffice-gtk3 : Depends: libreoffice-core (= 1:7.3.7-0ubuntu0.22.04.4) but 1:7.3.7-0ubuntu0.22.04.3 is installed
libreoffice-impress : Depends: libreoffice-core (= 1:7.3.7-0ubuntu0.22.04.4) but 1:7.3.7-0ubuntu0.22.04.3 is installed
libreoffice-math : Depends: libreoffice-core (= 1:7.3.7-0ubuntu0.22.04.4) but 1:7.3.7-0ubuntu0.22.04.3 is installed
libreoffice-writer : Depends: libreoffice-core (= 1:7.3.7-0ubuntu0.22.04.4) but 1:7.3.7-0ubuntu0.22.04.3 is installed
python3-uno : Depends: libreoffice-core (= 1:7.3.7-0ubuntu0.22.04.4) but 1:7.3.7-0ubuntu0.22.04.3 is installed or
libreoffice-core-nogui (= 1:7.3.7-0ubuntu0.22.04.4) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
ali@ali-computer:~$
-
خب بزنید
sudo apt remove libreoffice-base-core libreoffice-calc libreoffice-draw libreoffice-gnome libreoffice-gtk3 libreoffice-impress libreoffice-math libreoffice-writer python3-uno
بعد بزنید
sudo apt autoremove
شاید چنتا بسته جامونده باشن.
اگه بدون خطا اجرا شد update و upgrade کنید.
اگه اینا هم بدون خطا اجرا شدن و اگه از libreoffice استفاده میکنید بزنید
sudo apt install libreoffice
-
در همان دستور اول گیر کرد و خطا داد ;D
ali@ali-computer:~$ sudo apt remove libreoffice-base-core libreoffice-calc libreoffice-draw libreoffice-gnome libreoffice-gtk3 libreoffice-impress libreoffice-math libreoffice-writer python3-uno
[sudo] password for ali:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libreoffice-ogltrans : Depends: libreoffice-impress (>= 1:6.2.0~beta1~) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
ali@ali-computer:~$
به نظر میرسه مشکلم به این سادگیها حل نمیشه و با توجه به اینکه این اوبونتو رو تازه نصب کردم و چیزای زیادی روش ندارم، نصب مجدد اوبونتو هم راحت تره هم سریعر. :D
اون دبیان هم به رحمت خدا رفت چون هاردم رو به ssd ارتقا دادم و دیدم حالا که اونو از دست دادم فعلا اوبونتو ۲۲.۰۴ بریزم ببینم چه جوریه. اوبونتوی قبلی من نسخه ۱۸ بود. ورژن ۲۲ هم موقع آپدیت پوکید ](*,)
-
مشکلی نداره.
sudo apt remove libreoffice-base-core libreoffice-calc libreoffice-draw libreoffice-gnome libreoffice-gtk3 libreoffice-impress libreoffice-math libreoffice-writer python3-uno libreoffice-ogltrans
بعدش به ترتیب فرسته قبلی.
اگه قرار باشه نتونید مشکلتونو حل کنید زود از گنو خساه میشید،
دبیان بهتره. ولی این مشکل حل میشه.
-
دبیان بهتره. ولی این مشکل حل میشه.
بدون شک هیچ مشکلی بدون راه حل نیست، ولی خب من این اوبونتو رو تازه نصب کردم و بلافاصله بعد از نصب رفتم برای آپدیت و این مشکل پیش اومد، بعد از این مشکل هم دیگه چیزی روش نصب نشد، میشه گفت این یه اوبونتوی خامه و ارزش زیادی نداره که به قول معروف بشینم براش عزا بگیرم. نصب مجددش کار راحت تری هست.
البته فکر میکنم ایراد کار من موقعی بود که هنگام آپدیت شدن وقتی داشت پکیج های دانلود شده رو نصب میکرد دیدم شارژ لپتاپ کمه و سوکت شارژر رو وصل کردم، از همون لحظه خطاها شروع شد! البته بازهم نمیدونم علتش اینه یا چیز دیگست، چون وصل کردن سوکت شارژ که کار خاصی نیست.
-
این دستور کار کرد:
sudo apt remove libreoffice-base-core libreoffice-calc libreoffice-draw libreoffice-gnome libreoffice-gtk3 libreoffice-impress libreoffice-math libreoffice-writer python3-uno libreoffice-ogltrans
مرسی رفیق. حالا میرم برای دستورات update و upgrade ونتیجه رو امشب یا فردا صبح اعلام میکنم.
-
خب بعد
sudo apt autoremove
بعد هم update و upgrade
اگه مشکلتون حل شد یک (حل شد) به موضوع فرسته اولتون اضافه کنید(با ویرایش)
ویرایش
بنظرم با استفاده از راهنمای زیر اسنپو حذف کنید.
https://wiki.ubuntu-ir.org/wiki/%D8%A8%D8%B1%D8%AF%D8%A7%D8%B4%D8%AA%D9%86_%D8%A8%D8%B3%D8%AA%D9%87%E2%80%8C%D9%87%D8%A7%DB%8C_%D8%A7%D8%B3%D9%86%D9%BE
-
ممنون مشکلم حل شد. فقط یه سوال دارم، دستور sudo apt autoremove دقیقا چه کاری انجام میده و چی رو حذف میکنه؟ وقتی این دستور رو زدم عجله داشتم و و پیام های سیستم رو نخوندم، اکی کردم رفت.
-
وابستگی های بیموردو حذف میکنه.
الآن شما libreoffice حذف کردید چون در زمان بروزرسانی اون فرایند قطع شده و خیلی از وابستگی هاش نه وجود داشتن و نه کامل نصب شدن و مجبور بودید که حذفشون کنید.
برای نصب دوبارش اگه کاریش داشتید.
sudo apt install libreoffice
نکته ای که هست شاید بهتر بود بعد حذف بسته های خراب میگفتم بزنید
sudo apt install -f
ولی خب دیگه دیره. :-X
ممنون مشکلم حل شد. فقط یه سوال دارم، دستور sudo apt autoremove دقیقا چه کاری انجام میده و چی رو حذف میکنه؟ وقتی این دستور رو زدم عجله داشتم و و پیام های سیستم رو نخوندم، اکی کردم رفت.
شاید بهتر بود خروجیشو میذاشتید ببینیم دیگه داره چیارو حذف میکنه، ولی در بار قبل که فقط داشت وابستگی های لیبر آفلیسو حذف میکرد. شاید چنتا بسته دیگر هم که خراب بوده باشن، حذف شدن، ولی خب بسته های مهمی نبودن و هرچی که بوده باشن به libreoffice ربط داشتن.
میشه بسته هایی که حذف شدنو دوباره نصب کرد. الآن مشکلی در کارکرد سامانه احساس میکنید؟
-
نه هیچ مشکلی در سیستم نمیبینم و به لیبر آفیس هم نیازی ندارم، فقط به دلیل اینکه توی اون دستور کلمه remove بود یه مقدار حساسیت برانگیز بود و ترسیدم چیزای مهم سیستمی رو حدف کنه که میگید اینطور نیست. اون موقع که دستور رو زدم کلی نوشته اومد و حتی سوال yes or no ازم پرسید، ولی الان وقتی میزنم نوشته زیادی نمیاد و سوالی هم نمیپرسه. الان این خروجی رو میده:
ali@ali-computer:~$ sudo apt autoremove
[sudo] password for ali:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
ali@ali-computer:~$
-
خب چون دیگه بسته ی اضافه ای نیست.
پس درست شد.
-
دستور sudo apt install -f رو هم زدم این خروجی رو داد
ali@ali-computer:~$ sudo apt install -f
[sudo] password for ali:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
ali@ali-computer:~$
همه چیز درسته؟
-
اگه
sudo apt upgrade
درست کار میکنه بله.
اگه بعضی از بسته ها بروز نمیشه خطای upgrade را بفرستید.
-
خروجی sudo apt upgrade
ali@ali-computer:~$ sudo apt upgrade
[sudo] password for ali:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
vlc-plugin-qt libvlc5 vlc-data libvlccore9 vlc vlc-bin vlc-l10n
libpostproc55 vlc-plugin-samba libavcodec58 vlc-plugin-notify libavutil56
libswscale5 vlc-plugin-access-extra vlc-plugin-skins2
vlc-plugin-video-splitter libswresample3 vlc-plugin-video-output
libavformat58 libvlc-bin vlc-plugin-base vlc-plugin-visualization
Learn more about Ubuntu Pro at https://ubuntu.com/pro
The following packages have been kept back:
gjs libgjs0g
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
ali@ali-computer:~$
-
اول update و upgrade کنید.
بعد بزنید
sudo apt install gjs libgjs0g
بعد
sudo apt autoremove
-
چی هست این بسته gjs libgjs0g ؟ نصبش لازمه؟ اگه اضافه هست نصب نکنم.
-
نه اضافه نیست.
وابستگی هستن.
یعنی لازمه. ;D
-
حالا درسته؟
ali@ali-computer:~$ sudo apt update
[sudo] password for ali:
Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease
Get:3 http://archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Hit:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Get:6 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [1,346 kB]
Get:7 http://archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [220 kB]
Get:8 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1,327 kB]
Get:9 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages [560 kB]
Get:10 http://archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [268 kB]
Fetched 4,061 kB in 10s (402 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
ali@ali-computer:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
vlc-plugin-qt libvlc5 vlc-data libvlccore9 vlc vlc-bin vlc-l10n
libpostproc55 vlc-plugin-samba libavcodec58 vlc-plugin-notify libavutil56
libswscale5 vlc-plugin-access-extra vlc-plugin-skins2
vlc-plugin-video-splitter libswresample3 vlc-plugin-video-output
libavformat58 libvlc-bin vlc-plugin-base vlc-plugin-visualization
Learn more about Ubuntu Pro at https://ubuntu.com/pro
The following packages have been kept back:
gjs libgjs0g
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
ali@ali-computer:~$ sudo apt install gjs libgjs0g
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be upgraded:
gjs libgjs0g
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 509 kB of archives.
After this operation, 9,216 B of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 gjs amd64 1.72.4-0ubuntu0.22.04.1 [106 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libgjs0g amd64 1.72.4-0ubuntu0.22.04.1 [403 kB]
Fetched 509 kB in 2s (204 kB/s)
(Reading database ... 201042 files and directories currently installed.)
Preparing to unpack .../gjs_1.72.4-0ubuntu0.22.04.1_amd64.deb ...
Unpacking gjs (1.72.4-0ubuntu0.22.04.1) over (1.72.2-0ubuntu2) ...
Preparing to unpack .../libgjs0g_1.72.4-0ubuntu0.22.04.1_amd64.deb ...
Unpacking libgjs0g:amd64 (1.72.4-0ubuntu0.22.04.1) over (1.72.2-0ubuntu2) ...
Setting up libgjs0g:amd64 (1.72.4-0ubuntu0.22.04.1) ...
Setting up gjs (1.72.4-0ubuntu0.22.04.1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.6) ...
ali@ali-computer:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ali@ali-computer:~$
-
بله دیگه همه چی درسته.
-
ممنونم از کمکت.