erro de atualização: nome do pacote ilegal 'doc-base / noawait' [duplicado]

0

Não consigo baixar nada nem atualizar meu sistema. Recebo a seguinte mensagem de erro:

dpkg: file triggers record mentions illegal package name 'doc-base/noawait' (for interest in file '/usr/share/doc-base'): character '/' not allowed (only letters, digits and characters '-+._')
E: Sub-process /usr/bin/dpkg returned an error code (2)

Eu também não posso usar o criador de USB para fazer uma nova instalação, pois meu sistema não carrega os gerenciadores de inicialização.

Por favor ajude

    
por Val 31.05.2016 / 05:18

1 resposta

-1

Experimente este código:

#!/bin/bash

OLDCONF=$(dpkg -l|grep "^rc"|awk '{print $2}')
CURKERNEL=$(uname -r|sed 's/-*[a-z]//g'|sed 's/-386//g')
LINUXPKG="linux-(image|headers|ubuntu-modules|restricted-modules)"
METALINUXPKG="linux-(image|headers|restricted-modules)-(generic|i386|server|common|rt|xen)"
OLDKERNELS=$(dpkg -l|awk '{print $2}'|grep -E $LINUXPKG |grep -vE $METALINUXPKG|grep -v $CURKERNEL)
YELLOW="3[1;33m"
RED="3[0;31m"
ENDCOLOR="3[0m"

if [ $USER != root ]; then
  echo -e $RED"Error: must be root"
  echo -e $YELLOW"Exiting..."$ENDCOLOR
  exit 0
fi
clear
echo -e $YELLOW"Cleaning apt cache..."$ENDCOLOR
aptitude clean

echo -e $YELLOW"Removing old config files..."$ENDCOLOR
sudo aptitude purge $OLDCONF
clear
echo -e $YELLOW"Removing old kernels..."$ENDCOLOR
sudo aptitude purge $OLDKERNELS

echo -e $YELLOW"Emptying the trash..."$ENDCOLOR
rm -rf /home/*/.local/share/Trash/*/** &> /dev/null
rm -rf /root/.local/share/Trash/*/** &> /dev/null  

Salvar como troubleshooter.sh .
Então, use estes comandos:

chmod 700 troubleshooter.sh  
sudo ./troubleshooter.sh  

Deixe-me saber o que acontece depois disso.

    
por Ajay Kulkarni 31.05.2016 / 09:19