issue após um dpkg --set-selections packages-backup.list

2

Eu criei um backup de todos os pacotes que eu instalei em um servidor Ubuntu e tente restaurá-lo para um novo servidor Ubuntu.

Eu fiz o mesmo que mencionado na primeira resposta do esta questão

O problema é depois de executar os dois últimos comandos sudo dpkg --set-selections < ~/Package.list & amp; sudo apt-get dselect-upgrade -y , não consigo instalar novos pacotes.

Ao tentar instalar o pip3 , eu tenho esse erro

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.

Uma das soluções que encontrei foi fazer um sudo dpkg --configure -a

Mas ao executar o comando, este é o traço que tenho

[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

Não sei o que fazer a seguir.

    
por Andy K 05.09.2016 / 17:42

1 resposta

1

Primeiramente, eu tentaria remover pp . Isso é o que parece estar causando seus problemas. Então, tente:

sudo apt-get remove ppp

Em seguida, tente instalar o pip3 e o que você precisar normalmente.

    
por terdon 06.09.2016 / 11:34