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 29/04/2016, à 18:05

Torviwombat

[Résolu] E: Le type « sudo » est inconnu

Bonjour a tous ,

Petit nouveau sur ubuntu je doit dire que je suis conquis et j'adore le faite qu'il faut majoritairement se servir du terminal pour les installations , sauf que je suis un peu largué et en voulant installer VirtualBox sur ce dernier j'ai du faire quelques conneries parce que maintenant dès que je rentre un code a base de "sudo" Le terminale me dit :

E: Le type « sudo » est inconnu sur la ligne 7 dans la liste des sources /etc/apt/sources.list

J'ai essayé de régler le problème sur des forum déjà existant mais je pense avoir tout essayer et il y a certaine chose que je ne comprend pas

Si quelqu'un pourrait éclairer ma lanterne sa serait fou !

Merci d'avance

( Je suis sous la version 16.04 )

Dernière modification par Ayral (Le 29/04/2016, à 23:12)

Hors ligne

#2 Le 29/04/2016, à 18:10

pingouinux

Re : [Résolu] E: Le type « sudo » est inconnu

E: Le type « sudo » est inconnu sur la ligne 7 dans la liste des sources /etc/apt/sources.list

As-tu regardé la ligne en question ?

Hors ligne

#3 Le 29/04/2016, à 18:28

Torviwombat

Re : [Résolu] E: Le type « sudo » est inconnu

Salut , merci de ta réponse .

non je n'y avait pas pensé mais quand j'y vais et que je clique sur sources.list sa m'affiche sa :

http://imageshack.com/a/img921/1662/uh8vS0.png et rien ne se passe.

a coté de sources.list j'ai aussi "sources.list.save" et sources.list.save.1" , c'est normale ?

Hors ligne

#4 Le 29/04/2016, à 18:37

pingouinux

Re : [Résolu] E: Le type « sudo » est inconnu

Donne le retour, entre balises-code, de cette commande, lancée depuis un terminal :

cat /etc/apt/sources.list

Hors ligne

#5 Le 29/04/2016, à 18:41

xinu

Re : [Résolu] E: Le type « sudo » est inconnu

Tu dois utiliser un éditeur de texte...

Dans "nautilus" faire clic droit puis selectionner "ouvrir avec" et choisir gedit.

ou

Dans un terminal que tu lances via CTRL+ALT+T entrer la commande suivante :

gedit /etc/apt/sources.list

Asus PM8H61-MX USB3   Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz DDR3 8Go
Ubuntu 16.04 LTS - ESM 64 bits. Bureau Unity.     Ubuntu 20.04 LTS 64 bits . Gnome 3.36.8

Hors ligne

#6 Le 29/04/2016, à 18:54

Torviwombat

Re : [Résolu] E: Le type « sudo » est inconnu

pour le retour de cat /etc/apt/sources.list j'ai :

# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted

# See [url]http://help.ubuntu.com/community/UpgradeNotes[/url] for how to upgrade to
# newer versions of the distribution.
deb [url]http://fr.archive.ubuntu.com/ubuntu/[/url] xenial main restricted
# deb-src [url]http://fr.archive.ubuntu.com/ubuntu/[/url] xenial main restricted
sudo gedit /etc/apt/sources.list
## Major bug fix updates produced after the final release of the
## distribution.
deb [url]http://fr.archive.ubuntu.com/ubuntu/[/url] xenial-updates main restricted
# deb-src [url]http://fr.archive.ubuntu.com/ubuntu/[/url] xenial-updates main restricted

## 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
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb [url]http://fr.archive.ubuntu.com/ubuntu/[/url] xenial universe
# deb-src [url]http://fr.archive.ubuntu.com/ubuntu/[/url] xenial universe
deb [url]http://fr.archive.ubuntu.com/ubuntu/[/url] xenial-updates universe
# deb-src [url]http://fr.archive.ubuntu.com/ubuntu/[/url] 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 [url]http://fr.archive.ubuntu.com/ubuntu/[/url] xenial multiverse
# deb-src [url]http://fr.archive.ubuntu.com/ubuntu/[/url] xenial multiverse
deb [url]http://fr.archive.ubuntu.com/ubuntu/[/url] xenial-updates multiverse
# deb-src [url]http://fr.archive.ubuntu.com/ubuntu/[/url] 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 [url]http://fr.archive.ubuntu.com/ubuntu/[/url] xenial-backports main restricted universe multiverse
# deb-src [url]http://fr.archive.ubuntu.com/ubuntu/[/url] 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 [url]http://archive.canonical.com/ubuntu[/url] xenial partner
# deb-src [url]http://archive.canonical.com/ubuntu[/url] xenial partner

deb [url]http://security.ubuntu.com/ubuntu[/url] xenial-security main restricted
# deb-src [url]http://security.ubuntu.com/ubuntu[/url] xenial-security main restricted
deb [url]http://security.ubuntu.com/ubuntu[/url] xenial-security universe
# deb-src [url]http://security.ubuntu.com/ubuntu[/url] xenial-security universe
deb [url]http://security.ubuntu.com/ubuntu[/url] xenial-security multiverse
# deb-src [url]http://security.ubuntu.com/ubuntu[/url] xenial-security multiverse

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

Dernière modification par cqfd93 (Le 29/04/2016, à 19:24)

Hors ligne

#7 Le 29/04/2016, à 18:57

pingouinux

Re : [Résolu] E: Le type « sudo » est inconnu

Merci d'utiliser les balises-code pour le retour des commandes.

Il faut supprimer la 7ème ligne du fichier, qui est

sudo gedit /etc/apt/sources.list

Dernière modification par pingouinux (Le 29/04/2016, à 18:58)

Hors ligne

#8 Le 29/04/2016, à 18:57

Torviwombat

Re : [Résolu] E: Le type « sudo » est inconnu

et pour gedit /etc/apt/sources.list j'ai :

# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted

# See [url]http://help.ubuntu.com/community/UpgradeNotes[/url] for how to upgrade to
# newer versions of the distribution.
deb [url]http://fr.archive.ubuntu.com/ubuntu/[/url] xenial main restricted
# deb-src [url]http://fr.archive.ubuntu.com/ubuntu/[/url] xenial main restricted
sudo gedit /etc/apt/sources.list
## Major bug fix updates produced after the final release of the
## distribution.
deb [url]http://fr.archive.ubuntu.com/ubuntu/[/url] xenial-updates main restricted
# deb-src [url]http://fr.archive.ubuntu.com/ubuntu/[/url] xenial-updates main restricted

## 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
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb [url]http://fr.archive.ubuntu.com/ubuntu/[/url] xenial universe
# deb-src [url]http://fr.archive.ubuntu.com/ubuntu/[/url] xenial universe
deb [url]http://fr.archive.ubuntu.com/ubuntu/[/url] xenial-updates universe
# deb-src [url]http://fr.archive.ubuntu.com/ubuntu/[/url] 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 [url]http://fr.archive.ubuntu.com/ubuntu/[/url] xenial multiverse
# deb-src [url]http://fr.archive.ubuntu.com/ubuntu/[/url] xenial multiverse
deb [url]http://fr.archive.ubuntu.com/ubuntu/[/url] xenial-updates multiverse
# deb-src [url]http://fr.archive.ubuntu.com/ubuntu/[/url] 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 [url]http://fr.archive.ubuntu.com/ubuntu/[/url] xenial-backports main restricted universe multiverse
# deb-src [url]http://fr.archive.ubuntu.com/ubuntu/[/url] 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 [url]http://archive.canonical.com/ubuntu[/url] xenial partner
# deb-src [url]http://archive.canonical.com/ubuntu[/url] xenial partner

deb [url]http://security.ubuntu.com/ubuntu[/url] xenial-security main restricted
# deb-src [url]http://security.ubuntu.com/ubuntu[/url] xenial-security main restricted
deb [url]http://security.ubuntu.com/ubuntu[/url] xenial-security universe
# deb-src [url]http://security.ubuntu.com/ubuntu[/url] xenial-security universe
deb [url]http://security.ubuntu.com/ubuntu[/url] xenial-security multiverse
# deb-src [url]http://security.ubuntu.com/ubuntu[/url] xenial-security multiver

Mais je doit faire quoi avec sa ? rajouter/modifier une ligne ? merci de vos réponses en tout cas


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

Dernière modification par cqfd93 (Le 29/04/2016, à 19:24)

Hors ligne

#9 Le 29/04/2016, à 19:14

mikedafunk

Re : [Résolu] E: Le type « sudo » est inconnu

Bonjour,

La ligne 7 "sudo gedit /etc/apt/sources.list" doit être supprimée, elle n'a rien à faire là. (enregistre quand c'est fait)
Pingoulinux t'a déjà répondu à ce propos, tu as fait une mauvaise manip, ce n'est pas grave.

Pour info, cat ou gedit ou nano sont tous des éditeurs de textes, c'est pourquoi  #8 et #6 sont identiques (et donc comportent la ligne défectueuse)

Enfin quand tu fais un grand copier coller, sélectionne le grand paragraphe et clique sur l'icône texte formaté, ton message nous sera beaucoup plus lisible, merci wink

Je te montre comment doit être ton fichier corrigé :

# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted

# See http://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, 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
## 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 multiver

Lubuntu 22.04 sur Lenovo AX81 et pas mal d'Amiga
Mon blog : http://mikedafunk.over-blog.org

Hors ligne

#10 Le 29/04/2016, à 23:04

Torviwombat

Re : [Résolu] E: Le type « sudo » est inconnu

Bonsoir , c'est bon problème résolu un grand merci a vous tous de vos réponse super rapide , une communauté au top !

Pour les balises je ne savait pas je n'y manquerait pas la prochaine fois.

Bonne soirée !

Hors ligne

#11 Le 29/04/2016, à 23:15

Ayral

Re : [Résolu] E: Le type « sudo » est inconnu

Modération: quand une discussion est résolue, il est recommandé de rajouter l'expression [Résolu] au début du sujet. Cela se fait en modifiant le premier message, par l'auteur de la discussion. Je l'ai fait pour faire gagner du temps. Merci et bienvenue à Torviwombat sur le forum Ubuntu-fr.


Pour mettre les retours de commande entre deux balises code, les explications sont là : https://forum.ubuntu-fr.org/viewtopic.php?id=1614731
Blog d'un retraité
Site de graphisme du fiston Loïc
Ubuntu 22.04 LTS sur un Thinkpad W540

En ligne