web-dev-qa-db-ja.com

dpkg --set-selections <packages-backup.listの後の問題

1つのubuntuサーバーにインストールしたすべてのパッケージのバックアップを作成し、新しいubuntuサーバーに復元しようとしました。

この質問の最初の答え で述べたのと同じことをしました

問題は、最後の2つのコマンドSudo dpkg --set-selections < ~/Package.listSudo apt-get dselect-upgrade -yを実行した後、新しいパッケージをインストールできません。

pip3をインストールしようとすると、このエラーが発生します

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:
 python3-pip : Depends: python3-setuptools but it is not going to be installed
               Recommends: build-essential but it is not going to be installed
               Recommends: python3-dev (>= 3.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

私が見つけた解決策の1つは、Sudo dpkg --configure -a

しかし、コマンドを実行すると、これは私が持っているトレース

[my:/home/my]$ Sudo dpkg --configure -a
Setting up ppp (2.4.5-5.1ubuntu2.2) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
insserv: Service gdm has to be enabled to start service pppd-dns
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package ppp (--configure):
 subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of pppconfig:
 pppconfig depends on ppp (>= 2.3.7); however:
  Package ppp is not configured yet.

dpkg: error processing package pppconfig (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of pppoeconf:
 pppoeconf depends on ppp (>= 2.4.2+20040428-2) | pppoe (>= 3.0); however:
  Package ppp is not configured yet.
  Package pppoe is not installed.
 pppoeconf depends on ppp (>= 2.4.1.uus2-4); however:
  Package ppp is not configured yet.

dpkg: error processing package pppoeconf (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 ppp
 pppconfig
 pppoeconf

次に何をすべきかわかりません。

2
Andy K

最初にppを削除してみます。それが問題を引き起こしているようです。だから、試してみてください:

Sudo apt-get remove ppp

次に、pip3およびその他必要なものをすべてインストールしてみてください。

1
terdon