Probleme : bash: commande introuvable

Bonjour à tous,

Je me suis fait une installation de raspian pour me créer un petit serveur avec Yunohost.
Tout marcher bien … jusqu’au « Drame ».
J’ai fait une mise a jour de Jessie vers Stretch, ça à marcher pendant un temps mais maintenant je ne peut plus taper des commande comme « mv » « ifconfig » « ls »… sans avoir le message :
-bash: ls : commande introuvable,

Les seule commande qui fonctionne sont apt-get update et apt-get upgrade…

Avez vous une idée ou je réinstalle le tout?

Merci d’avance

Hello :vulcan_salute:

Que donnent les commandes suivantes:

ls /bin

ls /usr/bin

env

Bonjour,

cela m’arrive de temps en temps quand l’un de me mes Rpi est complètement à la ramasse, il n’a plus assez de ressources pour charger complètement son environnement bash.
Sans me poser plus de questions, je le redémarre physiquement et ça repart…
Et dans ce cas, n’ayant malheureusement pas assez de ressources, je n’arrive pas à diagnostiquer la source du problème.

A+

Bonjour,

Ci-joint le résultat des commande :

ls /bin
bash fgconsole mt-gnu systemctl
bunzip2 fgrep mv systemd
busybox findmnt nano systemd-ask-password
bzcat fuser nc systemd-escape
bzcmp getfacl nc.openbsd systemd-hwdb
bzdiff grep nc.traditional systemd-inhibit
bzegrep gunzip netcat systemd-machine-id-setup
bzexe gzexe netstat systemd-notify
bzfgrep gzip networkctl systemd-sysusers
bzgrep hciconfig nisdomainname systemd-tmpfiles
bzip2 hostname open systemd-tty-ask-password-agent
bzip2recover ip openvt tailf
bzless journalctl pidof tar
bzmore kbd_mode ping tempfile
cat keyctl ping4 touch
chacl kill ping6 true
chgrp kmod plymouth udevadm
chmod less ps umount
chown lessecho pwd uname
chvt lessfile rbash uncompress
con2fbmap lesskey readlink unicode_start
cp lesspipe red vdir
cpio ln rm wdctl
dash loadkeys rmdir which
date login rnano ypdomainname
dd loginctl run-parts zcat
df ls sed zcmp
dir lsblk setfacl zdiff
dmesg lsmod setfont zegrep
dnsdomainname mkdir setupcon zfgrep
domainname mknod sh zforce
dumpkeys mktemp sh.distrib zgrep
echo modeline2fb sleep zless
ed more ss zmore
egrep mount stty znew
false mountpoint su
fbset mt sync

et pour ls /usr/bin
apt-extracttemplates linux-version
apt-ftparchive listres
apt-get lnstat
aptitude loadkeys
aptitude-create-state-bundle loadunimap
aptitude-curses locale
aptitude-run-state-bundle localectl
apt-key localedef
apt-listchanges lockfile
apt-mark logger
apt-sortpkgs logname
ar logresolve
arch look
arecord lorder
arecordmidi lsattr
arm-linux-gnueabihf-addr2line lsb_release
arm-linux-gnueabihf-ar lscpu
arm-linux-gnueabihf-as lsinitramfs
arm-linux-gnueabihf-c++filt lsipc
arm-linux-gnueabihf-cpp lslocks
arm-linux-gnueabihf-cpp-4.9 lslogins
arm-linux-gnueabihf-cpp-6 lsns
arm-linux-gnueabihf-dwp lsof
arm-linux-gnueabihf-elfedit lspgpot
arm-linux-gnueabihf-g++ lsusb
arm-linux-gnueabihf-g+±6 lua
arm-linux-gnueabihf-gcc lua5.1
arm-linux-gnueabihf-gcc-4.9 luac
arm-linux-gnueabihf-gcc-6 luac5.1
arm-linux-gnueabihf-gcc-ar luajit
arm-linux-gnueabihf-gcc-ar-4.9 luajit-2.0.4
arm-linux-gnueabihf-gcc-ar-6 luit
arm-linux-gnueabihf-gcc-nm lwp-download
arm-linux-gnueabihf-gcc-nm-4.9 lwp-dump
arm-linux-gnueabihf-gcc-nm-6 lwp-mirror
arm-linux-gnueabihf-gcc-ranlib lwp-request
arm-linux-gnueabihf-gcc-ranlib-4.9 lzcat
arm-linux-gnueabihf-gcc-ranlib-6 lzcmp
arm-linux-gnueabihf-gcov lzdiff
arm-linux-gnueabihf-gcov-4.9 lzegrep
arm-linux-gnueabihf-gcov-6 lzfgrep
arm-linux-gnueabihf-gcov-dump lzgrep
arm-linux-gnueabihf-gcov-dump-6 lzless
arm-linux-gnueabihf-gcov-tool lzma
arm-linux-gnueabihf-gcov-tool-6 lzmainfo
arm-linux-gnueabihf-gprof lzmore
arm-linux-gnueabihf-ld m4
arm-linux-gnueabihf-ld.bfd mail
arm-linux-gnueabihf-ld.gold Mail
arm-linux-gnueabihf-nm maildirmake.dovecot
arm-linux-gnueabihf-objcopy mailq
arm-linux-gnueabihf-objdump mailstat
arm-linux-gnueabihf-pkg-config mailx
arm-linux-gnueabihf-python2.7-config make
arm-linux-gnueabihf-python-config makeconv
arm-linux-gnueabihf-ranlib make-first-existing-target
arm-linux-gnueabihf-readelf man
arm-linux-gnueabihf-run mandb
arm-linux-gnueabihf-size manpath
arm-linux-gnueabihf-strings mapscrn
arm-linux-gnueabihf-strip mawk
arm-unknown-linux-gnueabihf-pkg-config mcookie
as md5sum
aseqdump md5sum.textutils
aseqnet media-ctl
authbind mesg
autoconf metaflac
autoheader migrate-pubring-from-classic-gpg
autom4te mkfifo
automake mk_modmap
automake-1.15 mkpasswd
autopoint mpris-proxy
autoreconf msgattrib
autoscan msgcat
autoupdate msgcmp
awk msgcomm
b2sum msgconv
base32 msgen
base64 msgexec
basename msgfilter
bashbug msgfmt
bccmd msggrep
bluemoon msginit
bluetoothctl msgmerge
bookman msgunfmt
bootctl msguniq
broadwayd mtrace
bsd-from namei
bsd-mailx nawk
bsd-write ncal
btattach ncdu
btmgmt neqn
btmon newaliases
btuart newgrp
busctl ngettext
c++ nice
c2ph nl
c89 nm
c89-gcc nohup
c99 nproc
c99-gcc nroff
cal nsenter
calc_tickadj nstat
calendar ntpdc
captoinfo ntpq
catchsegv ntpsweep
catman ntptrace
cc numfmt
cec-compliance obexctl
cec-ctl objcopy
cec-follower objdump
c++filt od
chacl ogg123
chage oggdec
chardet oggenc
chardetect ogginfo
chattr openssl
chcon orbd
check-enhancements pack200
checkgid pager
chfn paperconf
chrt partx
chsh passwd
cifscreds paste
cifsdd patch
ciptool pathchk
ckbcomp pdb
cksum pdb2.7
clear pdb3
clear_console pdb3.5
cmp pdf2dsc
codepage pdf2ps
col pear
colcrt peardev
colrm pecl
column peekfd
comm perf
compose perl
convert-dtsv0 perl5.24.1
corelist perl5.24-arm-linux-gnueabihf
cpan perlbug
cpan5.24-arm-linux-gnueabihf perldoc
cpp perlivp
cpp-4.9 perlthanks
cpp-6 pf2afm
crc32 pfbtopfa
c_rehash pg
crontab pgrep
csplit phar
ctstat phar5
curl phar7.0
cut phar.phar
cx18-ctl phar.phar7.0
dbus-cleanup-sockets php
dbus-daemon php5
dbus-launch php7.0
dbus-monitor pic
dbus-run-session pico
dbus-send piconv
dbus-update-activation-environment pinentry
dbus-uuidgen pinentry-gtk-2
dc pinentry-x11
deallocvt pinky
deb3 pkg-config
debconf pkgdata
debconf-apt-progress pkill
debconf-communicate pl2pm
debconf-copydb pldd
debconf-escape pmap
debconf-getlang po2debconf
debconf-get-selections pod2html
debconf-gettextize pod2man
debconf-loadtemplate pod2text
debconf-mergetemplate pod2usage
debconf-set-selections podchecker
debconf-show podebconf-display-po
debconf-updatepo podebconf-report-po
debget podselect
debman policytool
debmany popbugs
deb-systemd-helper POST
deb-systemd-invoke pphs
decode_tm6000 pr
degrep preconv
delpart prename
derb print
dfgrep printafm
dglob printenv
dgrep printerbanner
dh printf
dh_auto_build prlimit
dh_auto_clean procmail
dh_auto_configure prove
dh_auto_install prtstat
dh_autoreconf ps2ascii
dh_autoreconf_clean ps2epsi
dh_auto_test ps2pdf
dh_autotools-dev_restoreconfig ps2pdf12
dh_autotools-dev_updateconfig ps2pdf13
dh_bash-completion ps2pdf14
dh_bugfiles ps2pdfwr
dh_builddeb ps2ps
dh_clean ps2ps2
dh_compress ps2txt
dh_dwz psfaddtable
dh_fixperms psfgettable
dh_gconf psfstriptable
dh_gencontrol psfxtable
dh_icons pstree
dh_install pstree.x11
dh_installcatalogs pstruct
dh_installchangelogs ptar
dh_installcron ptardiff
dh_installdeb ptargrep
dh_installdebconf ptx
dh_installdirs pwdx
dh_installdocs py3clean
dh_installemacsen py3compile
dh_installexamples py3versions
dh_installgsettings pybabel
dh_installifupdown pybabel-python2
dh_installinfo pybuild
dh_installinit pyclean
dh_installlogcheck pycompile
dh_installlogrotate pydoc
dh_installman pydoc2.7
dh_installmanpages pydoc3
dh_installmenu pydoc3.5
dh_installmime pygettext
dh_installmodules pygettext2.7
dh_installpam pygettext3
dh_installppp pygettext3.5
dh_installsystemd python
dh_installudev python2
dh_installwm python2.7
dh_installxfonts python2.7-config
dh_installxmlcatalogs python2-config
dh_link python3
dh_lintian python3.5
dh_listpackages python3.5m
dh_makeshlibs python3m
dh_md5sums python-config
dh_missing pyversions
dh_movefiles quilt
dhomepage ranlib
dh_perl raspi-config
dh_perl_openssl raspistill
dh_prep raspivid
dh_pypy raspividyuv
dh_python2 raspiyuv
dh_python3 rcp
dh_quilt_patch rctest
dh_quilt_unpatch rds-ctl
dh_shlibdeps readelf
dh_strip realpath
dh_strip_nondeterminism recode-sr-latin
dh_systemd_enable redis-benchmark
dh_systemd_start redis-check-aof
dh_testdir redis-check-rdb
dh_testroot redis-cli
dh_ucf redis-server
dh_update_autotools_config rename
dh_usrlocal rename.ul
dialog renice
diff reset
diff3 resizepart
diffstat rev
dircolors rfcomm
dirmngr rgrep
dirmngr-client rlogin
dirname rmail
dotlockfile rmid
doveadm rmiregistry
doveconf rotatelogs
dpigs routef
dpkg routel
dpkg-architecture rpcclient
dpkg-buildflags rpcgen
dpkg-buildpackage rsh
dpkg-checkbuilddeps rtstat
dpkg-deb runcon
dpkg-distaddfile run-mailcap
dpkg-divert rview
dpkg-genbuildinfo savelog
dpkg-genchanges scp
dpkg-gencontrol screendump
dpkg-gensymbols script
dpkg-maintscript-helper scriptreplay
dpkg-mergechangelogs sdiff
dpkg-name sdptool
dpkg-parsechangelog see
dpkg-query select-editor
dpkg-scanpackages sensible-browser
dpkg-scansources sensible-editor
dpkg-shlibdeps sensible-pager
dpkg-source sensors
dpkg-split sensors-conf-convert
dpkg-statoverride seq
dpkg-trigger servertool
dpkg-vendor setarch
dsync setcifsacl
dtc setfacl
dtdiff setkeycodes
dtmerge setleds
dtoverlay setlogcons
dtoverlay-post setmetamode
dtoverlay-pre setsid
dtparam setterm
du setvtrgb
dumpkeys sftp
dvipdf sg
dwp sha1sum
dzegrep sha224sum
dzfgrep sha256sum
dzgrep sha384sum
easy_install sha512sum
edidparser shasum
edit showconsolefont
editor showkey
editres shred
elfedit shuf
enc2xs sievec
encguess sieve-dump
env sieve-filter
envsubst sieve-test
eps2eps size
eqn skill
equivs-build slabtop
equivs-control slogin
ex smbcacls
expand smbclient
expiry smbcquotas
expr smbget
faad smbspool
factor smbtar
faillog smbtree
faked-sysv snice
faked-tcp sntp
fakeroot soelim
fakeroot-sysv sort
fakeroot-tcp sort-dctrl
fallocate sotruss
fc-cache speaker-test
fc-cat splain
fcgistarter split
fc-list splitfont
fc-match sprof
fc-pattern src2man
fc-query ssh
fc-scan ssh-add
fc-validate ssh-agent
fdtdump ssh-argv0
fdtget ssh-copy-id
fdtput ssh-keygen
file ssh-keyscan
file-rename stat
find stdbuf
findsmb strace
flac strings
flock strip
fmt sum
fold symcryptrun
font2c systemd-analyze
formail systemd-cat
free systemd-cgls
from systemd-cgtop
funzip systemd-delta
g++ systemd-detect-virt
g+±6 systemd-mount
gatttool systemd-path
gawk systemd-resolve
gcc systemd-run
gcc-4.9 systemd-socket-activate
gcc-6 systemd-stdio-bridge
gcc-ar systemd-umount
gcc-ar-4.9 tabs
gcc-ar-6 tac
gcc-nm tail
gcc-nm-4.9 tasksel
gcc-nm-6 taskset
gcc-ranlib tbl
gcc-ranlib-4.9 tbl-dctrl
gcc-ranlib-6 tee
gconf-merge-tree test
gconftool tic
gconftool-2 timedatectl
gcore timeout
gcov tload
gcov-4.9 tnameserv
gcov-6 toe
gcov-dump top
gcov-dump-6 touch
gcov-tool tput
gcov-tool-6 tr
gdb traceproto
gdb-add-index traceproto.db
gdbserver traceroute
gdbtui traceroute6
genbrk traceroute6.db
gencat traceroute.db
gencfu traceroute-nanog
gencnval troff
gendict truncate
genrb tset
geqn tsort
GET tty
getcifsacl tvservice
getconf txt2man
getent tzselect
getfacl ucf
getkeycodes ucfq
getopt ucfr
gettext uconv
gettextize ul
gettext.sh unexpand
ghostscript unicode_stop
ginstall-info uniq
gnome-open unlink
gold unlzma
gpasswd unmkinitramfs
gpg unpack200
gpg1 unshare
gpg2 unxz
gpg-agent unzip
gpgconf unzipsfx
gpg-connect-agent update-alternatives
gpgparsemail update-gconf-defaults
gpgsplit update-leap
gpgv update-mime-database
gpg-zip update-mime-database.real
gpic uptime
gprof usb-devices
grep-aptavail usbhid-dump
grep-available users
grep-dctrl utmpdump
grep-debtags uwsgi
grep-status uwsgi-core
groff uwsgi_python
grog uwsgi_python27
grops v4l2-compliance
grotty v4l2-ctl
groups v4l2-sysfs-path
gs vcdbg
gsbj vcgencmd
gsdj vchiq_test
gsdj500 vcut
gsettings-data-convert vi
gsettings-schema-convert view
gslj viewres
gslp vim.tiny
gsnd virtualenv
gtbl vmstat
gtk-builder-tool vorbiscomment
gtk-launch vorbistagedit
gtk-query-settings w
gtk-update-icon-cache wall
guards watch
h2ph watchgnupg
h2xs wc
hardlink wftopfa
hciattach wget
hcitool whatis
hd whereis
head which
HEAD which-pkg-broke
helpztags which-pkg-broke-build
hex2hcd whiptail
hexdump who
host whoami
hostid whois
hostnamectl wpa_passphrase
htcacheclean w.procps
htdbm write
htdigest X11
htpasswd xargs
iconv xauth
icu-config xdg-user-dir
icuinfo xdg-user-dirs-update
id xdpyinfo
iecset xdriinfo
ifnames xev
igawk xfd
info xfontsel
infobrowser xgettext
infocmp xkill
infotocap xlsatoms
install xlsclients
install-info xlsfonts
instmodsh xmessage
ionice xml2-config
ipcmk xprop
ipcrm xslt-config
ipcs xsltproc
iptables-xml xsubpp
ir-ctl xvinfo
ischroot xwininfo
ivtv-ctl xxd
java xz
jexec xzcat
jjs xzcmp
join xzdiff
join-dctrl xzegrep
json_pp xzfgrep
kbdinfo xzgrep
kbxutil xzless
kernel-install xzmore
keytool yes
killall zdump
l2ping zipdetails
l2test zipgrep
lame zipinfo

et env
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:.tar=01;31:.tgz=01;31:.arc=01;31:.arj=01;31:.taz=01;31:.lha=01;31:.lz4=01;31:.lzh=01;31:.lzma=01;31:.tlz=01;31:.txz=01;31:.tzo=01;31:.t7z=01;31:.zip=01;31:.z=01;31:.Z=01;31:.dz=01;31:.gz=01;31:.lrz=01;31:.lz=01;31:.lzo=01;31:.xz=01;31:.zst=01;31:.tzst=01;31:.bz2=01;31:.bz=01;31:.tbz=01;31:.tbz2=01;31:.tz=01;31:.deb=01;31:.rpm=01;31:.jar=01;31:.war=01;31:.ear=01;31:.sar=01;31:.rar=01;31:.alz=01;31:.ace=01;31:.zoo=01;31:.cpio=01;31:.7z=01;31:.rz=01;31:.cab=01;31:.jpg=01;35:.jpeg=01;35:.mjpg=01;35:.mjpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35:.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:.svg=01;35:.svgz=01;35:.mng=01;35:.pcx=01;35:.mov=01;35:.mpg=01;35:.mpeg=01;35:.m2v=01;35:.mkv=01;35:.webm=01;35:.ogm=01;35:.mp4=01;35:.m4v=01;35:.mp4v=01;35:.vob=01;35:.qt=01;35:.nuv=01;35:.wmv=01;35:.asf=01;35:.rm=01;35:.rmvb=01;35:.flc=01;35:.avi=01;35:.fli=01;35:.flv=01;35:.gl=01;35:.dl=01;35:.xcf=01;35:.xwd=01;35:.yuv=01;35:.cgm=01;35:.emf=01;35:.ogv=01;35:.ogx=01;35:.aac=00;36:.au=00;36:.flac=00;36:.m4a=00;36:.mid=00;36:.midi=00;36:.mka=00;36:.mp3=00;36:.mpc=00;36:.ogg=00;36:.ra=00;36:.wav=00;36:.oga=00;36:.opus=00;36:.spx=00;36:.xspf=00;36:
SSH_CONNECTION=192.168.1.42 43558 192.168.1.19 1548
LANG=fr_FR.UTF-8
XDG_SESSION_ID=c1
USER=root
PWD=/home/pi
HOME=/root
SSH_CLIENT=192.168.1.42 43558 1548
SSH_TTY=/dev/pts/0
MAIL=/var/mail/root
SHELL=/bin/bash
TERM=xterm
SHLVL=2
LOGNAME=root
XDG_RUNTIME_DIR=/run/user/1000
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
_=/usr/bin/env