Ubuntu16.04完全に壊れたpython3 + dpkg + apt-get!

ElectRocnic

多分誰かがこの地獄を通して私を助けることができます:

このエラーが発生したときにすべてが始まりました:https//askubuntu.com/a/1034266/570817

どういうわけかppa:jonathonf/python-3.6インストールを削除しようとしましたが、そもそも間違って、python3ファイルを削除しました/usr/bin/python3*

次に、他の同様の投稿でさまざまなヒントを試してエラーを出すことにより、継続的な速度で地獄に直行しました。そのうちのいくつかから、完全な出力を投稿します。

最初に私はsudo apt-get remove python3..。

次に、次の出力が得られます。

sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of python3:
 python3 depends on dh-python; however:
  Package dh-python is not configured yet.

dpkg: error processing package python3 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of update-notifier-common:
 update-notifier-common depends on python3:any; however:
  Package python3 is not configured yet.

dpkg: error processing package update-notifier-common (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-update-manager:
 python3-update-manager depends on python3:any (>= 3.3.2-2~); however:
  Package python3 is not configured yet.

dpkg: error processing package python3-update-manager (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of apport-gtk:
 apport-gtk depends on python3; however:
  Package python3 is not configured yet.

dpkg: error processing package apport-gtk (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of apturl:
 apturl depends on python3:any (>= 3.3.2-2~); however:
  Package python3 is not configured yet.

dpkg: error processing package apturl (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ubuntu-release-upgrader-core:
 ubuntu-release-upgrader-core depends on python3:any (>= 3.2~); however:
  Package python3 is not configured yet.

dpkg: error processing package ubuntu-release-upgrader-core (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of apturl-common:
 apturl-common depends on python3:any (>= 3.3.2-2~); however:
  Package python3 is not configured yet.
 apturl-common depends on python3-update-manager; however:
  Package python3-update-manager is not configured yet.

dpkg: error processing package apturl-common (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of update-notifier:
 update-notifier depends on update-notifier-common (= 3.168.9); however:
  Package update-notifier-common is not configured yet.

dpkg: error processing package update-notifier (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of aptdaemon:
 aptdaemon depends on python3; however:
  Package python3 is not configured yet.
 aptdaemon depends on python3:any (>= 3.2~); however:
  Package python3 is not configured yet.

dpkg: error processing package aptdaemon (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-requests:
 python3-requests depends on python3:any (>= 3.3.2-2~); however:
  Package python3 is not configured yet.

dpkg: error processing package python3-requests (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of apport:
 apport depends on python3; however:
  Package python3 is not configured yet.

dpkg: error processing package apport (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of update-manager:
 update-manager depends on python3:any (>= 3.3.2-2~); however:
  Package python3 is not configured yet.
 update-manager depends on update-manager-core (= 1:16.04.13); however:
  Version of update-manager-core on system is 1:16.04.15.
 update-manager depends on update-notifier; however:
  Package update-notifier is not configured yet.

dpkg: error processing package update-manager (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-urllib3:
 python3-urllib3 depends on python3:any (>= 3.3.2-2~); however:
  Package python3 is not configured yet.

dpkg: error processing package python3-urllib3 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent processing triggers for gnome-menus:
 gnome-menus depends on python3:any (>= 3.1~); however:
  Package python3 is not configured yet.

dpkg: error processing package gnome-menus (--configure):
 dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent configuration of python3-distupgrade:
 python3-distupgrade depends on python3:any (>= 3.3.2-2~); however:
  Package python3 is not configured yet.
 python3-distupgrade depends on python3-update-manager (>= 1:0.196.2~); however:
  Package python3-update-manager is not configured yet.

dpkg: error processing package python3-distupgrade (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ubuntu-release-upgrader-gtk:
 ubuntu-release-upgrader-gtk depends on ubuntu-release-upgrader-core (= 1:16.04.25); however:
  Package ubuntu-release-upgrader-core is not configured yet.
 ubuntu-release-upgrader-gtk depends on update-manager; however:
  Package update-manager is not configured yet.
 ubuntu-release-upgrader-gtk depends on python3-distupgrade (= 1:16.04.25); however:
  Package python3-distupgrade is not configured yet.

dpkg: error processing package ubuntu-release-upgrader-gtk (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of update-manager-core:
 update-manager-core depends on python3:any (>= 3.2~); however:
  Package python3 is not configured yet.
 update-manager-core depends on python3-update-manager (= 1:16.04.15); however:
  Package python3-update-manager is not configured yet.
 update-manager-core depends on ubuntu-release-upgrader-core; however:
  Package ubuntu-release-upgrader-core is not configured yet.

dpkg: error processing package update-manager-core (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gconf2:
 gconf2 depends on python3:any; however:
  Package python3 is not configured yet.

dpkg: error processing package gconf2 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python3
 update-notifier-common
 python3-update-manager
 apport-gtk
 apturl
 ubuntu-release-upgrader-core
 apturl-common
 update-notifier
 aptdaemon
 python3-requests
 apport
 update-manager
 python3-urllib3
 gnome-menus
 python3-distupgrade
 ubuntu-release-upgrader-gtk
 update-manager-core
 gconf2

sudo apt-get -f install

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  appstream compiz-core compiz-plugins-default gnome-software-common guile-2.0-libs libapparmor-perl libappstream3 libcompizconfig0 libdecoration0 libjemalloc1
  libmetacity-private3a libopencolorio1v5 libopenimageio1.6 libsnapd-glib1 libspnav0 libyaml-cpp0.3v5 metacity-common python-backports.ssl-match-hostname
  python-cached-property python-docker python-dockerpty python-docopt python-funcsigs python-functools32 python-jsonschema python-mock python-pbr python-texttable
  python-websocket python-yaml run-one snapd-login-service tmux
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  apturl apturl-common python3-requests update-manager
Suggested packages:
  python3-ndg-httpsclient python3-openssl
The following NEW packages will be installed:
  python3-requests
The following packages will be upgraded:
  apturl apturl-common update-manager
3 upgraded, 1 newly installed, 0 to remove and 176 not upgraded.
21 not fully installed or removed.
Need to get 55,8 kB/619 kB of archives.
After this operation, 254 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://at.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python3-requests all 2.9.1-3ubuntu0.1 [55,8 kB]
Fetched 55,8 kB in 0s (537 kB/s)           
dpkg: warning: files list file for package 'python3.5' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-ipy' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-gdbm-dbg:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-speechd' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-xlsxwriter' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-pycurl' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-pil:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-cups' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3.6' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-apt' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-dbus' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-pyatspi' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-plainbox' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-lxml' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-brlapi' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-mako' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-commandnotfound' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-padme' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-xdg' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-six' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3.5-venv' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-pyparsing' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3.6-minimal' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-dev' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-guacamole' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-newt' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-aptdaemon.gtk3widgets' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-wheel' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-gi-cairo' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-pkg-resources' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-gi' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-bs4' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-apport' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-markupsafe' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3.5-minimal' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-defer' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-problem-report' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-reportlab' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-pyasn1' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-uno' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-pexpect' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-chardet' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-aptdaemon' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-systemd' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-jinja2' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-html5lib' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-minimal' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-pip' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-cupshelpers' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-gdbm:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-software-properties' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-reportlab-accel:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-cairo' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-setuptools' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-aptdaemon.pkcompat' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3.5-dev' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-ptyprocess' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-checkbox-support' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-debian' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-renderpm:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-xkit' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-venv' missing; assuming package has no files currently installed
(Reading database ... 429592 files and directories currently installed.)
Preparing to unpack .../update-manager_1%3a16.04.15_all.deb ...
/var/lib/dpkg/info/update-manager.prerm: 6: /var/lib/dpkg/info/update-manager.prerm: py3clean: not found
dpkg: warning: subprocess old pre-removal script returned error exit status 127
dpkg: trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/prerm: 6: /var/lib/dpkg/tmp.ci/prerm: py3clean: not found
dpkg: error processing archive /var/cache/apt/archives/update-manager_1%3a16.04.15_all.deb (--unpack):
 subprocess new pre-removal script returned error exit status 127
/var/lib/dpkg/info/update-manager.postinst: 6: /var/lib/dpkg/info/update-manager.postinst: py3compile: not found
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 127
Preparing to unpack .../apturl_0.5.2ubuntu11.2_amd64.deb ...
/var/lib/dpkg/info/apturl.prerm: 6: /var/lib/dpkg/info/apturl.prerm: py3clean: not found
dpkg: warning: subprocess old pre-removal script returned error exit status 127
dpkg: trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/prerm: 6: /var/lib/dpkg/tmp.ci/prerm: py3clean: not found
dpkg: error processing archive /var/cache/apt/archives/apturl_0.5.2ubuntu11.2_amd64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 127
/var/lib/dpkg/info/apturl.postinst: 6: /var/lib/dpkg/info/apturl.postinst: py3compile: not found
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 127
Preparing to unpack .../apturl-common_0.5.2ubuntu11.2_amd64.deb ...
/var/lib/dpkg/info/apturl-common.prerm: 6: /var/lib/dpkg/info/apturl-common.prerm: py3clean: not found
dpkg: warning: subprocess old pre-removal script returned error exit status 127
dpkg: trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/prerm: 6: /var/lib/dpkg/tmp.ci/prerm: py3clean: not found
dpkg: error processing archive /var/cache/apt/archives/apturl-common_0.5.2ubuntu11.2_amd64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 127
/var/lib/dpkg/info/apturl-common.postinst: 27: /var/lib/dpkg/info/apturl-common.postinst: py3compile: not found
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 127
Selecting previously unselected package python3-requests.
Preparing to unpack .../python3-requests_2.9.1-3ubuntu0.1_all.deb ...
Unpacking python3-requests (2.9.1-3ubuntu0.1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/update-manager_1%3a16.04.15_all.deb
 /var/cache/apt/archives/apturl_0.5.2ubuntu11.2_amd64.deb
 /var/cache/apt/archives/apturl-common_0.5.2ubuntu11.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

sudo apt-get install python3

Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3 is already the newest version (3.5.1-3).
python3 set to manually installed.
The following packages were automatically installed and are no longer required:
  appstream compiz-core compiz-plugins-default gnome-software-common guile-2.0-libs libapparmor-perl libappstream3 libcompizconfig0 libdecoration0 libjemalloc1
  libmetacity-private3a libopencolorio1v5 libopenimageio1.6 libsnapd-glib1 libspnav0 libyaml-cpp0.3v5 metacity-common python-backports.ssl-match-hostname
  python-cached-property python-docker python-dockerpty python-docopt python-funcsigs python-functools32 python-jsonschema python-mock python-pbr python-texttable
  python-websocket python-yaml run-one snapd-login-service tmux
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  apturl apturl-common update-manager
The following packages will be upgraded:
  apturl apturl-common update-manager
3 upgraded, 0 newly installed, 0 to remove and 176 not upgraded.
22 not fully installed or removed.
Need to get 0 B/563 kB of archives.
After this operation, 1.024 B of additional disk space will be used.
Do you want to continue? [Y/n] 
dpkg: warning: files list file for package 'python3.5' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-ipy' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-gdbm-dbg:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-speechd' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-xlsxwriter' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-pycurl' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-pil:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-cups' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3.6' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-apt' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-dbus' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-pyatspi' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-plainbox' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-lxml' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-brlapi' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-mako' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-commandnotfound' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-padme' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-xdg' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-six' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3.5-venv' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-pyparsing' missing; assuming package has no files currently installed
...
dpkg: warning: files list file for package 'python3-setuptools' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-aptdaemon.pkcompat' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3.5-dev' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-ptyprocess' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-checkbox-support' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-debian' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-renderpm:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-xkit' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3-venv' missing; assuming package has no files currently installed
(Reading database ... 429618 files and directories currently installed.)
Preparing to unpack .../update-manager_1%3a16.04.15_all.deb ...
/var/lib/dpkg/info/update-manager.prerm: 6: /var/lib/dpkg/info/update-manager.prerm: py3clean: not found
dpkg: warning: subprocess old pre-removal script returned error exit status 127
dpkg: trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/prerm: 6: /var/lib/dpkg/tmp.ci/prerm: py3clean: not found
dpkg: error processing archive /var/cache/apt/archives/update-manager_1%3a16.04.15_all.deb (--unpack):
 subprocess new pre-removal script returned error exit status 127
/var/lib/dpkg/info/update-manager.postinst: 6: /var/lib/dpkg/info/update-manager.postinst: py3compile: not found
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 127
Preparing to unpack .../apturl_0.5.2ubuntu11.2_amd64.deb ...
/var/lib/dpkg/info/apturl.prerm: 6: /var/lib/dpkg/info/apturl.prerm: py3clean: not found
dpkg: warning: subprocess old pre-removal script returned error exit status 127
dpkg: trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/prerm: 6: /var/lib/dpkg/tmp.ci/prerm: py3clean: not found
dpkg: error processing archive /var/cache/apt/archives/apturl_0.5.2ubuntu11.2_amd64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 127
/var/lib/dpkg/info/apturl.postinst: 6: /var/lib/dpkg/info/apturl.postinst: py3compile: not found
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 127
Preparing to unpack .../apturl-common_0.5.2ubuntu11.2_amd64.deb ...
/var/lib/dpkg/info/apturl-common.prerm: 6: /var/lib/dpkg/info/apturl-common.prerm: py3clean: not found
dpkg: warning: subprocess old pre-removal script returned error exit status 127
dpkg: trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/prerm: 6: /var/lib/dpkg/tmp.ci/prerm: py3clean: not found
dpkg: error processing archive /var/cache/apt/archives/apturl-common_0.5.2ubuntu11.2_amd64.deb (--unpack):
 subprocess new pre-removal script returned error exit status 127
/var/lib/dpkg/info/apturl-common.postinst: 27: /var/lib/dpkg/info/apturl-common.postinst: py3compile: not found
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 /var/cache/apt/archives/update-manager_1%3a16.04.15_all.deb
 /var/cache/apt/archives/apturl_0.5.2ubuntu11.2_amd64.deb
 /var/cache/apt/archives/apturl-common_0.5.2ubuntu11.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

apt-getとdpkgがそれに依存している場合、システム上の壊れたpython3インストールを修正するにはどうすればよいですか?

前もって感謝します!

user535733

まさにこの理由から、インストールされているPython3のバージョンを変更しないことをお勧めします。

Pythonの複数のバージョンまたは新しいバージョンを使用したい場合は、システムへの損傷を防ぐために、分離方法(VM、コンテナー、python(3)-virtualenv、chrootsなど)をお勧めします。Ubuntuリポジトリにない他のメソッドがあります-それらのサポートは提供していません。

システムを修正することは可能ですが、価値がない場合があります。多くの依存関係が欠落している可能性があります。dpkgはPython3に依存していませんが、aptは間違いなく依存しています。基本的な戦略は、dpkgを使用して、aptに必要な不足しているパッケージを再インストールすることです。

http://packages.ubuntu.comアクセスしpython-minimalandpython3-minimalおよびaptパッケージをダウンロードしてからdpkgを使用してそれらのパッケージをインストールします。dpkgは、正しい順序でダウンロードしてインストールする必要がある他の欠落している依存関係について文句を言うため、数回の反復が必要になる場合があります。

一般に、Pythonが壊れているか欠落しているほとんどのユーザーは、データをバックアップしてクリーンインストールを実行する方が速くて簡単だと感じています。

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Ubuntu16.04完全に壊れたpython3 + dpkg + apt-get!

分類Dev

壊れたdpkg、sudo、tty、apt

分類Dev

壊れたdpkg、sudo、tty、apt

分類Dev

dpkg / apt-get conflicting information

分類Dev

apt-getを使用してUbuntu16にR3.5.1をインストールするにはどうすればよいですか?

分類Dev

apt-getとdpkgの違い

分類Dev

Where are installed the files of a .deb package with dpkg / apt-get?

分類Dev

Debian dpkg broken after apt-get upgrade

分類Dev

Emulate apt-get from third-party sources with dpkg

分類Dev

'sudo apt-get install' is showing "Not using locking for read only file /var/lib/dpkg/lock" warning on Ubuntu Touch

分類Dev

after upgrade from Ubuntu 18.04 to 20.04: 'apt-get update' fails with dpkg "pre-removal script subprocess was killed by signal (Terminated)"

分類Dev

apt-get install -fは、ubuntu17.10でdpkg-iによってインストールされたパッケージを削除します

分類Dev

WSL、Ubuntu 16,04:壊れた状態のapt-cache

分類Dev

`apt-get`と` dpkg`を使わずにMySQLとMariaDBをUbuntu16.04から強制的に削除するにはどうすればよいですか?

分類Dev

apt-getでdpkgがインストールされたパッケージを管理できますか?

分類Dev

apt-getでdpkgがインストールされたパッケージを管理できますか?

分類Dev

Debianアーキテクチャをクロスグレードしようとしたときにapt-getとdpkgを壊しました

分類Dev

How do you recover from a failed upgrade ('apt-get -f install' and 'dpkg --configure -a' fail)?

分類Dev

How do you recover from a failed upgrade ('apt-get -f install' and 'dpkg --configure -a' fail)?

分類Dev

dpkgとaptitude / apt-getの違いは何ですか?

分類Dev

dpkg--listがapt-getと同期していません

分類Dev

apt-getとdpkgの違いは何ですか?

分類Dev

「サービスを含むループ」:apt-get install breaks dpkg

分類Dev

dpkg および sudo apt-get update の問題

分類Dev

apt-get install ubuntu-desktop; それで?

分類Dev

dpkgの依存関係が満たされていないため、apt-getがシステム全体を削除したい

分類Dev

依存関係が満たされていない場合、「apt-get install -f」を実行した後、「dpkg -i」を実行する必要がありますか?

分類Dev

`pacman -Qs`に相当するapt / dpkgとは何ですか?

分類Dev

sudo apt upgrade により dpkg エラーが発生する

Related 関連記事

  1. 1

    Ubuntu16.04完全に壊れたpython3 + dpkg + apt-get!

  2. 2

    壊れたdpkg、sudo、tty、apt

  3. 3

    壊れたdpkg、sudo、tty、apt

  4. 4

    dpkg / apt-get conflicting information

  5. 5

    apt-getを使用してUbuntu16にR3.5.1をインストールするにはどうすればよいですか?

  6. 6

    apt-getとdpkgの違い

  7. 7

    Where are installed the files of a .deb package with dpkg / apt-get?

  8. 8

    Debian dpkg broken after apt-get upgrade

  9. 9

    Emulate apt-get from third-party sources with dpkg

  10. 10

    'sudo apt-get install' is showing "Not using locking for read only file /var/lib/dpkg/lock" warning on Ubuntu Touch

  11. 11

    after upgrade from Ubuntu 18.04 to 20.04: 'apt-get update' fails with dpkg "pre-removal script subprocess was killed by signal (Terminated)"

  12. 12

    apt-get install -fは、ubuntu17.10でdpkg-iによってインストールされたパッケージを削除します

  13. 13

    WSL、Ubuntu 16,04:壊れた状態のapt-cache

  14. 14

    `apt-get`と` dpkg`を使わずにMySQLとMariaDBをUbuntu16.04から強制的に削除するにはどうすればよいですか?

  15. 15

    apt-getでdpkgがインストールされたパッケージを管理できますか?

  16. 16

    apt-getでdpkgがインストールされたパッケージを管理できますか?

  17. 17

    Debianアーキテクチャをクロスグレードしようとしたときにapt-getとdpkgを壊しました

  18. 18

    How do you recover from a failed upgrade ('apt-get -f install' and 'dpkg --configure -a' fail)?

  19. 19

    How do you recover from a failed upgrade ('apt-get -f install' and 'dpkg --configure -a' fail)?

  20. 20

    dpkgとaptitude / apt-getの違いは何ですか?

  21. 21

    dpkg--listがapt-getと同期していません

  22. 22

    apt-getとdpkgの違いは何ですか?

  23. 23

    「サービスを含むループ」:apt-get install breaks dpkg

  24. 24

    dpkg および sudo apt-get update の問題

  25. 25

    apt-get install ubuntu-desktop; それで?

  26. 26

    dpkgの依存関係が満たされていないため、apt-getがシステム全体を削除したい

  27. 27

    依存関係が満たされていない場合、「apt-get install -f」を実行した後、「dpkg -i」を実行する必要がありますか?

  28. 28

    `pacman -Qs`に相当するapt / dpkgとは何ですか?

  29. 29

    sudo apt upgrade により dpkg エラーが発生する

ホットタグ

アーカイブ