انجمنهای فارسی اوبونتو
کمک و پشتیبانی => سایر توزیعهای گنو/لینوکس => دبیان => نویسنده: mah_diar در 17 دی 1399، 12:51 بظ
-
سلام
من وقتی که می خوام یک نرم افزار در ترمینال دبیان نصب کنم با خطا مواجه می شم. مثلا:
mahdyar@Mahdyar-PC:~$ sudo apt-get install vlc
[sudo] password for mahdyar:
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:
vlc : Depends: vlc-plugin-base (= 3.0.11-0+deb10u1) but it is not going to be installed
Depends: vlc-plugin-qt (= 3.0.11-0+deb10u1) but it is not going to be installed
Depends: vlc-plugin-video-output (= 3.0.11-0+deb10u1) but it is not going to be installed
Recommends: vlc-plugin-samba (= 3.0.11-0+deb10u1) but it is not going to be installed
Recommends: vlc-plugin-skins2 (= 3.0.11-0+deb10u1) but it is not going to be installed
Recommends: vlc-plugin-video-splitter (= 3.0.11-0+deb10u1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
یا
mahdyar@Mahdyar-PC:~$ sudo apt-get install telegram-desktop
[sudo] password for mahdyar:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package telegram-desktop
حالا باید چه کرد؟
فکر کنم باید یک مخزن اضافه کنم یا پکیج نصب کنم.
-
سلام
ب ترتیب این دستورات اجرا کند ببینید درست میشه
sudo apt clean
sudo apt update
sudo apt install --fix-broken
-
سلام
ب ترتیب این دستورات اجرا کند ببینید درست میشه
sudo apt clean
sudo apt update
sudo apt install --fix-broken
متاسفانه درست نشد.
-
خروجی این دستور بزارید
cat /etc/apt/sources.list
همینطور ببینید تو این مسیر چه فایل هایی هستن
/etc/apt/sources.list.d/
یه سوال PPA اضافه کردین؟ اگه آره بدونید رو دبیان کار نمیکنه و آخر اینکه چه نسخهای از دبیان نصب کردین؟
-
sudo dpkg --configure -a
-
خروجی این دستور بزارید cat /etc/apt/sources.list
mahdyar@Mahdyar-PC:~$ cat /etc/apt/sources.list
#
# deb cdrom:[Debian GNU/Linux 10.7.0 _Buster_ - Official amd64 xfce-CD Binary-1 20201205-11:17]/ buster main
#deb cdrom:[Debian GNU/Linux 10.7.0 _Buster_ - Official amd64 xfce-CD Binary-1 20201205-11:17]/ buster main
deb http://security.debian.org/debian-security buster/updates main
deb-src http://security.debian.org/debian-security buster/updates main
# 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
# deb-src http://deb.debian.org/debian/ buster-updates main
# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
همینطور ببینید تو این مسیر چه فایل هایی هستن
/
etc/apt/sources.list.d/
چیزی وجود نداره.
یه سوال PPA اضافه کردین؟
نه.
و آخر اینکه چه نسخهای از دبیان نصب کردین؟
Debian GNU/Linux 10.7.0 _Buster
ممنون از راهنمایی هاتون.
-
sudo dpkg --configure -a
این رو هم زدم ولی بازم مشکل حل نشد.
-
اینطور که معلومه بعضی مخازن تو لیست نیست
تو این خط #deb http://deb.debian.org/debian buster-updates main
علامت # بردارید
اینم به آخر فایل اضافه کنید تا لیست مخازن درست بشه
deb http://deb.debian.org/debian buster main
الان مخازن آپدیت کنیدsudo apt update
دیگه باید درست بشه بازم مشکلی بود بگید
سورسها را هم اگه میخواید اونجا که با deb-src# شروع میشه علامت # بردارید
آخرشم یه خط مثل همون بالا که گفتم اضافه کنید فقط بجای deb بزارید deb-src
اگه به سورس نیاز ندارید کامنتشون کنید(# اولش بزارید تا موقع آپدیت مخازن حجم کمتری دانلود بشه)
-
اینطور که معلومه بعضی مخازن تو لیست نیست
تو این خط #deb http://deb.debian.org/debian buster-updates main
علامت # بردارید
اینم به آخر فایل اضافه کنید تا لیست مخازن درست بشه
deb http://deb.debian.org/debian buster main
الان مخازن آپدیت کنیدsudo apt update
دیگه باید درست بشه بازم مشکلی بود بگید
سورسها را هم اگه میخواید اونجا که با deb-src# شروع میشه علامت # بردارید
آخرشم یه خط مثل همون بالا که گفتم اضافه کنید فقط بجای deb بزارید deb-src
اگه به سورس نیاز ندارید کامنتشون کنید(# اولش بزارید تا موقع آپدیت مخازن حجم کمتری دانلود بشه)
از شما و بقیه کسانی که سعی کردند به من کمک کنند بسیار سپاس گزارم. مشکل من حل شد. امیدوارم من هم مانند شما بتوانم در حل مشکلات بقیه کمک کنم.