Entrada incorreta 63 no arquivo de lista após a atualização para o Gnome 16.04.01 [duplicado]

6

Eu tive alguns problemas com a versão 14.04 do Ubuntu Gnome. Não consegui executar atualizações durante semanas e, sempre que tentei, fui recebido com a resposta "Verifique sua conexão com a Internet". Eu encontrei muitas soluções para o problema aqui, mas elas não funcionaram para mim. Então, eu atualizei para 16.04 esta manhã usando um USB inicializável e escolhi a opção para atualizar em vez de limpar meu HDD. Na versão mais recente, eu realmente tentei atualizá-lo, mas eu recebi esse erro agora ...

sudo apt-get update
E: Malformed entry 63 in list file /etc/apt/sources.list (Component)
E: The list of sources could not be read.

Quando eu executei o seguinte comando, recebi esta saída

find /etc/apt/  -name '*.list' -exec bash -c 'echo -e "\n\n"; cat -n ""' _ '{}' \;

/etc/apt/sources.list.d/staticfloat-ubuntu-julia-deps-xenial.list

     1  deb http://ppa.launchpad.net/staticfloat/julia-deps/ubuntu xenial main
     2  # deb-src http://ppa.launchpad.net/staticfloat/julia-deps/ubuntu xenial main

/etc/apt/sources.list

     1  # deb cdrom:[Ubuntu-GNOME 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160720)]/ xenial main multiverse restricted universe
     2  # deb cdrom:[Ubuntu-GNOME 14.04 LTS _Trusty Tahr_ - Release i386 (20140416.2)]/ trusty main multiverse restricted universe
     3  
     4  # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     5  # newer versions of the distribution.
     6  deb http://de.archive.ubuntu.com/ubuntu/ xenial main restricted
     7  deb-src http://de.archive.ubuntu.com/ubuntu/ xenial main restricted
     8  
     9  ## Major bug fix updates produced after the final release of the
    10  ## distribution.
    11  deb http://de.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
    12  deb-src http://de.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
    13  
    14  ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    15  ## team. Also, please note that software in universe WILL NOT receive any
    16  ## review or updates from the Ubuntu security team.
    17  deb http://de.archive.ubuntu.com/ubuntu/ xenial universe
    18  deb-src http://de.archive.ubuntu.com/ubuntu/ xenial universe
    19  deb http://de.archive.ubuntu.com/ubuntu/ xenial-updates universe
    20  deb-src http://de.archive.ubuntu.com/ubuntu/ xenial-updates universe
    21  
    22  ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
    23  ## team, and may not be under a free licence. Please satisfy yourself as to 
    24  ## your rights to use the software. Also, please note that software in 
    25  ## multiverse WILL NOT receive any review or updates from the Ubuntu
    26  ## security team.
    27  deb http://de.archive.ubuntu.com/ubuntu/ xenial multiverse
    28  deb-src http://de.archive.ubuntu.com/ubuntu/ xenial multiverse
    29  deb http://de.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
    30  deb-src http://de.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
    31  
    32  ## N.B. software from this repository may not have been tested as
    33  ## extensively as that contained in the main release, although it includes
    34  ## newer versions of some applications which may provide useful features.
    35  ## Also, please note that software in backports WILL NOT receive any review
    36  ## or updates from the Ubuntu security team.
    37  deb http://de.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
    38  deb-src http://de.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
    39  
    40  deb http://de.archive.ubuntu.com/ubuntu/ xenial-security main restricted
    41  deb-src http://de.archive.ubuntu.com/ubuntu/ xenial-security main restricted
    42  deb http://de.archive.ubuntu.com/ubuntu/ xenial-security universe
    43  deb-src http://de.archive.ubuntu.com/ubuntu/ xenial-security universe
    44  deb http://de.archive.ubuntu.com/ubuntu/ xenial-security multiverse
    45  deb-src http://de.archive.ubuntu.com/ubuntu/ xenial-security multiverse
    46  
    47  ## Uncomment the following two lines to add software from Canonical's
    48  ## 'partner' repository.
    49  ## This software is not part of Ubuntu, but is offered by Canonical and the
    50  ## respective vendors as a service to Ubuntu users.
    51  deb http://archive.canonical.com/ubuntu xenial partner
    52  deb-src http://archive.canonical.com/ubuntu xenial partner
    53  
    54  ## This software is not part of Ubuntu, but is offered by third-party
    55  ## developers who want to ship their latest software.
    56  deb http://extras.ubuntu.com/ubuntu xenial main
    57  deb http://archive.canonical.com/ xenial partner
    58  # deb-src http://archive.canonical.com/ trusty partner
    59  deb-src http://extras.ubuntu.com/ubuntu xenial main
    60  deb http://ppa.launchpad.net/whatsapp-purple/ppa/ubuntu xenial main
    61  # deb-src http://ppa.launchpad.net/whatsapp-purple/ppa/ubuntu trusty main
    62  # deb-src http://archive.ubuntu.com/ubuntu trusty universe
    63  deb http://star-www.st-andrews.ac.uk/cran/bin/linux/ubuntu xenial
    64  # deb-src http://star-www.st-andrews.ac.uk/cran/bin/linux/ubuntu trusty/
    65  
    66  # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
    67  # newer versions of the distribution.
    68  # deb-src http://de.archive.ubuntu.com/ubuntu/ xenial main restricted
    69  
    70  ## Major bug fix updates produced after the final release of the
    71  ## distribution.
    72  # deb-src http://de.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
    73  
    74  ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    75  ## team, and may not be under a free licence. Please satisfy yourself as to
    76  ## your rights to use the software. Also, please note that software in
    77  ## universe WILL NOT receive any review or updates from the Ubuntu security
    78  ## team.
    79  # deb-src http://de.archive.ubuntu.com/ubuntu/ xenial universe
    80  # deb-src http://de.archive.ubuntu.com/ubuntu/ xenial-updates universe
    81  
    82  ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
    83  ## team, and may not be under a free licence. Please satisfy yourself as to 
    84  ## your rights to use the software. Also, please note that software in 
    85  ## multiverse WILL NOT receive any review or updates from the Ubuntu
    86  ## security team.
    87  # deb-src http://de.archive.ubuntu.com/ubuntu/ xenial multiverse
    88  # deb-src http://de.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
    89  
    90  ## N.B. software from this repository may not have been tested as
    91  ## extensively as that contained in the main release, although it includes
    92  ## newer versions of some applications which may provide useful features.
    93  ## Also, please note that software in backports WILL NOT receive any review
    94  ## or updates from the Ubuntu security team.
    95  # deb-src http://de.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
    96  
    97  ## Uncomment the following two lines to add software from Canonical's
    98  ## 'partner' repository.
    99  ## This software is not part of Ubuntu, but is offered by Canonical and the
   100  ## respective vendors as a service to Ubuntu users.
   101  # deb http://archive.canonical.com/ubuntu xenial partner
   102  # deb-src http://archive.canonical.com/ubuntu xenial partner
   103  
   104  deb http://security.ubuntu.com/ubuntu xenial-security main restricted
   105  # deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
   106  deb http://security.ubuntu.com/ubuntu xenial-security universe
   107  # deb-src http://security.ubuntu.com/ubuntu xenial-security universe
   108  deb http://security.ubuntu.com/ubuntu xenial-security multiverse
   109  # deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse

Você poderia sugerir o que pode ser feito para corrigir esses problemas?

    
por crypto 06.02.2017 / 09:56

2 respostas

13

As linhas de interesse são:

63  deb http://star-www.st-andrews.ac.uk/cran/bin/linux/ubuntu xenial
64  # deb-src http://star-www.st-andrews.ac.uk/cran/bin/linux/ubuntu trusty/

Como o erro diz, você está perdendo um componente (o main , universe , etc. de outros repos). No entanto, os espelhos do CRAN não têm componentes, e em vez disso usam um repositório trivial , então você precisa ter um / à direita lá como a linha trusty :

deb http://star-www.st-andrews.ac.uk/cran/bin/linux/ubuntu xenial/
    
por muru 06.02.2017 / 10:14
6

Corrija as entradas incorretas no arquivo /etc/apt/sources.list .

Abra um terminal e execute o seguinte comando:

sudo nano /etc/apt/sources.list  

Remova as linhas 63 e 64 no arquivo /etc/apt/sources.list .

Pressione Ctrl + X para fechar o arquivo, confirme a alteração com Y .

Agora adicione novamente o repositório às fontes de software:

sudo nano /etc/apt/sources.list.d/star-st-andrews.list  

Adicione as seguintes linhas (entradas) ao arquivo vazio:

deb http://www-star.st-and.ac.uk/cran/bin/linux/ubuntu/ xenial/
# deb-src http://www-star.st-and.ac.uk/cran/bin/linux/ubuntu/ xenial/

Pressione Ctrl + X para fechar o arquivo, confirme a alteração com Y .

Referência : Repositórios do CRAN

Se você ainda estiver recebendo uma mensagem de erro ao atualizar as fontes de software, verifique o arquivo /etc/apt/sources.list e a pasta /etc/apt/sources.list.d quanto a outras entradas incorretas. Geralmente, recomenda-se remover fontes externas antes de atualizar um sistema. Após o upgrade, adicione novamente as fontes, o que leva à entrada correta no local correto.

Nota : Nas edições mais recentes do Ubuntu, o ficheiro /etc/apt/sources.list é utilizado para fontes do Ubuntu.
Todas as fontes de software externas residem como um arquivo .list na pasta /etc/apt/sources.list.d .

    
por cl-netbox 06.02.2017 / 10:02