انجمنهای فارسی اوبونتو
کمک و پشتیبانی => سایر توزیعهای گنو/لینوکس => دبیان => نویسنده: َUxmlai-ad در 09 آبان 1400، 06:48 بظ
-
سلام خروجی دستور
sudo apt update
Hit:1 http://security.debian.org bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Ign:4 http://deb.debian.org/debian bullseye-security InRelease
Err:5 http://deb.debian.org/debian bullseye-security Release
404 Not Found [IP: 199.232.138.132 80]
Reading package lists... Done
W: Skipping acquire of configured file 'stretch-backports/binary-amd64/Packages' as repository 'http://security.debian.org bullseye-security InRelease' doesn't have the component 'stretch-backports' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stretch-backports/binary-i386/Packages' as repository 'http://security.debian.org bullseye-security InRelease' doesn't have the component 'stretch-backports' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stretch-backports/i18n/Translation-en' as repository 'http://security.debian.org bullseye-security InRelease' doesn't have the component 'stretch-backports' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stretch-backports/i18n/Translation-en_US' as repository 'http://security.debian.org bullseye-security InRelease' doesn't have the component 'stretch-backports' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stretch-backports/dep11/Components-amd64.yml' as repository 'http://security.debian.org bullseye-security InRelease' doesn't have the component 'stretch-backports' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stretch-backports/dep11/icons-48x48.tar' as repository 'http://security.debian.org bullseye-security InRelease' doesn't have the component 'stretch-backports' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stretch-backports/dep11/icons-64x64.tar' as repository 'http://security.debian.org bullseye-security InRelease' doesn't have the component 'stretch-backports' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stretch-backports/binary-i386/Packages' as repository 'http://deb.debian.org/debian bullseye InRelease' doesn't have the component 'stretch-backports' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stretch-backports/binary-amd64/Packages' as repository 'http://deb.debian.org/debian bullseye InRelease' doesn't have the component 'stretch-backports' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stretch-backports/i18n/Translation-en' as repository 'http://deb.debian.org/debian bullseye InRelease' doesn't have the component 'stretch-backports' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stretch-backports/i18n/Translation-en_US' as repository 'http://deb.debian.org/debian bullseye InRelease' doesn't have the component 'stretch-backports' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stretch-backports/dep11/Components-all.yml' as repository 'http://deb.debian.org/debian bullseye InRelease' doesn't have the component 'stretch-backports' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stretch-backports/dep11/Components-amd64.yml' as repository 'http://deb.debian.org/debian bullseye InRelease' doesn't have the component 'stretch-backports' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stretch-backports/dep11/icons-48x48.tar' as repository 'http://deb.debian.org/debian bullseye InRelease' doesn't have the component 'stretch-backports' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stretch-backports/dep11/icons-64x64.tar' as repository 'http://deb.debian.org/debian bullseye InRelease' doesn't have the component 'stretch-backports' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stretch-backports/binary-amd64/Packages' as repository 'http://deb.debian.org/debian bullseye-updates InRelease' doesn't have the component 'stretch-backports' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stretch-backports/binary-i386/Packages' as repository 'http://deb.debian.org/debian bullseye-updates InRelease' doesn't have the component 'stretch-backports' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stretch-backports/i18n/Translation-en_US' as repository 'http://deb.debian.org/debian bullseye-updates InRelease' doesn't have the component 'stretch-backports' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stretch-backports/i18n/Translation-en' as repository 'http://deb.debian.org/debian bullseye-updates InRelease' doesn't have the component 'stretch-backports' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stretch-backports/dep11/Components-all.yml' as repository 'http://deb.debian.org/debian bullseye-updates InRelease' doesn't have the component 'stretch-backports' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stretch-backports/dep11/Components-amd64.yml' as repository 'http://deb.debian.org/debian bullseye-updates InRelease' doesn't have the component 'stretch-backports' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stretch-backports/dep11/icons-48x48.tar' as repository 'http://deb.debian.org/debian bullseye-updates InRelease' doesn't have the component 'stretch-backports' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'stretch-backports/dep11/icons-64x64.tar' as repository 'http://deb.debian.org/debian bullseye-updates InRelease' doesn't have the component 'stretch-backports' (component misspelt in sources.list?)
E: The repository 'http://deb.debian.org/debian bullseye-security Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
چه کار باید کنم که این خطا ها رو نده حدس میزنم که به خاطر این باشه که اخیرا مخزن هایی رو می خواستم اضافه کنم نمی دونستم چه جوری باید این کار رو کنم چند بار امتحان کردم دفعه آخرش جواب داد
-
خروجی دستور بنظر میاد که احتمالا اشتباه تایپی داخل لینک مخزن هاتون دارید.
خروجی دستور زیر رو قرار بدید:
cat /etc/apt/sources.list
-
چرا مخازن دبیان ۹ رو روی دبیان ۱۱ تنظیم کردید؟؟!! :o
راحت میشه درستش کنید؛ ولی تا وقتی درستش نکردید، هیچ بستهای نصب نکنید، چیزی رو ادتقا ندید و کلا به بستهها کاری نداشته باشید تا مشکلات بیشتر پیش نیاد. ترجیحا ارتقا خودکار رو هم غیرفعال کنید. برای اینکار راههای متفاوتی هست. فایل زیر رو باز کنید و مقادیر عددی رو به صفر تغییر بدید. البته قبلش اون مقادیر رو به خاطر بسپارید یا یه جا ذخیره کنید تا بعدا بتونید به حالت اول برگردونید.
/etc/apt/apt.conf.d/20auto-upgrades
این تنظیمات مربوط به ارتقا خودکار هست. این تنظیمات از طریق رابطهای گرافیکی هم قابل تغییره.
خروجی دستوری که بالا گفتند رو قرار بدید.
-
خروجی دستور:
# See https://wiki.debian.org/SourcesList for more information.
deb http://deb.debian.org/debian/ bullseye non-free main stretch-backports contrib
deb http://deb.debian.org/debian/ bullseye-updates stretch-backports contrib main non-free
deb http://deb.debian.org/debian/ bullseye-security main
deb-src http://deb.debian.org/debian/ bullseye-security main
# deb-src http://deb.debian.org/debian/bullseye bullseye main contrib non-free
deb http://security.debian.org/ bullseye-security stretch-backports contrib main non-free
-
خروجی دستور:
# See https://wiki.debian.org/SourcesList for more information.
deb http://deb.debian.org/debian/ bullseye non-free main stretch-backports contrib
deb http://deb.debian.org/debian/ bullseye-updates stretch-backports contrib main non-free
deb http://deb.debian.org/debian/ bullseye-security main
deb-src http://deb.debian.org/debian/ bullseye-security main
# deb-src http://deb.debian.org/debian/bullseye bullseye main contrib non-free
deb http://security.debian.org/ bullseye-security stretch-backports contrib main non-free
نسخه دبیانتونو بگید بهتر کمکتون میکنم.
-
دبیان ۱۱
اگه از داخل اون فایل پاک یا کامنت کنم مخازن برداشته میشن؟
اگه مخازنی که اضافه کردم رو پاک کنم مشکلی پیش نمیاد؟
-
اگه از داخل اون فایل پاک یا کامنت کنم مخازن برداشته میشن؟
بله ولی این کار پیشنهاد نمیشه و میتونید اول مخازن # بذارید تا کامنت بشه.
اگه مخازنی که اضافه کردم رو پاک کنم مشکلی پیش نمیاد؟
ممکنه مشکلاتی پیش بیاد. اما برای رفع مشکلتون اول از sources.list یک بکآپ بگیرید توی پوشه home تون. بعد بیاید تو /etc/apt/sources.list و با یه ویرایشگر متنای داخلشو وردارید و اینارو جایگزین کنید:
# See https://wiki.debian.org/SourcesList for more information.
deb http://deb.debian.org/debian bullseye main
deb-src http://deb.debian.org/debian bullseye main
deb http://deb.debian.org/debian-security/ bullseye-security main
deb-src http://deb.debian.org/debian-security/ bullseye-security main
deb http://deb.debian.org/debian bullseye-updates main
deb-src http://deb.debian.org/debian bullseye-updates main
بعد apt update بزنید. اگه مشکلتون حل شد میتونید مخزن های non-free هم اضافه کنید بهشون که من فکر میکنم به اونها نیاز دارید چون داخلش اضافه کردید.
-
ممنون حل شد
-
الان قسمتهای contrib و non-free مخازن رو غیرفعال کردید. اگه سختافزاری دارید که بستههای اون قسمتها نیاز داره، یه contrib و non-free به آخر هر خطی که کامنت نیست اضافه کنید.
ارتقا خودکار رو میتونید به حالت قبل برگردونید.
-
من به یکیشون اضافه کردم باید به همشون اضافه کنم؟
-
من به یکیشون اضافه کردم باید به همشون اضافه کنم؟
بله