Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 03/10/2015, à 18:45

johnchatignac

erreur dans une ligne de commande qui me bloque synaptic

Bonjour,

J'ai mal entré une ligne de commande pour installer spotify. Depuis Synaptic est bloqué (il se ferme quand je ferme la fenetre de message d'erreur ci dessous. Le paquet spotify n'est pas installé et je ne peux rien effacer et je ne trouve pas comment annuler cette mauvaise ligne de commande.
Je debute sur Lubuntu 15.04 (et linux)

message d'erreur:
E: Le type « sudo » est inconnu sur la ligne 2 dans la liste des sources /etc/apt/sources.list.d/spotify.list
E: Impossible de lire la liste des sources.
Vous pouvez essayer de corriger le problème en ouvrant la fenêtre des dépôts
E: _cache->open() failed, please report.

Merci par avance

Hors ligne

#2 Le 03/10/2015, à 18:47

michel_04

Re : erreur dans une ligne de commande qui me bloque synaptic

Bonjour,

Donne le retour de :

cat /etc/apt/sources.list.d/spotify.list

A+

Hors ligne

#3 Le 03/10/2015, à 18:50

geo82

Re : erreur dans une ligne de commande qui me bloque synaptic

bonjour
tu peux essayer de taper "history" dans le terminal pour voir quel commande tu a tapé et la mettre ici pour comprendre ce qui à créer l'erreur.

Et un retour de la commande "cat /etc/apt/sources.list"
ça pourra aider certains.

Dernière modification par geo82 (Le 03/10/2015, à 18:53)


Ubuntu 17.04 / Zalman ZM-T2 Plus / GIGABYTE GA-H110M-DS2 DDR3 /Intel Core i5-6500 3.2GHz/ Radeon HD 7770, 8 GB Ram
geekOfLinux

Hors ligne

#4 Le 03/10/2015, à 19:53

johnchatignac

Re : erreur dans une ligne de commande qui me bloque synaptic

Bonjour

le retour de la commande est:
portanolinux@portanolinux-VPCEJ2C5E:~$ cat /etc/apt/sources.list.d/spotify.list

sudo apt-get update



et quand je fais sudo apt-get update:
portanolinux@portanolinux-VPCEJ2C5E:~$ sudo apt-get update
[sudo] password for portanolinux:
E: Le type « sudo » est inconnu sur la ligne 2 dans la liste des sources /etc/apt/sources.list.d/spotify.list
E: La liste des sources ne peut être lue.

Hors ligne

#5 Le 03/10/2015, à 20:04

johnchatignac

Re : erreur dans une ligne de commande qui me bloque synaptic

Bonjour Geo82 et Michel 04

Mon historique (je pense que cela date de la 5 ou 7, le reste vous montre combien je suis novice):

portanolinux@portanolinux-VPCEJ2C5E:~$ history
    1  sudo apt-get install-f
    2  gksudo synaptic
    3  wget -q -0 - [url]https://dl-ssl.google.com/linux/linux_signing_key.pub[/url]
    4  sudo apt-get install google-chrome-stable
    5  sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys D2C19886
    6  echo deb [url]http://repository.spotify.com[/url] stable non free
    7  sudoo tee/etc/apt/sources.list.d/spotify.list
    8  sudo
    9  sudo tee /etc/apt/sources.list.d/spotify.list
   10  sudo add-apt-repository "deb [url]http://repository.spotify.com[/url] stable non free"
   11  sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 94558F59
   12  sudo apt-get update
   13  sudo apt-get install spotify-client spotify-client-qt
   14  sudo apt get update
   15  sudo apt-get update
   16  anastasia67
   17  sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys /source.list.d/spotify.list
   18  sudo apt-get update
   19  spotify
   20  sudo apt get libgcrypt.so.11
   21  sudo apt-get remove spotify
   22  sudo apt-get -f purge spotify
   23  sudo mv /var/lib/dpkg/info/SPOTIFY.*/tmp/
   24  sudo dpkg --remove --force-remove-reinstreq spotify
   25  sudo gedit /etc/apt/sources.list
   26  sudo ls /etc/apt/
   27  sudo dpkg --configure >a
   28  sudo dpkg --help
   29  sudo --forget-old-unavail
   30  sudo apt-get-update
   31  sudo apt-get update
   32  sudo dpkg --configure -a
   33  reset
   34  history
   35  17
   36  history 17
   37  history
   38  sudo apt-get clean && apt-get autoremove
   39  yes
   40  sudo apt-get update
   41  sudo apt-get clean && apt-get autoremove
   42  anastasia67
   43  y
   44  sudo
   45  cat /etc/apt/sources.list.d/spotify.list
   46  sudo apt-get update
   47  history
portanolinux@portanolinux-VPCEJ2C5E:~$ 

Merci dejà de votre premiere réponse je me sens (un peu) moins idiot.


Modération : merci à l'avenir d'utiliser les balises code (explications ici).

Dernière modification par cqfd93 (Le 03/10/2015, à 20:22)

Hors ligne

#6 Le 03/10/2015, à 20:04

michel_04

Re : erreur dans une ligne de commande qui me bloque synaptic

Re,

Donc, dans le fichier spotify.list, à la place de l'url du dépôt, tu as une ligne contenant "sudo apt-get update".
Copie/colle chaque commande dans le terminal :

cd /etc/apt/sources.list.d/
sudo rm spotify.list
sudo sh -c 'echo "deb http://repository.spotify.com stable non-free" >> /etc/apt/sources.list.d/spotify.list'
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D2C19886
sudo apt-get update

A+

Dernière modification par michel_04 (Le 03/10/2015, à 20:05)

Hors ligne

#7 Le 03/10/2015, à 20:24

johnchatignac

Re : erreur dans une ligne de commande qui me bloque synaptic

Merci Michel

Cela donne:

portanolinux@portanolinux-VPCEJ2C5E:~$ cd /etc/apt/sources.list.d/
portanolinux@portanolinux-VPCEJ2C5E:/etc/apt/sources.list.d$ sudo rm spotify.list
[sudo] password for portanolinux:
portanolinux@portanolinux-VPCEJ2C5E:/etc/apt/sources.list.d$
portanolinux@portanolinux-VPCEJ2C5E:/etc/apt/sources.list.d$ sudo sh -c 'echo "deb http://repository.spotify.com stable non-free" >> /etc/apt/sources.list.d/spotify.list'
portanolinux@portanolinux-VPCEJ2C5E:/etc/apt/sources.list.d$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D2C19886
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.l7K18BRriF --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys D2C19886
gpg: demande de la clef D2C19886 sur le serveur hkp keyserver.ubuntu.com
gpg: clef D2C19886 : « Spotify Public Repository Signing Key <operations@spotify.com> » n'est pas modifiée
gpg: Quantité totale traitée : 1
gpg:              non modifiées : 1
portanolinux@portanolinux-VPCEJ2C5E:/etc/apt/sources.list.d$ sudo apt-get updateIgn http://dl.google.com stable InRelease
Réception de : 1 http://dl.google.com stable Release.gpg [198 B]               
Réception de : 2 http://deb.opera.com stable InRelease [2 590 B]               
Réception de : 3 http://dl.google.com stable Release [1 347 B]                 
Réception de : 4 http://dl.google.com stable/main amd64 Packages [1 217 B]     
Réception de : 5 http://deb.opera.com stable/non-free amd64 Packages [1 761 B]
Réception de : 6 http://dl.google.com stable/main i386 Packages [1 199 B]     
Réception de : 7 http://deb.opera.com stable/non-free i386 Packages [1 446 B] 
Ign http://linux.dropbox.com vivid InRelease                                   
Ign http://security.ubuntu.com vivid-security InRelease                       
Réception de : 8 http://security.ubuntu.com vivid-security Release.gpg [933 B]
Atteint http://linux.dropbox.com vivid Release.gpg                             
Réception de : 9 http://security.ubuntu.com vivid-security Release [63,5 kB]   
Ign http://fr.archive.ubuntu.com vivid InRelease                               
Ign http://fr.archive.ubuntu.com vivid-updates InRelease                       
Ign http://fr.archive.ubuntu.com vivid-backports InRelease                     
Atteint http://linux.dropbox.com vivid Release                                 
Atteint http://fr.archive.ubuntu.com vivid Release.gpg                         
Réception de : 10 http://security.ubuntu.com vivid-security/main Sources [44,8 kB]
Ign http://deb.opera.com stable/non-free Translation-fr_FR                     
Réception de : 11 http://fr.archive.ubuntu.com vivid-updates Release.gpg [933 B]
Ign http://dl.google.com stable/main Translation-fr_FR                         
Ign http://deb.opera.com stable/non-free Translation-fr                       
Ign http://dl.google.com stable/main Translation-fr                           
Atteint http://fr.archive.ubuntu.com vivid-backports Release.gpg               
Ign http://dl.google.com stable/main Translation-en                           
Ign http://deb.opera.com stable/non-free Translation-en                       
Réception de : 12 http://security.ubuntu.com vivid-security/restricted Sources [2 792 B]
Atteint http://linux.dropbox.com vivid/main amd64 Packages                     
Atteint http://fr.archive.ubuntu.com vivid Release                             
Réception de : 13 http://security.ubuntu.com vivid-security/universe Sources [18,0 kB]
Réception de : 14 http://fr.archive.ubuntu.com vivid-updates Release [63,5 kB]
Réception de : 15 http://security.ubuntu.com vivid-security/multiverse Sources [1 966 B]
Réception de : 16 http://security.ubuntu.com vivid-security/main amd64 Packages [120 kB]
Atteint http://linux.dropbox.com vivid/main i386 Packages                     
Atteint http://fr.archive.ubuntu.com vivid-backports Release                   
Atteint http://fr.archive.ubuntu.com vivid/main Sources                       
Réception de : 17 http://security.ubuntu.com vivid-security/restricted amd64 Packages [10,4 kB]
Atteint http://fr.archive.ubuntu.com vivid/restricted Sources                 
Réception de : 18 http://security.ubuntu.com vivid-security/universe amd64 Packages [57,1 kB]
Atteint http://fr.archive.ubuntu.com vivid/universe Sources                   
Atteint http://fr.archive.ubuntu.com vivid/multiverse Sources                 
Réception de : 19 http://security.ubuntu.com vivid-security/multiverse amd64 Packages [5 195 B]
Atteint http://fr.archive.ubuntu.com vivid/main amd64 Packages                 
Réception de : 20 http://security.ubuntu.com vivid-security/main i386 Packages [118 kB]
Atteint http://fr.archive.ubuntu.com vivid/restricted amd64 Packages           
Atteint http://fr.archive.ubuntu.com vivid/universe amd64 Packages             
Atteint http://fr.archive.ubuntu.com vivid/multiverse amd64 Packages           
Réception de : 21 http://security.ubuntu.com vivid-security/restricted i386 Packages [10,2 kB]
Atteint http://fr.archive.ubuntu.com vivid/main i386 Packages                 
Réception de : 22 http://security.ubuntu.com vivid-security/universe i386 Packages [57,1 kB]
Atteint http://fr.archive.ubuntu.com vivid/restricted i386 Packages           
Réception de : 23 http://security.ubuntu.com vivid-security/multiverse i386 Packages [5 383 B]
Atteint http://fr.archive.ubuntu.com vivid/universe i386 Packages             
Atteint http://fr.archive.ubuntu.com vivid/multiverse i386 Packages           
Réception de : 24 http://security.ubuntu.com vivid-security/main Translation-en [63,4 kB]
Atteint http://fr.archive.ubuntu.com vivid/main Translation-fr                 
Atteint http://fr.archive.ubuntu.com vivid/main Translation-en                 
Atteint http://fr.archive.ubuntu.com vivid/multiverse Translation-fr           
Atteint http://fr.archive.ubuntu.com vivid/multiverse Translation-en           
Atteint http://fr.archive.ubuntu.com vivid/restricted Translation-fr           
Atteint http://fr.archive.ubuntu.com vivid/restricted Translation-en           
Atteint http://fr.archive.ubuntu.com vivid/universe Translation-fr             
Réception de : 25 http://security.ubuntu.com vivid-security/multiverse Translation-en [2 246 B]
Atteint http://fr.archive.ubuntu.com vivid/universe Translation-en             
Réception de : 26 http://security.ubuntu.com vivid-security/restricted Translation-en [2 607 B]
Réception de : 27 http://fr.archive.ubuntu.com vivid-updates/main Sources [90,7 kB]
Réception de : 28 http://security.ubuntu.com vivid-security/universe Translation-en [35,3 kB]
Réception de : 29 http://fr.archive.ubuntu.com vivid-updates/restricted Sources [3 687 B]
Réception de : 30 http://fr.archive.ubuntu.com vivid-updates/universe Sources [40,4 kB]
Réception de : 31 http://repository.spotify.com stable InRelease [3 300 B]     
Réception de : 32 http://fr.archive.ubuntu.com vivid-updates/multiverse Sources [1 966 B]
Réception de : 33 http://fr.archive.ubuntu.com vivid-updates/main amd64 Packages [208 kB]
Réception de : 34 http://fr.archive.ubuntu.com vivid-updates/restricted amd64 Packages [13,1 kB]
Réception de : 35 http://fr.archive.ubuntu.com vivid-updates/universe amd64 Packages [111 kB]
Réception de : 36 http://fr.archive.ubuntu.com vivid-updates/multiverse amd64 Packages [5 195 B]
Réception de : 37 http://fr.archive.ubuntu.com vivid-updates/main i386 Packages [206 kB]
Réception de : 38 http://fr.archive.ubuntu.com vivid-updates/restricted i386 Packages [12,8 kB]
Réception de : 39 http://fr.archive.ubuntu.com vivid-updates/universe i386 Packages [112 kB]
Ign http://linux.dropbox.com vivid/main Translation-fr_FR                     
Réception de : 40 http://fr.archive.ubuntu.com vivid-updates/multiverse i386 Packages [5 383 B]
Réception de : 41 http://fr.archive.ubuntu.com vivid-updates/main Translation-en [102 kB]
Ign http://linux.dropbox.com vivid/main Translation-fr                         
Réception de : 42 http://fr.archive.ubuntu.com vivid-updates/multiverse Translation-en [2 246 B]
Ign http://linux.dropbox.com vivid/main Translation-en                         
Réception de : 43 http://fr.archive.ubuntu.com vivid-updates/restricted Translation-en [2 969 B]
Réception de : 44 http://fr.archive.ubuntu.com vivid-updates/universe Translation-en [65,3 kB]
Atteint http://fr.archive.ubuntu.com vivid-backports/main Sources             
Atteint http://fr.archive.ubuntu.com vivid-backports/restricted Sources       
Atteint http://fr.archive.ubuntu.com vivid-backports/universe Sources         
Atteint http://fr.archive.ubuntu.com vivid-backports/multiverse Sources       
Atteint http://fr.archive.ubuntu.com vivid-backports/main amd64 Packages       
Atteint http://fr.archive.ubuntu.com vivid-backports/restricted amd64 Packages
Atteint http://fr.archive.ubuntu.com vivid-backports/universe amd64 Packages   
Atteint http://fr.archive.ubuntu.com vivid-backports/multiverse amd64 Packages
Atteint http://fr.archive.ubuntu.com vivid-backports/main i386 Packages       
Atteint http://fr.archive.ubuntu.com vivid-backports/restricted i386 Packages 
Atteint http://fr.archive.ubuntu.com vivid-backports/universe i386 Packages   
Atteint http://fr.archive.ubuntu.com vivid-backports/multiverse i386 Packages 
Atteint http://fr.archive.ubuntu.com vivid-backports/main Translation-en       
Atteint http://fr.archive.ubuntu.com vivid-backports/multiverse Translation-en
Atteint http://fr.archive.ubuntu.com vivid-backports/restricted Translation-en
Atteint http://fr.archive.ubuntu.com vivid-backports/universe Translation-en   
1 679 ko réceptionnés en 12s (137 ko/s)                                       
W: Impossible de récupérer http://repository.spotify.com/dists/stable/InRelease  Impossible de trouver l'entrée « non/binary-amd64/Packages » attendue dans le fichier « Release » : ligne non valable dans sources.list ou fichier corrompu

E: Le téléchargement de quelques fichiers d'index a échoué, ils ont été ignorés, ou les anciens ont été utilisés à la place.
portanolinux@portanolinux-VPCEJ2C5E:/etc/apt/sources.list.d$ 

=> Je peux ouvrir Synaptic sans le message d'erreur.
Le gestionnaire de mise a jour recherchait à nouveau spotify et plantait, j'ai enlevé spotify des mises a jour a prévoir et le gestionnaire à l'air de bien marcher maintenant.

Pour spotify, je peux utiliser spotify web, car j'avais vu après qu'il était difficile a installer sur cette version de lubuntu. La version installée n'est pas indispensable.

Merci de ton aide

Bonne soirée


Modération : merci à l'avenir d'utiliser les balises code (explications ici).

Dernière modification par cqfd93 (Le 03/10/2015, à 21:53)

Hors ligne

#8 Le 03/10/2015, à 20:33

michel_04

Re : erreur dans une ligne de commande qui me bloque synaptic

Re,

gksudo leafpad /etc/apt/sources.list.d/spotify.list

Supprime cette ligne :

deb-src http://repository.spotify.com stable non-free

Enregistre et quitte.

sudo apt-get update

A+

Hors ligne

#9 Le 03/10/2015, à 20:36

nam1962

Re : erreur dans une ligne de commande qui me bloque synaptic

johnchatignac donne tes retours entre balises code sinon c'est fort pénible :

1430125750.png


[ Modéré ]

Hors ligne

#10 Le 03/10/2015, à 21:49

johnchatignac

Re : erreur dans une ligne de commande qui me bloque synaptic

Merci Michel et Nam

Cela me donne:

portanolinux@portanolinux-VPCEJ2C5E:~$ gksudo leafpad /etc/apt/sources.list.d/spotify.list
/usr/share/themes/Lubuntu-default/gtk-2.0/apps/thunar.rc:55: error: invalid string constant "thunar-statusbar", expected valid string constant

J'ai une fenetre spotify list qui s'ouvre avec: "# deb http://repository.spotify.com stable non-free"

Hors ligne