انجمنهای فارسی اوبونتو
تازه کار => انجمن تازهکاران => نویسنده: SALIH در 11 دی 1401، 04:17 بظ
-
ُسلام، وقت بخیر.
برای اینکه میخواستم روی سرورم پراکسی MTPRO نصب کنم مجبور بودم docker رو روی سرور نصب کنم و موفق به نصب هم شدم اما بعد از نصب دیگه نمیتونم سرور رو آپدیت کنم، فکر میکنم فایل سورس مشکل پیدا کرده ولی با ایجاد تغییرات روی فایل سورس بازم درست نشد.
اروری که از دستور apt update میگیرم:
E: Conflicting values set for option Signed-By regarding source https://download.docker.com/linux/debian/ bullseye: /etc/apt/keyrings/docker.gpg !=
E: The list of sources could not be read.
واسه درست کردنش باید چکار کنم؟ و اینکه پراکسی رو هم نتونستم درست کنم. docker رو هم نمیتونم حذف کنم.
-
داکر توی مخازن دبیان هست و لازم نیست مخزن جدا برای اون اضافه کنید. کافیه بسته docker.io رو نصب کنید. البته نسخه اون توی دبیان پایدار، یکم از آخرین نسخه عقبتره.
برای مشکلی که الان دارید، خروجی این دستورات رو بفرستید تا مشخص بشه چه مخازنی دارید.
cat /etc/apt/sources.list
ls -l /etc/apt/sources.list.d/
-
سلام، ممنون از پاسختون
خروجی دستوری که گفتید:
deb http://archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ xenial-backports multiverse restricted universe main
total 12
-rw-r--r-- 1 root root 189 Dec 28 18:33 docker.list
-rw-r--r-- 1 root root 162 Oct 9 04:12 hetzner-mirror.list
-rw-r--r-- 1 root root 86 Oct 9 04:12 hetzner-security-updates.list
در ضمن سرورم روی دبیان 11 هستش.
-
داکر رو پاک کن. مخزنش رو بردار و داکر رو دوباره از مخازن خود توزیعت نصب کن.
-
زیاد بلد نیستم، سعی کردم پاک کنم ولی نتونستم. لطف میکنید کمک کنید؟
-
فایل مربوط به داکر در این نشانی را حذف کنید.
کافیه فرمان زیر را اجرا کنید.
rm /etc/apt/sources.list.d/docker.list
و سپس خروجی فرمان زیر را ارسال کنید.
apt update
-
سلام ممنون از پاسختون.
خروجی apt update بعد از پاک کردن docker:
Hit:1 http://mirror.hetzner.com/debian/packages bullseye InRelease
Get:2 http://mirror.hetzner.com/debian/packages bullseye-updates InRelease [44.1 kB]
Get:3 http://mirror.hetzner.com/debian/security bullseye-security InRelease [48.4 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:5 http://security.ubuntu.com/ubuntu xenial-security InRelease [99.8 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [99.8 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [97.4 kB]
Get:8 http://mirror.hetzner.com/debian/security bullseye-security/main amd64 Packages [210 kB]
Get:9 http://mirror.hetzner.com/debian/security bullseye-security/main Translation-en [137 kB]
Err:4 http://archive.ubuntu.com/ubuntu xenial InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
Err:6 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
Err:7 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
Err:5 http://security.ubuntu.com/ubuntu xenial-security InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
Reading package lists... Done
W: GPG error: http://archive.ubuntu.com/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
E: The repository 'http://archive.ubuntu.com/ubuntu xenial InRelease' is not signed.
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.
W: GPG error: http://archive.ubuntu.com/ubuntu xenial-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
E: The repository 'http://archive.ubuntu.com/ubuntu xenial-updates InRelease' is not signed.
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.
W: GPG error: http://archive.ubuntu.com/ubuntu xenial-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
E: The repository 'http://archive.ubuntu.com/ubuntu xenial-backports InRelease' is not signed.
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.
W: GPG error: http://security.ubuntu.com/ubuntu xenial-security InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
E: The repository 'http://security.ubuntu.com/ubuntu xenial-security InRelease' is not signed.
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 update بعد از پاک کردن docker:
Hit:1 http://mirror.hetzner.com/debian/packages bullseye InRelease
Get:2 http://mirror.hetzner.com/debian/packages bullseye-updates InRelease [44.1 kB]
Get:3 http://mirror.hetzner.com/debian/security bullseye-security InRelease [48.4 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:5 http://security.ubuntu.com/ubuntu xenial-security InRelease [99.8 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [99.8 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [97.4 kB]
Get:8 http://mirror.hetzner.com/debian/security bullseye-security/main amd64 Packages [210 kB]
Get:9 http://mirror.hetzner.com/debian/security bullseye-security/main Translation-en [137 kB]
Err:4 http://archive.ubuntu.com/ubuntu xenial InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
Err:6 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
Err:7 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
Err:5 http://security.ubuntu.com/ubuntu xenial-security InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
Reading package lists... Done
W: GPG error: http://archive.ubuntu.com/ubuntu xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
E: The repository 'http://archive.ubuntu.com/ubuntu xenial InRelease' is not signed.
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.
W: GPG error: http://archive.ubuntu.com/ubuntu xenial-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
E: The repository 'http://archive.ubuntu.com/ubuntu xenial-updates InRelease' is not signed.
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.
W: GPG error: http://archive.ubuntu.com/ubuntu xenial-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
E: The repository 'http://archive.ubuntu.com/ubuntu xenial-backports InRelease' is not signed.
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.
W: GPG error: http://security.ubuntu.com/ubuntu xenial-security InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
E: The repository 'http://security.ubuntu.com/ubuntu xenial-security InRelease' is not signed.
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.
البته docker هنوز کامل پاک نشده، چون کدشو میزنم میاد باز:
Usage: docker [OPTIONS] COMMAND
A self-sufficient runtime for containers
Options:
--config string Location of client config files (default "/root/.docker")
-c, --context string Name of the context to use to connect to the daemon (overrides DOCKER_HOST env var and default context set with "docker context use")
-D, --debug Enable debug mode
-H, --host list Daemon socket(s) to connect to
-l, --log-level string Set the logging level ("debug"|"info"|"warn"|"error"|"fatal") (default "info")
--tls Use TLS; implied by --tlsverify
--tlscacert string Trust certs signed only by this CA (default "/root/.docker/ca.pem")
--tlscert string Path to TLS certificate file (default "/root/.docker/cert.pem")
--tlskey string Path to TLS key file (default "/root/.docker/key.pem")
--tlsverify Use TLS and verify the remote
-v, --version Print version information and quit
Management Commands:
app* Docker App (Docker Inc., v0.9.1-beta3)
builder Manage builds
buildx* Docker Buildx (Docker Inc., v0.9.1-docker)
compose* Docker Compose (Docker Inc., v2.14.1)
config Manage Docker configs
container Manage containers
context Manage contexts
image Manage images
manifest Manage Docker image manifests and manifest lists
network Manage networks
node Manage Swarm nodes
plugin Manage plugins
secret Manage Docker secrets
service Manage services
stack Manage Docker stacks
swarm Manage Swarm
system Manage Docker
trust Manage trust on Docker images
volume Manage volumes
Commands:
attach Attach local standard input, output, and error streams to a running container
build Build an image from a Dockerfile
commit Create a new image from a container's changes
cp Copy files/folders between a container and the local filesystem
create Create a new container
diff Inspect changes to files or directories on a container's filesystem
events Get real time events from the server
exec Run a command in a running container
export Export a container's filesystem as a tar archive
history Show the history of an image
images List images
import Import the contents from a tarball to create a filesystem image
info Display system-wide information
inspect Return low-level information on Docker objects
kill Kill one or more running containers
load Load an image from a tar archive or STDIN
login Log in to a Docker registry
logout Log out from a Docker registry
logs Fetch the logs of a container
pause Pause all processes within one or more containers
port List port mappings or a specific mapping for the container
ps List containers
pull Pull an image or a repository from a registry
push Push an image or a repository to a registry
rename Rename a container
restart Restart one or more containers
rm Remove one or more containers
rmi Remove one or more images
run Run a command in a new container
save Save one or more images to a tar archive (streamed to STDOUT by default)
search Search the Docker Hub for images
start Start one or more stopped containers
stats Display a live stream of container(s) resource usage statistics
stop Stop one or more running containers
tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
top Display the running processes of a container
unpause Unpause all processes within one or more containers
update Update configuration of one or more containers
version Show the Docker version information
wait Block until one or more containers stop, then print their exit codes
Run 'docker COMMAND --help' for more information on a command.
To get more help with docker, check out our guides at https://docs.docker.com/go/guides/
-
باید اوبونتو رو ارتقا بدی. این نگارش دیگه کار نمیکنه
اول داکر اشتباه رو پاک کن:
$ sudo apt remove --auto-remove --purge docker-ce
اوبونتوت رو ارتقا بده:
$ sudo dog released upgrade
بعد از بالا اومدن نگارش جدید، با این دستور داکر رو نصب کن:
$ sudo apt install docker.io
-
باید اوبونتو رو ارتقا بدی. این نگارش دیگه کار نمیکنه
اول داکر اشتباه رو پاک کن:
$ sudo apt remove --auto-remove --purge docker-ce
اوبونتوت رو ارتقا بده:
$ sudo dog released upgrade
بعد از بالا اومدن نگارش جدید، با این دستور داکر رو نصب کن:
$ sudo apt install docker.io
با فرض اینکه نمیخواهیم توزیع را ارتقا دهیم آیا با افزودن کلید مشکل حل نمیشه؟
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
-
باید اوبونتو رو ارتقا بدی. این نگارش دیگه کار نمیکنه
اول داکر اشتباه رو پاک کن:
$ sudo apt remove --auto-remove --purge docker-ce
اوبونتوت رو ارتقا بده:
$ sudo dog released upgrade
بعد از بالا اومدن نگارش جدید، با این دستور داکر رو نصب کن:
$ sudo apt install docker.io
خروجی کد دوم ارور میده:
sudo: dog: command not found
-
یه اشکال تایپی کوچیک داره
sudo do-release-upgrade
-
شما دبیان دارید یا اوبونتو؟ آخه هم مخازن دبیان تنظیم شده و هم اوبونتو.
خروجی این دستور رو بذارید
cat /etc/os-release
-
شما دبیان دارید یا اوبونتو؟ آخه هم مخازن دبیان تنظیم شده و هم اوبونتو.
خروجی این دستور رو بذارید
cat /etc/os-release
خروجی دستوری که فرمودید:
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
-
یه اشکال تایپی کوچیک داره
sudo do-release-upgrade
بازم ارور میده:
sudo: do-release-upgrade: command not found
-
انگار دبیان دارید. امیدوارم همینطور باشه. برای اطمینان بیشتر، خروجی این دستورات رو هم بذارید
dpkg --version
apt --version
apt list --installed libapt-pkg*
dpkg-query -W -f='${Status}\t${Package}\n' | grep -v 'install ok installed'
cat --version
uname -a
ls -l /boot/
systemctl --version
ldd --version
ldconfig --version
/lib64/ld-linux-x86-64.so.2 --version
یه اشکال تایپی کوچیک داره
sudo do-release-upgrade
بازم ارور میده:
sudo: do-release-upgrade: command not found
دستور do-release-upgrade برای اوبونتو کار میده. توی دبیان وجود نداره.
-
انگار دبیان دارید. امیدوارم همینطور باشه. برای اطمینان بیشتر، خروجی این دستورات رو هم بذارید
dpkg --version
apt --version
apt list --installed libapt-pkg*
dpkg-query -W -f='${Status}\t${Package}\n' | grep -v 'install ok installed'
cat --version
uname -a
ls -l /boot/
systemctl --version
ldd --version
ldconfig --version
/lib64/ld-linux-x86-64.so.2 --version
یه اشکال تایپی کوچیک داره
sudo do-release-upgrade
بازم ارور میده:
sudo: do-release-upgrade: command not found
دستور do-release-upgrade برای اوبونتو کار میده. توی دبیان وجود نداره.
بله سرور دبیان 11 هستش
خروجی دستوری که گفتید:
-bash: dpkg: command not found
apt 2.2.4 (amd64)
Listing... Done
libapt-pkg6.0/stable,now 2.2.4 amd64 [installed]
deinstall ok config-files containerd.io
install ok half-configured initramfs-tools
cat (GNU coreutils) 8.32
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Torbjorn Granlund and Richard M. Stallman.
Linux SALIH-debian-2gb-nbg1-1 5.10.0-18-amd64 #1 SMP Debian 5.10.140-1 (2022-09-02) x86_64 GNU/Linux
total 123985
-rw-r--r-- 1 root root 236286 Sep 2 13:54 config-5.10.0-18-amd64
-rw-r--r-- 1 root root 236275 Oct 21 20:24 config-5.10.0-19-amd64
-rw-r--r-- 1 root root 236452 Dec 13 20:46 config-5.10.0-20-amd64
drwx------ 3 root root 512 Jan 1 1970 efi
drwxr-xr-x 6 root root 4096 Dec 28 14:41 grub
-rw-r--r-- 1 root root 35093119 Oct 9 04:17 initrd.img-5.10.0-18-amd64
-rw-r--r-- 1 root root 35089872 Dec 11 14:52 initrd.img-5.10.0-19-amd64
-rw-r--r-- 1 root root 35100694 Dec 28 14:40 initrd.img-5.10.0-20-amd64
-rw-r--r-- 1 root root 83 Sep 2 13:54 System.map-5.10.0-18-amd64
-rw-r--r-- 1 root root 83 Oct 21 20:24 System.map-5.10.0-19-amd64
-rw-r--r-- 1 root root 83 Dec 13 20:46 System.map-5.10.0-20-amd64
-rw-r--r-- 1 root root 6962016 Sep 2 13:54 vmlinuz-5.10.0-18-amd64
-rw-r--r-- 1 root root 6963648 Oct 21 20:24 vmlinuz-5.10.0-19-amd64
-rw-r--r-- 1 root root 7008928 Dec 13 20:46 vmlinuz-5.10.0-20-amd64
systemd 247 (247.3-7+deb11u1)
+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified
ldd (Debian GLIBC 2.31-13+deb11u5) 2.31
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
ldconfig (Debian GLIBC 2.31-13+deb11u5) 2.31
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Andreas Jaeger.
--version: error while loading shared libraries: --version: cannot open shared object file
در صمن جدیدا خروجی دستور apt upgrade تغییر کرده و اینطور شده:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Could not exec dpkg!
E: Sub-process /usr/bin/dpkg returned an error code (100)
-
متأسفانه دبیانشتاین ساختید.
-
پیشنهاد میکنم این را مطالعه بفرمایید:
https://wiki.ubuntu.ir/wiki/%D8%AF%D8%A8%DB%8C%D8%A7%D9%86_%D8%B1%D8%A7_%D8%AE%D8%B1%D8%A7%D8%A8_%D9%86%DA%A9%D9%86%DB%8C%D8%AF
-
بله سرور دبیان 11 هستش
خروجی دستوری که گفتید:
-bash: dpkg: command not found
apt 2.2.4 (amd64)
Listing... Done
libapt-pkg6.0/stable,now 2.2.4 amd64 [installed]
deinstall ok config-files containerd.io
install ok half-configured initramfs-tools
cat (GNU coreutils) 8.32
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Torbjorn Granlund and Richard M. Stallman.
Linux SALIH-debian-2gb-nbg1-1 5.10.0-18-amd64 #1 SMP Debian 5.10.140-1 (2022-09-02) x86_64 GNU/Linux
total 123985
-rw-r--r-- 1 root root 236286 Sep 2 13:54 config-5.10.0-18-amd64
-rw-r--r-- 1 root root 236275 Oct 21 20:24 config-5.10.0-19-amd64
-rw-r--r-- 1 root root 236452 Dec 13 20:46 config-5.10.0-20-amd64
drwx------ 3 root root 512 Jan 1 1970 efi
drwxr-xr-x 6 root root 4096 Dec 28 14:41 grub
-rw-r--r-- 1 root root 35093119 Oct 9 04:17 initrd.img-5.10.0-18-amd64
-rw-r--r-- 1 root root 35089872 Dec 11 14:52 initrd.img-5.10.0-19-amd64
-rw-r--r-- 1 root root 35100694 Dec 28 14:40 initrd.img-5.10.0-20-amd64
-rw-r--r-- 1 root root 83 Sep 2 13:54 System.map-5.10.0-18-amd64
-rw-r--r-- 1 root root 83 Oct 21 20:24 System.map-5.10.0-19-amd64
-rw-r--r-- 1 root root 83 Dec 13 20:46 System.map-5.10.0-20-amd64
-rw-r--r-- 1 root root 6962016 Sep 2 13:54 vmlinuz-5.10.0-18-amd64
-rw-r--r-- 1 root root 6963648 Oct 21 20:24 vmlinuz-5.10.0-19-amd64
-rw-r--r-- 1 root root 7008928 Dec 13 20:46 vmlinuz-5.10.0-20-amd64
systemd 247 (247.3-7+deb11u1)
+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified
ldd (Debian GLIBC 2.31-13+deb11u5) 2.31
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
ldconfig (Debian GLIBC 2.31-13+deb11u5) 2.31
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Andreas Jaeger.
--version: error while loading shared libraries: --version: cannot open shared object file
بهتر بود خروجی هر دستور رو با یکم فاصله از قبلی و بعدی قرار میدادید تا راحتتر بشه اونها رو خوند و از هم تفکیک کرد.
به نظر میاد نسخه نرمافزارها، کرنل و glibc مربوط به دبیان ۱۱ هست.
وضعیت بستهها هم مشکل خاصی نداره. فقط فایل پیکربندی مربوط به بسته containerd.io هنوز توی سیستم هست که اونها با یه apt purge containerd.io پاک میشن، بسته initramfs-tools هم نصفه نیمه نصب شد که اون هم باید با یه dpkg --configure -a یا apt install -f حل بشه.
ولی یه مشکل جدی توی سیستم وجود داره. dpkg کار نمیده!
دقیقا نمیدونم چرا اینجوری شده. شاید برای تعمیرش به یه توزیع دیگه نیاز پیدا کنید.
خروجی این دستورات چیه؟
ls -l /usr/bin/dpkg
lsattr /usr/bin/dpkg
getcap /usr/bin/dpkg
در صمن جدیدا خروجی دستور apt upgrade تغییر کرده و اینطور شده:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Could not exec dpkg!
E: Sub-process /usr/bin/dpkg returned an error code (100)
به خاطر این هست که dpkg درست کار نمیکنه.