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

کمک و پشتیبانی => انجمن عمومی => نویسنده: mr-omid در 07 مهر 1403، 05:35 ب‌ظ

عنوان: داشتن دو ورژن پایتون
ارسال شده توسط: mr-omid در 07 مهر 1403، 05:35 ب‌ظ
سلام ، وقت همگی بخیر ، در حال حاظر در سیستم من دو ورژن پایتون وجود داره:

python3            python3.12-config  pythoncalls-bpfcc  pythongc-bpfcc
python3.12         python3-config     pythonflow-bpfcc   pythonstat-bpfcc

میخوام پایتون 3.12 حذف کنم ، ولی دستور apt remove python3.12 این ارور بهم میده ، ممنون میشم راهنماییم کنید.

apt remove python3.12
Reading package lists... Done
Building dependency tree... Done
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:
 python3 : Depends: python3.12 (>= 3.12.3-0~) but it is not going to be installed
 python3-zipp : Depends: python3-more-itertools but it is not going to be installed
 shim-signed : Depends: grub-efi-amd64-signed (>= 1.191~) but it is not going to be installed or
                        grub-efi-arm64-signed (>= 1.191~) but it is not installable or
                        base-files (< 12.3)
               Depends: grub-efi-amd64-signed (>= 1.187.2~) but it is not going to be installed or
                        grub-efi-arm64-signed (>= 1.187.2~) but it is not installable
               Depends: grub2-common (>= 2.04-1ubuntu24) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
عنوان: پاسخ : داشتن دو ورژن پایتون
ارسال شده توسط: 🇬🇧بریتانیای کبیر🇬🇧 در 07 مهر 1403، 05:55 ب‌ظ
لطفا هیچ کدومو حذف نکنید، وگرنه سامانه خراب میشه. هر دوتاشون لازمه. بسته ها رو یا خودتون مستقیم نصب مکینید یا اگه نصب شدن وابستگی چیزی بودن. الکی که نصب نشدن!!! از کاربر ریشه هم استفاده نکنید!

الآن خروجی های زیر را بفرستید.
sudo apt update
sudo apt upgrade

بزنید
sudo apt autoremoveولی تاییدش نکنید و همون خروجی اولیشو بفرستید.
عنوان: پاسخ : داشتن دو ورژن پایتون
ارسال شده توسط: esmaeelE در 07 مهر 1403، 07:16 ب‌ظ
جفتشون یکی هستن و نباید حذفش کنید.

$ ls -ltrh $(which python3)
lrwxrwxrwx 1 root root 10 Apr  9  2023 /usr/bin/python3 -> python3.11
$ ls -ltrh $(which python3.11)
-rwxr-xr-x 1 root root 6.6M Aug 26 10:50 /usr/bin/python3.11

عنوان: پاسخ : داشتن دو ورژن پایتون
ارسال شده توسط: 🇬🇧بریتانیای کبیر🇬🇧 در 07 مهر 1403، 07:24 ب‌ظ
نقل‌قول
جفتشون یکی هستن و نباید حذفش کنید.
دستوراتشون یکین ولی بسته هایی با همین نام وجود داره و با هم فرق دارن.
عنوان: پاسخ : داشتن دو ورژن پایتون
ارسال شده توسط: آوید! در 07 مهر 1403، 09:43 ب‌ظ
بسته python3 همیشه لینکه به python3.x (آخرین نگارش)
برای راحت کردن کار برنامه‌نویس‌هاست.
عنوان: پاسخ : داشتن دو ورژن پایتون
ارسال شده توسط: 🇬🇧بریتانیای کبیر🇬🇧 در 07 مهر 1403، 09:58 ب‌ظ
بسته python3 همیشه لینکه به python3.x (آخرین نگارش)
برای راحت کردن کار برنامه‌نویس‌هاست.

دستوراتشون یکیه ولی بسته هاشون خیر.
hasan@debian:~$ apt show python3
Package: python3
Version: 3.12.5-1+b1
Priority: optional
Section: python
Source: python3-defaults (3.12.5-1)
Maintainer: Matthias Klose <doko@debian.org>
Installed-Size: 85.0 kB
Provides: python3-profiler, python3-supported-max (= 3.12), python3-supported-min (= 3.12)
Pre-Depends: python3-minimal (= 3.12.5-1+b1)
Depends: python3.12 (>= 3.12.4-1~), libpython3-stdlib (= 3.12.5-1+b1)
Suggests: python3-doc (>= 3.12.5-1+b1), python3-tk (>= 3.12.4-2~), python3-venv (>= 3.12.5-1+b1)
Conflicts: python3-distutils
Replaces: python3-minimal (<< 3.1.2-2)
Homepage: https://www.python.org/
Tag: devel::interpreter, devel::lang:python, devel::library,
 implemented-in::c, implemented-in::python, role::devel-lib,
 role::program, role::shared-lib
Download-Size: 27.9 kB
APT-Manual-Installed: no
APT-Sources: https://archive.debian.petiak.ir/debian trixie/main amd64 Packages
Description: interactive high-level object-oriented language (default python3 version)
 Python, the high-level, interactive object oriented language,
 includes an extensive class library with lots of goodies for
 network programming, system administration, sounds and graphics.
 .
 This package is a dependency package, which depends on Debian's default
 Python 3 version (currently v3.12).

hasan@debian:~$ apt show python3.12
Package: python3.12
Version: 3.12.6-1
Priority: optional
Section: python
Maintainer: Matthias Klose <doko@debian.org>
Installed-Size: 762 kB
Depends: python3.12-minimal (= 3.12.6-1), libpython3.12-stdlib (= 3.12.6-1), media-types | mime-support, tzdata
Recommends: ca-certificates
Suggests: python3.12-venv, python3.12-doc, binutils
Breaks: python3-all (<< 3.6.5~rc1-1), python3-dev (<< 3.6.5~rc1-1), python3-venv (<< 3.6.5-2)
Download-Size: 669 kB
APT-Manual-Installed: yes
APT-Sources: https://archive.debian.petiak.ir/debian trixie/main amd64 Packages
Description: Interactive high-level object-oriented language (version 3.12)
 Python is a high-level, interactive, object-oriented language. Its 3.12 version
 includes an extensive class library with lots of goodies for
 network programming, system administration, sounds and graphics.

hasan@debian:~$

عنوان: پاسخ : داشتن دو ورژن پایتون
ارسال شده توسط: آوید! در 08 مهر 1403، 09:06 ق‌ظ
خب خودش چیزی نداره دیگه، وصله به اون یکی.
عنوان: پاسخ : داشتن دو ورژن پایتون
ارسال شده توسط: دانیال بهزادی در 09 مهر 1403، 03:34 ب‌ظ
$ ls -l $(which python3)
عنوان: پاسخ : داشتن دو ورژن پایتون
ارسال شده توسط: esmaeelE در 14 مهر 1403، 10:41 ب‌ظ
بسته python3 همیشه لینکه به python3.x (آخرین نگارش)
برای راحت کردن کار برنامه‌نویس‌هاست.

دستوراتشون یکیه ولی بسته هاشون خیر.
hasan@debian:~$ apt show python3
Package: python3
Version: 3.12.5-1+b1
Priority: optional
Section: python
Source: python3-defaults (3.12.5-1)
Maintainer: Matthias Klose <doko@debian.org>
Installed-Size: 85.0 kB
Provides: python3-profiler, python3-supported-max (= 3.12), python3-supported-min (= 3.12)
Pre-Depends: python3-minimal (= 3.12.5-1+b1)
Depends: python3.12 (>= 3.12.4-1~), libpython3-stdlib (= 3.12.5-1+b1)
Suggests: python3-doc (>= 3.12.5-1+b1), python3-tk (>= 3.12.4-2~), python3-venv (>= 3.12.5-1+b1)
Conflicts: python3-distutils
Replaces: python3-minimal (<< 3.1.2-2)
Homepage: https://www.python.org/
Tag: devel::interpreter, devel::lang:python, devel::library,
 implemented-in::c, implemented-in::python, role::devel-lib,
 role::program, role::shared-lib
Download-Size: 27.9 kB
APT-Manual-Installed: no
APT-Sources: https://archive.debian.petiak.ir/debian trixie/main amd64 Packages
Description: interactive high-level object-oriented language (default python3 version)
 Python, the high-level, interactive object oriented language,
 includes an extensive class library with lots of goodies for
 network programming, system administration, sounds and graphics.
 .
 This package is a dependency package, which depends on Debian's default
 Python 3 version (currently v3.12).

hasan@debian:~$ apt show python3.12
Package: python3.12
Version: 3.12.6-1
Priority: optional
Section: python
Maintainer: Matthias Klose <doko@debian.org>
Installed-Size: 762 kB
Depends: python3.12-minimal (= 3.12.6-1), libpython3.12-stdlib (= 3.12.6-1), media-types | mime-support, tzdata
Recommends: ca-certificates
Suggests: python3.12-venv, python3.12-doc, binutils
Breaks: python3-all (<< 3.6.5~rc1-1), python3-dev (<< 3.6.5~rc1-1), python3-venv (<< 3.6.5-2)
Download-Size: 669 kB
APT-Manual-Installed: yes
APT-Sources: https://archive.debian.petiak.ir/debian trixie/main amd64 Packages
Description: Interactive high-level object-oriented language (version 3.12)
 Python is a high-level, interactive, object-oriented language. Its 3.12 version
 includes an extensive class library with lots of goodies for
 network programming, system administration, sounds and graphics.
hasan@debian:~$

درسته این‌ها دو تا بستهٔ متفاوت در مخزن هستند به وضوح حجم‌ها هم تفاوت دارند. باید بررسی کرد که دلیلش چیه.