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

کمک و پشتیبانی => نصب، راه‌اندازی و بروزآوری => نویسنده: ali83mw3 در 26 بهمن 1397، 02:03 ب‌ظ

عنوان: ارور مشکل apt update { هنوز حل نشده}‌ HELP
ارسال شده توسط: ali83mw3 در 26 بهمن 1397، 02:03 ب‌ظ
وقتی sudo apt update میزنم این میاد
Err:1 http://deb.torproject.org/torproject.org bionic InRelease
  Temporary failure resolving 'deb.torproject.org'
Err:2 http://apt.keepsolid.com/ubuntu bionic InRelease
  Temporary failure resolving 'apt.keepsolid.com'
Err:3 http://archive.ubuntu.com/ubuntu bionic InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Err:4 http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu bionic InRelease
  Temporary failure resolving 'ppa.launchpad.net'
Err:5 http://repo.steampowered.com/steam precise InRelease
  Temporary failure resolving 'repo.steampowered.com'
Err:6 http://ppa.launchpad.net/libreoffice/ppa/ubuntu bionic InRelease
  Temporary failure resolving 'ppa.launchpad.net'
Err:7 http://packages.microsoft.com/repos/vscode stable InRelease
  Temporary failure resolving 'packages.microsoft.com'
Err:8 http://archive.ubuntu.com/ubuntu bionic-security InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Err:9 http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu bionic InRelease
  Temporary failure resolving 'ppa.launchpad.net'
Err:10 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Err:11 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease
  Temporary failure resolving 'ppa.launchpad.net'
Err:12 http://archive.ubuntu.com/ubuntu bionic-proposed InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease  Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-security/InRelease  Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease  Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-proposed/InRelease  Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu/dists/bionic/InRelease  Temporary failure resolving 'ppa.launchpad.net'
W: Failed to fetch http://ppa.launchpad.net/libreoffice/ppa/ubuntu/dists/bionic/InRelease  Temporary failure resolving 'ppa.launchpad.net'
W: Failed to fetch http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu/dists/bionic/InRelease  Temporary failure resolving 'ppa.launchpad.net'
W: Failed to fetch http://ppa.launchpad.net/webupd8team/java/ubuntu/dists/bionic/InRelease  Temporary failure resolving 'ppa.launchpad.net'
W: Failed to fetch http://repo.steampowered.com/steam/dists/precise/InRelease  Temporary failure resolving 'repo.steampowered.com'
W: Failed to fetch http://deb.torproject.org/torproject.org/dists/bionic/InRelease  Temporary failure resolving 'deb.torproject.org'
W: Failed to fetch http://apt.keepsolid.com/ubuntu/dists/bionic/InRelease  Temporary failure resolving 'apt.keepsolid.com'
W: Failed to fetch http://packages.microsoft.com/repos/vscode/dists/stable/InRelease  Temporary failure resolving 'packages.microsoft.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
برای درست کردنش رفتن بعه سایت https://repogen.simplylinux.ch/# (https://repogen.simplylinux.ch/#)
با کشور های مختلف انتخاب کردم
از نسخه Linux ali83mw3-HP-ProBook-4540s 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019 x86_64  x86_64 x86_64 GNU/Linux
kubuntu KDE
استفاده می کنم فکر نکنم مشکل از اینترنت باشه (ping گرفتم)
خیلی سریع میاد فکر نکنم اصلا چک کنه
وقتی apt install هم میزنم انگار اصلا به اینترنت وصل نیست
لطفا کمک کنید :oops: :oops:

عنوان: پاسخ : ارور مشکل apt update
ارسال شده توسط: Silvio Dante در 26 بهمن 1397، 02:35 ب‌ظ
بخاطر مخازن غیررسمی‌ای هست که اضافه کردین.
باید همشون رو حذف کنین و می‌تونین از این دستور کمک بگیرین:
sudo rm -rf /etc/apt/sources.list.d/*
و بعد:
sudo apt update
عنوان: پاسخ : ارور مشکل apt update
ارسال شده توسط: ali83mw3 در 26 بهمن 1397، 09:09 ب‌ظ
به فایل resolv.conf
nameserver 8.8.8.8اضافه کردم فک کنم درست شده باشه ؟!؟؟
بعد مخازن غیر رسمی نیست از سایت رسمی  ابونتو گرفتم
الان لازمه کد های شما رو هم بزنم
عنوان: پاسخ : ارور مشکل apt update { هنوز حل نشده}‌ HELP
ارسال شده توسط: Silvio Dante در 26 بهمن 1397، 11:49 ب‌ظ
اگه با ویرایش فایل resolv.conf مشکل حل شد پس مشکل ساناد داشتین. این راهکاری که رفتین موقت هست و بعد از اولین ری‌استارت دوباره مشکل بر میگرده به حالت اولش.
نگاهی به این لینک (https://unix.stackexchange.com/questions/128220/how-do-i-set-my-dns-when-resolv-conf-is-being-overwritten) بندازین.
عنوان: پاسخ : ارور مشکل apt update { هنوز حل نشده}‌ HELP
ارسال شده توسط: ali83mw3 در 27 بهمن 1397، 11:05 ب‌ظ
میشه الان بگید
چیکار کنم همیشگی چه ؟‌درست نفهمیدم تو سایته چی نوشته ؟
عنوان: پاسخ : ارور مشکل apt update { هنوز حل نشده}‌ HELP
ارسال شده توسط: Silvio Dante در 28 بهمن 1397، 12:09 ق‌ظ
بسته‌ی resolvconf رو نصب کنید:
sudo apt install resolvconf
فایل /etc/resolvconf/resolv.conf.d/base رو باز کنید (فکر کنم از قبل وجود نداره):
sudo vim /etc/resolvconf/resolv.conf.d/base
توش بنویسید:
nameserver 8.8.8.8
nameserver 8.8.4.4
(یا هر دی ان اس دیگه‌ای که دوست دارین. پیشنهاد من opendns هست.)

در نهایت این دستور رو بزنید:
sudo resolvconf -u
عنوان: پاسخ : ارور مشکل apt update { هنوز حل نشده}‌ HELP
ارسال شده توسط: ali83mw3 در 28 بهمن 1397، 09:47 ب‌ظ
این کارو کردم ولی بعد از ریبوت دوباره باید برم  کانفیگ کنم  :o