Gestionnaire de paquets

ehtnamal Messages postés 28 Statut Membre -  
 jns55 -
Bonjour,
J'utilise Xubuntu 16.04.2.
Voici le message d'erreur que je reçois:
E:Malformed entry 52 in list file /etc/apt/sources.list (Component), E:The list of sources could not be read.
Comment corriger ?
Merci !

1 réponse

  1. jns55
     
    Bonjour,
    Ton fichier /etc/apt/sources.list est corrompu à la ligne 52.
    Dans le terminal :
    sudo gedit /etc/apt/sources.list

    Affiche les numéros de lignes.
    Dans la ligne 52 il doit y avoir quelque chose d'anormal qu'il faut corriger. Si tu ne vois pas quoi donne cette ligne ici.
    0
    1. jns55
       
      Pardon, j'avais oublié que c'était Xubuntu.
      Tape
      sudo mousepad /etc/apt/sources.list
      0
      1. ehtnamal Messages postés 28 Statut Membre > jns55
         
        Bonsoir ,
        Voici la réponse que j'ai obtenue:

        # deb cdrom:[Xubuntu 16.04.2 LTS _Xenial Xerus_ - Release amd64 (20170215)]/ xenial main multiverse restricted universe

        # See https://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
        # newer versions of the distribution.
        deb http://fr.archive.ubuntu.com/ubuntu/ xenial main restricted
        # deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial main restricted

        ## Major bug fix updates produced after the final release of the
        ## distribution.
        deb http://fr.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
        # deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-updates main restricted

        ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
        ## team. Also, please note that software in universe WILL NOT receive any
        ## review or updates from the Ubuntu security team.
        deb http://fr.archive.ubuntu.com/ubuntu/ xenial universe
        # deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial universe
        deb http://fr.archive.ubuntu.com/ubuntu/ xenial-updates universe
        # deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-updates universe

        ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
        ## team, and may not be under a free licence. Please satisfy yourself as to
        ## your rights to use the software. Also, please note that software in
        ## multiverse WILL NOT receive any review or updates from the Ubuntu
        ## security team.
        deb http://fr.archive.ubuntu.com/ubuntu/ xenial multiverse
        # deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial multiverse
        deb http://fr.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
        # deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-updates multiverse

        ## N.B. software from this repository may not have been tested as
        ## extensively as that contained in the main release, although it includes
        ## newer versions of some applications which may provide useful features.
        ## Also, please note that software in backports WILL NOT receive any review
        ## or updates from the Ubuntu security team.
        deb http://fr.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
        # deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse

        ## Uncomment the following two lines to add software from Canonical's
        ## 'partner' repository.
        ## This software is not part of Ubuntu, but is offered by Canonical and the
        ## respective vendors as a service to Ubuntu users.
        deb http://archive.canonical.com/ubuntu/ xenial partner
        # deb-src http://archive.canonical.com/ubuntu/ xenial partner

        deb http://security.ubuntu.com/ubuntu/ xenial-security main restricted
        # deb-src http://security.ubuntu.com/ubuntu/ xenial-security main restricted
        deb http://security.ubuntu.com/ubuntu/ xenial-security universe
        # deb-src http://security.ubuntu.com/ubuntu/ xenial-security universe
        deb http://security.ubuntu.com/ubuntu/ xenial-security multiverse
        # deb-src http://security.ubuntu.com/ubuntu/ xenial-security multiverse
        deb http://archive.canonical.com/ partner
        # deb-src http://archive.canonical.com/ partner
        deb http://archive.canonical.com/ xenial partner
        # deb-src http://archive.canonical.com/ xenial partner
        # deb-src http://archive.canonical.com/ xenial partner
        0
    2. jns55
       
      Commente cette ligne (ajoute un # au début de la ligne) et sauvegarde ton fichier (en root)
      position : 5 lignes avant la fin du fichier.
      deb http://archive.canonical.com/ partner 


      Puis
      sudo apt-get update
      dans le terminal
      0