انجمنهای فارسی اوبونتو
کمک و پشتیبانی => شبکه و سرویس دهندهها => نویسنده: firethumbs در 09 دی 1398، 01:52 بظ
-
سلام دوستان
من می خواستم روی دبیان ۱۰ سامبا نصب کنم
sudo apt install samba
در ابتدا که پیام می داد که cd با برچسب Debian GNU/Linux 10.0.0 "Buster" - Official amd64 DVD Binary-1 را داخل سی دی رام بگذارید. و من چون دبیان را با فلش نصب کرده بودم اون را روی مسیر media/cdrom مانت می کردم ولی باز همان پیام را می گرفتم .
تا اینکه با جستجو به این رسیدم که فایل /etc/apt/sources.list را باید ویرایش کنم و یکی از سطرهای اون را کامنت کنم.
deb cdrom:[Debian GNU/Linux 10.0.0 _Buster_ - Official amd64 DVD Binary-1 20190$
و من اینکار را کردم و راه به جایی نبردم مجددا اون سطر را از کامنت در آوردم و دوباره دستور apt را زدم و با پیام زیر مواجه می شوم .
$ sudo apt install samba
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
samba : Depends: python-dnspython but it is not installable
Depends: python-samba but it is not going to be installed
Depends: samba-common-bin (= 2:4.9.5+dfsg-5+deb10u1) but it is not going to be installed
Depends: tdb-tools but it is not installable
Depends: samba-libs (= 2:4.9.5+dfsg-5+deb10u1) but 2:4.9.5+dfsg-5 is to be installed
Recommends: attr but it is not installable
Recommends: samba-dsdb-modules but it is not going to be installed
Recommends: samba-vfs-modules but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
-
درود بر تو
خروجی دستور زیر رو بذار:
$ cat /etc/apt/sources.list
و همچنین:
$ ls /etc/apt/sources.list.d
-
درود بر تو
خروجی دستور زیر رو بذار:
$ cat /etc/apt/sources.list
و همچنین:
$ ls /etc/apt/sources.list.d
#deb cdrom:[Debian GNU/Linux 10.0.0 _Buster_ - Official amd64 DVD Binary-1 20190706-10:24]/ buster contrib main
deb cdrom:[Debian GNU/Linux 10.0.0 _Buster_ - Official amd64 DVD Binary-1 20190706-10:24]/ buster contrib main
deb http://security.debian.org/debian-security buster/updates main contrib
deb-src http://security.debian.org/debian-security buster/updates main contrib
# buster-updates, previously known as 'volatile'
# A network mirror was not selected during install. The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
# deb http://deb.debian.org/debian/ buster-updates main contrib
# deb-src http://deb.debian.org/debian/ buster-updates main contrib
خروجی دومی هیچ است.
-
درود بر تو
خروجی دستور زیر رو بذار:
$ cat /etc/apt/sources.list
و همچنین:
$ ls /etc/apt/sources.list.d
#deb cdrom:[Debian GNU/Linux 10.0.0 _Buster_ - Official amd64 DVD Binary-1 20190706-10:24]/ buster contrib main
deb cdrom:[Debian GNU/Linux 10.0.0 _Buster_ - Official amd64 DVD Binary-1 20190706-10:24]/ buster contrib main
deb http://security.debian.org/debian-security buster/updates main contrib
deb-src http://security.debian.org/debian-security buster/updates main contrib
# buster-updates, previously known as 'volatile'
# A network mirror was not selected during install. The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
# deb http://deb.debian.org/debian/ buster-updates main contrib
# deb-src http://deb.debian.org/debian/ buster-updates main contrib
خروجی دومی هیچ است.
تو خط اصلی مربوط به مخزن دبیان رو پاک کردی. ابتدا دستور زیر رو بزن تا اون فایل رو باز کنی:
$ sudo nano /etc/apt/sources.list
بعد متنش رو به زیر تغییر بده:
deb http://deb.debian.org/debian/ buster main contrib
deb-src http://deb.debian.org/debian/ buster main contrib
deb http://deb.debian.org/debian/ buster-updates main contrib
deb-src http://deb.debian.org/debian/ buster-updates main contrib
deb http://security.debian.org/debian-security buster/updates main contrib
deb-src http://security.debian.org/debian-security buster/updates main contrib
بعدش Ctrl-x رو بزن تا متن save بشه. آخر کار هم دستور زیر رو بزن تا مخزن به روز رسانی بشه:
$ sudo apt update
-
تو خط اصلی مربوط به مخزن دبیان رو پاک کردی. ابتدا دستور زیر رو بزن تا اون فایل رو باز کنی:
$ sudo nano /etc/apt/sources.list
بعد متنش رو به زیر تغییر بده:
deb http://deb.debian.org/debian/ buster main contrib
deb-src http://deb.debian.org/debian/ buster main contrib
deb http://deb.debian.org/debian/ buster-updates main contrib
deb-src http://deb.debian.org/debian/ buster-updates main contrib
deb http://security.debian.org/debian-security buster/updates main contrib
deb-src http://security.debian.org/debian-security buster/updates main contrib
بعدش Ctrl-x رو بزن تا متن save بشه. آخر کار هم دستور زیر رو بزن تا مخزن به روز رسانی بشه:
$ sudo apt update
دوست عزیز از لطفت خیلی ممنونم . درست شد.
فقط یه سوال اینکه من ۳ تا دی وی دی دبیان را دانلود و با دستور cat آنها را یکی کردم و در نهایت یه فلش بوتیبل از اون درست کردم. آیا کلیه پکیجهای موجود توی اون فلش موجود هست؟ اگه هست چطور می تونم اون را به لیست sources.list اضافه کنم و در صورت عدم اتصال به اینترنت از اون استفاده کنم؟
باتشکر
-
فقط یه سوال اینکه من ۳ تا دی وی دی دبیان را دانلود و با دستور cat آنها را یکی کردم و در نهایت یه فلش بوتیبل از اون درست کردم. آیا کلیه پکیجهای موجود توی اون فلش موجود هست؟ اگه هست چطور می تونم اون را به لیست sources.list اضافه کنم و در صورت عدم اتصال به اینترنت از اون استفاده کنم؟
اشتباه نکنم باید برای این سوال یک تایپ جدید میزدید.
اگر چندتا DVD رو cat کردید رو هم، تا جایی که من میدونم فقط اولی در دسترس خواهد بود. یعنی کاری که کردید منطقی نیست اصلا.
شما میتونید iso ها رو mount کنید و به عنوان مخزن تو sources.list اضافه کنید.
فرضا فایل ISO در mnt/storage/debian-CD-1.iso/ قرار داره، تو etc/fstab/ بزارید:
/mnt/storage/debian-CD-1.iso /mnt/debian-cd/ udf,iso9660 loop 0 0
و تو sources.list:
deb file:/mnt/debian-cd/ stable main contrib
یک راهنمای گامبهگام:
https://novicenolonger.com/using-a-debian-iso-instead-of-a-cd-rom-in-your-sources-list/
یک راهنمای بهتر:
https://lists.debian.org/debian-user/2014/05/msg00562.html