انجمن‌های فارسی اوبونتو

لطفاً به انجمن‌ها وارد شده و یا جهت ورود ثبت‌نام نمائید

لطفاً جهت ورود نام کاربری و رمز عبورتان را وارد نمائید


توزیع گنو/لینوکس اوبونتو ۲۰ ساله شد 🎉

نویسنده موضوع: مشکل update دبیان ۱۰بعدازقطع اینترنت(حل شد)  (دفعات بازدید: 1387 بار)

0 کاربر و 4 مهمان درحال مشاهده موضوع.

آفلاین bed123derkelo

  • High Sr. Member
  • *
  • ارسال: 658
  • جنسیت : پسر
مشکل update دبیان ۱۰بعدازقطع اینترنت(حل شد)
« : 10 فروردین 1399، 06:39 ب‌ظ »
باسلا
موقع بروز رسانی اینترنت قطع شد.لب تاب خاموش کردم.بعد که امدم آپدیت کنم به مشکل خوردم.

کارهایی که انجام دادم:

apt reinstall dpkg

apt install -f

pt --fix-broken install

dpkg –configure -a

sudo dpkg –configure -a

بررسی فایل زیر:

nano /etc/sudoers

چندتا از پیغام های خطا تغییر کرد ولی مشکل همچنان پابرجاست:
sudo apt update && sudo apt upgrade


Do you want to continue? [Y/n] y
Reading changelogs... Done
debconf: Perl may be unconfigured (Can't locate Debconf/Encoding.pm in @INC (you may need to install the Debconf::Encoding module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/perl5/Debconf/Template.pm line 17.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Template.pm line 17.
Compilation failed in require at /usr/share/perl5/Debconf/Question.pm line 8.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Question.pm line 8.
Compilation failed in require at /usr/share/perl5/Debconf/Config.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Config.pm line 7.
Compilation failed in require at /usr/share/perl5/Debconf/Log.pm line 10.
Compilation failed in require at (eval 1) line 4.
BEGIN failed--compilation aborted at (eval 1) line 4.
) -- aborting
dpkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: error: 1 expected program not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
E: Sub-process /usr/bin/dpkg returned an error code (2)
« آخرین ویرایش: 12 فروردین 1399، 08:40 ب‌ظ توسط goloshon »

آفلاین Sun-PDA

  • Hero Member
  • *
  • ارسال: 841
پاسخ : مشکل update دبیان ۱۰بعدازقطع اینترنت
« پاسخ #1 : 10 فروردین 1399، 06:48 ب‌ظ »
اول باید ببینیم مشکل از sudo هست یا از چیز دیگه
su رو بزن بعد پسورد روت رو وارد کن بین از اونجا میتونی آپدیت کنی؟ (بدون سودو)

آفلاین bed123derkelo

  • High Sr. Member
  • *
  • ارسال: 658
  • جنسیت : پسر
پاسخ : مشکل update دبیان ۱۰بعدازقطع اینترنت
« پاسخ #2 : 10 فروردین 1399، 07:03 ب‌ظ »
باسلام
بدون سودو:
:~$ su
Password:
apt update
Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://security.debian.org buster/updates InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Reading package lists... Done
Building dependency tree       
Reading state information... Done
5 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list:12 and /etc/apt/sources.list:23
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:22
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:22
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:22
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:22
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:22
W: Target Sources (main/source/Sources) is configured multiple times in /etc/apt/sources.list:12 and /etc/apt/sources.list:23
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:22
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:22
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:22
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:22
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:22

آفلاین Sun-PDA

  • Hero Member
  • *
  • ارسال: 841
پاسخ : مشکل update دبیان ۱۰بعدازقطع اینترنت
« پاسخ #3 : 10 فروردین 1399، 07:10 ب‌ظ »
خروجی این دستور رو بذار
cat /etc/apt/sources.list

آفلاین Sun-PDA

  • Hero Member
  • *
  • ارسال: 841
پاسخ : مشکل update دبیان ۱۰بعدازقطع اینترنت
« پاسخ #4 : 10 فروردین 1399، 07:14 ب‌ظ »
ظاهرا یک سری مشکلات از سودو بوده چون توی روت پیغامهای خطای sudo رو نداده
apt upgrade رو تو حالت روت مبزنی آپگرید نمیکنه؟
خروجی دستور زیر رو هم بذار
cat /etc/sudoers
« آخرین ویرایش: 10 فروردین 1399، 07:16 ب‌ظ توسط sun-pda »

آفلاین bed123derkelo

  • High Sr. Member
  • *
  • ارسال: 658
  • جنسیت : پسر
پاسخ : مشکل update دبیان ۱۰بعدازقطع اینترنت
« پاسخ #5 : 10 فروردین 1399، 07:17 ب‌ظ »
باسلام

نه آپدیت نمیکنه.

# deb cdrom:[Debian GNU/Linux testing _Bullseye_ - Official Snapshot amd64 DVD Binary-1 20190916-04:11]/ bullseye contrib main

#deb cdrom:[Debian GNU/Linux testing _Bullseye_ - Official Snapshot amd64 DVD Binary-1 20190916-04:11]/ bullseye contrib main

# Line commented out by installer because it failed to verify:
#deb http://security.debian.org/debian-security bullseye/updates main contrib
# Line commented out by installer because it failed to verify:#deb-src http://security.debian.org/debian-security bullseye/updates main contrib

deb  http://deb.debian.org/debian buster main
deb-src  http://deb.debian.org/debian buster main

deb  http://deb.debian.org/debian buster-updates main
deb-src  http://deb.debian.org/debian buster-updates main

deb http://security.debian.org/ buster/updates main
deb-src http://security.debian.org/ buster/updates main



deb  http://deb.debian.org/debian buster main contrib non-free
deb-src  http://deb.debian.org/debian buster main contrib non-free

آفلاین Sun-PDA

  • Hero Member
  • *
  • ارسال: 841
پاسخ : مشکل update دبیان ۱۰بعدازقطع اینترنت
« پاسخ #6 : 10 فروردین 1399، 07:40 ب‌ظ »
باسلام

نه آپدیت نمیکنه.

# deb cdrom:[Debian GNU/Linux testing _Bullseye_ - Official Snapshot amd64 DVD Binary-1 20190916-04:11]/ bullseye contrib main

#deb cdrom:[Debian GNU/Linux testing _Bullseye_ - Official Snapshot amd64 DVD Binary-1 20190916-04:11]/ bullseye contrib main

# Line commented out by installer because it failed to verify:
#deb http://security.debian.org/debian-security bullseye/updates main contrib
# Line commented out by installer because it failed to verify:#deb-src http://security.debian.org/debian-security bullseye/updates main contrib

deb  http://deb.debian.org/debian buster main
deb-src  http://deb.debian.org/debian buster main

deb  http://deb.debian.org/debian buster-updates main
deb-src  http://deb.debian.org/debian buster-updates main

deb http://security.debian.org/ buster/updates main
deb-src http://security.debian.org/ buster/updates main



deb  http://deb.debian.org/debian buster main contrib non-free
deb-src  http://deb.debian.org/debian buster main contrib non-free

خطوط زیر (۹ و ۱۰) تکراریه پاکشون کن
deb  http://deb.debian.org/debian buster main
deb-src  http://deb.debian.org/debian buster main


یعنی su رو بزن بعد با نانو فایل رو باز کن و خطوط بالا رو ازش پاک کن یا اول خطشون # بزار و تغییرات رو ذخیره کن
nano /etc/apt/sources.list
« آخرین ویرایش: 10 فروردین 1399، 07:42 ب‌ظ توسط sun-pda »

آفلاین bed123derkelo

  • High Sr. Member
  • *
  • ارسال: 658
  • جنسیت : پسر
پاسخ : مشکل update دبیان ۱۰بعدازقطع اینترنت
« پاسخ #7 : 10 فروردین 1399، 07:46 ب‌ظ »
باسلام

مخازنی که گفتیدپاک کردم.

# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root ALL=(ALL:ALL) ALL

# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d

ALL ALL=NOPASSWD:/sbin/shutdown

آفلاین Sun-PDA

  • Hero Member
  • *
  • ارسال: 841
پاسخ : مشکل update دبیان ۱۰بعدازقطع اینترنت
« پاسخ #8 : 10 فروردین 1399، 07:56 ب‌ظ »
باسلام

مخازنی که گفتیدپاک کردم.

حالا تو حالت روت (su) دستورات apt update و apt upgrade  رو بزن


# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root ALL=(ALL:ALL) ALL

# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d

ALL ALL=NOPASSWD:/sbin/shutdown

تنظیماتش ظاهرا مشکلی نداره

آفلاین bed123derkelo

  • High Sr. Member
  • *
  • ارسال: 658
  • جنسیت : پسر
پاسخ : مشکل update دبیان ۱۰بعدازقطع اینترنت
« پاسخ #9 : 10 فروردین 1399، 08:14 ب‌ظ »
باسلام

مشکل هنوز پابرجاست.
su
Password:
apt update
Hit:1 http://security.debian.org buster/updates InRelease
Hit:2 http://deb.debian.org/debian buster-updates InRelease
Hit:3 http://deb.debian.org/debian buster InRelease
Reading package lists... Done
Building dependency tree       
Reading state information... Done
5 packages can be upgraded. Run 'apt list --upgradable' to see them.

root@# apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  libevent-2.1-7
Use 'apt autoremove' to remove it.
The following NEW packages will be installed:
  libevent-2.1-6 libreadline7 libvpx5
The following packages will be upgraded:
  bluetooth bluez firefox-esr libbluetooth3 ppp
5 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/50.5 MB of archives.
After this operation, 790 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Reading changelogs... Done
debconf: Perl may be unconfigured (Can't locate Debconf/Encoding.pm in @INC (you may need to install the Debconf::Encoding module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/perl5/Debconf/Template.pm line 17.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Template.pm line 17.
Compilation failed in require at /usr/share/perl5/Debconf/Question.pm line 8.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Question.pm line 8.
Compilation failed in require at /usr/share/perl5/Debconf/Config.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Config.pm line 7.
Compilation failed in require at /usr/share/perl5/Debconf/Log.pm line 10.
Compilation failed in require at (eval 1) line 4.
BEGIN failed--compilation aborted at (eval 1) line 4.
) -- aborting
dpkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: error: 1 expected program not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
E: Sub-process /usr/bin/dpkg returned an error code (2)

آفلاین Sun-PDA

  • Hero Member
  • *
  • ارسال: 841
پاسخ : مشکل update دبیان ۱۰بعدازقطع اینترنت
« پاسخ #10 : 10 فروردین 1399، 08:20 ب‌ظ »
باسلا
موقع بروز رسانی اینترنت قطع شد.لب تاب خاموش کردم.بعد که امدم آپدیت کنم به مشکل خوردم.

کارهایی که انجام دادم:
.
.
.
sudo dpkg –configure -a

.
.
.

این برای این دستور یک خط فاصله کم گذاشتی یعنی باید بنویسی
sudo dpkg --configure -a

آفلاین bed123derkelo

  • High Sr. Member
  • *
  • ارسال: 658
  • جنسیت : پسر
پاسخ : مشکل update دبیان ۱۰بعدازقطع اینترنت
« پاسخ #11 : 10 فروردین 1399، 08:26 ب‌ظ »
باسلام

sudo dpkg --configure -a
dpkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: error: 1 expected program not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin

آفلاین Sun-PDA

  • Hero Member
  • *
  • ارسال: 841
پاسخ : مشکل update دبیان ۱۰بعدازقطع اینترنت
« پاسخ #12 : 10 فروردین 1399، 08:36 ب‌ظ »
تو su دستور زیر رو بزن
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
و بعد apt upgrade

آفلاین bed123derkelo

  • High Sr. Member
  • *
  • ارسال: 658
  • جنسیت : پسر
پاسخ : مشکل update دبیان ۱۰بعدازقطع اینترنت
« پاسخ #13 : 10 فروردین 1399، 08:43 ب‌ظ »
باسلام

تغییری نکرد همون خطای بالایی رو میده.
nano /etc/sudoers
root@ apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  libevent-2.1-7
Use 'apt autoremove' to remove it.
The following NEW packages will be installed:
  libevent-2.1-6 libreadline7 libvpx5
The following packages will be upgraded:
  bluetooth bluez firefox-esr libbluetooth3 ppp
5 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/50.5 MB of archives.
After this operation, 790 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Reading changelogs... Done
debconf: Perl may be unconfigured (Can't locate Debconf/Encoding.pm in @INC (you may need to install the Debconf::Encoding module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/perl5/Debconf/Template.pm line 17.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Template.pm line 17.
Compilation failed in require at /usr/share/perl5/Debconf/Question.pm line 8.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Question.pm line 8.
Compilation failed in require at /usr/share/perl5/Debconf/Config.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Config.pm line 7.
Compilation failed in require at /usr/share/perl5/Debconf/Log.pm line 10.
Compilation failed in require at (eval 1) line 4.
BEGIN failed--compilation aborted at (eval 1) line 4.
) -- aborting
dpkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: error: 1 expected program not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
E: Sub-process /usr/bin/dpkg returned an error code (2)

آفلاین Sun-PDA

  • Hero Member
  • *
  • ارسال: 841
پاسخ : مشکل update دبیان ۱۰بعدازقطع اینترنت
« پاسخ #14 : 10 فروردین 1399، 09:08 ب‌ظ »
این دستور رو امتحان کن

chmod +x /usr/sbin/ldconfig