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

کمک و پشتیبانی => سایر توزیع‌های گنو/لینوکس => دبیان => نویسنده: BiG در 11 دی 1400، 01:33 ب‌ظ

عنوان: مشکل افزودن مخزن به apt
ارسال شده توسط: BiG در 11 دی 1400، 01:33 ب‌ظ
سلام یک فلش دارم که توش دبیانه DVD هست می خواستم میزکار نصب کنم توی سیستم اومدم فلش رو به عنوان مخزن به سیستم معرفی کنم فایل /etc/apt/sources.list رو به این شکل تغییر دادم:
  GNU nano 5.4                            /etc/apt/sources.list *                                   
# deb cdrom:[Debian GNU/Linux 11.2.0 _Bullseye_ - Official amd64 DVD Binary-1 20211218-11:13]/ bull>

# deb https://debian.hostiran.ir/debian/ bullseye main contrib non-free
# deb-src https://debian.hostiran.ir/debian/ bullseye main contrib non-free

# deb https://deb.debian.org/debian-security/ bullseye-security main contrib non-free
# deb-src https://deb.debian.org/debian-security/ bullseye-security main contrib non-free

# deb https://debian.hostiran.ir/debian/ bullseye-updates main contrib non-free
# deb-src https://debian.hostiran.ir/debian/ bullseye-updates main contrib non-free

deb file:/media/ms/Debian 11.2.0 amd64 1/ bullseye contrib main

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

مشکل اینجاست اسم فلش فاصله داره بین اسمش و نمی دونم جای space چی بزارم تا سیستم قاطی نکنه.
ارور:
ms@MTDebian:~$ sudo apt update
Get:1 file:/media/ms/Debian 11.2.0 InRelease
Ign:1 file:/media/ms/Debian 11.2.0 InRelease
Get:2 file:/media/ms/Debian 11.2.0 Release
Err:2 file:/media/ms/Debian 11.2.0 Release
  File not found - /media/ms/Debian/dists/11.2.0/Release (2: No such file or directory)
Reading package lists... Done
N: Download is performed unsandboxed as root as file '/media/ms/Debian/dists/11.2.0/InRelease' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
E: The repository 'file:/media/ms/Debian 11.2.0 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.
عنوان: پاسخ : مشکل افزودن مخزن به apt
ارسال شده توسط: سودو. در 11 دی 1400، 01:56 ب‌ظ
سلام یک فلش دارم که توش دبیانه DVD هست می خواستم میزکار نصب کنم توی سیستم اومدم فلش رو به عنوان مخزن به سیستم معرفی کنم فایل /etc/apt/sources.list رو به این شکل تغییر دادم:
  GNU nano 5.4                            /etc/apt/sources.list *                                   
# deb cdrom:[Debian GNU/Linux 11.2.0 _Bullseye_ - Official amd64 DVD Binary-1 20211218-11:13]/ bull>

# deb https://debian.hostiran.ir/debian/ bullseye main contrib non-free
# deb-src https://debian.hostiran.ir/debian/ bullseye main contrib non-free

# deb https://deb.debian.org/debian-security/ bullseye-security main contrib non-free
# deb-src https://deb.debian.org/debian-security/ bullseye-security main contrib non-free

# deb https://debian.hostiran.ir/debian/ bullseye-updates main contrib non-free
# deb-src https://debian.hostiran.ir/debian/ bullseye-updates main contrib non-free

deb file:/media/ms/Debian 11.2.0 amd64 1/ bullseye contrib main

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

مشکل اینجاست اسم فلش فاصله داره بین اسمش و نمی دونم جای space چی بزارم تا سیستم قاطی نکنه.
ارور:
ms@MTDebian:~$ sudo apt update
Get:1 file:/media/ms/Debian 11.2.0 InRelease
Ign:1 file:/media/ms/Debian 11.2.0 InRelease
Get:2 file:/media/ms/Debian 11.2.0 Release
Err:2 file:/media/ms/Debian 11.2.0 Release
  File not found - /media/ms/Debian/dists/11.2.0/Release (2: No such file or directory)
Reading package lists... Done
N: Download is performed unsandboxed as root as file '/media/ms/Debian/dists/11.2.0/InRelease' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
E: The repository 'file:/media/ms/Debian 11.2.0 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.
اگه اشتباه نکنم که اینجا هم همینجوریه یا ن ... فاصله یه کاراکتر خاصه ، برای اینکه از فاصله به عنوان خود فاصله و نه یک کاراکتر خاص استفاده کنید باید قبل از فاصله یک \ بزارید مثل :
deb file:/media/ms/Debian\ 11.2.0\ amd64\ 1/ bullseye contrib main
عنوان: پاسخ : مشکل افزودن مخزن به apt
ارسال شده توسط: BiG در 11 دی 1400، 02:11 ب‌ظ
فکر کنم من مخزن اشتباه اضافه کردم دوباره همون ارور رو داد
عنوان: پاسخ : مشکل افزودن مخزن به apt
ارسال شده توسط: Dragon- در 11 دی 1400، 04:42 ب‌ظ
فکر کنم پروتکل رو درست مشخص نکردید. احتمالا باید اینجوری اون رو بنویسید.
deb file:///media/ms/Debian\11.2.0\ amd64\ 1/ bullseye main contrib
//:file، پروتکل رو نشون میده. چیزی که پایین نوشتم، مسیر به جایی که باید بگرده
/media/ms/Debian\ 11.2.0\ amd64\ 1/
اگه بالایی نشد، آدرس رو داخل "" قرار بدید و دوباره امتحان کنید.
deb file://"/media/ms/Debian 11.2.0 amd64 1/" bullseye main contribمطمئن نیستم بالایی کار بده.

اگه باز هم نشد، فلش رو یه جای دیگه سوار کنید و مسیر اونجا رو بدید.

چرا بقیه مخازن رو غیرفعال کردید؟ اگه می‌خواهید الویت مخزن محلی بالاتر باشه، اون رو بالاتر از بقیه مخازن تعریف کنید. البته اگه نسخه بسته‌ای، توی مخازن دبیان بیشتر از نسخه همون بسته، توی فلش شما باشه، بسته از مخازن دبیان نصب میشه.
عنوان: پاسخ : مشکل افزودن مخزن به apt
ارسال شده توسط: BiG در 12 دی 1400، 02:25 ب‌ظ
هیچ کدوم از روش ها جواب نداد
موقع نصب سیستم فلش منو به عنوان dvd می شناسه وسط نصب اگر فلش رو بکشم دوباره وصل کنم دیگه نمی شناسه تنها راهش هم اینه که سیستم رو ریبوت کنی دوباره از اول نصب کنی.
عنوان: پاسخ : مشکل افزودن مخزن به apt
ارسال شده توسط: Dragon- در 13 دی 1400، 07:44 ب‌ظ
هیچ کدوم از روش ها جواب نداد
چه خطایی میده؟ وقتی امتحان کردید، فلش سوار شده بود یا نه؟
عنوان: پاسخ : مشکل افزودن مخزن به apt
ارسال شده توسط: 🇮🇷 در 14 دی 1400، 12:28 ب‌ظ
اگر مشکل رو درست متوجه شده باشم:
برید به آدرسی که dvd در اون مونت شده. خروجی pwd رو بذارید به جای آدرس dvd توی sources.list