이 명령을 사용하여 서버를 업데이트하면 apt-get update && apt-get upgrade
오류가 반환됩니다.
주문하다
echo "the-password" | sshfs [email protected]:/var/www /remote_mount -o password_stdin
운영 체제
Debian 3.2.60-1+deb7u3 x86_64 (wheezy)
실수
fuse: device not found, try 'modprobe fuse' first
모듈 프로브 퓨즈
root@dyntest-amd-3700-2gb ~ # modprobe fuse
modprobe: ERROR: could not insert 'fuse': Unknown symbol in module, or unknown parameter (see dmesg)
root@dyntest-amd-3700-2gb ~ # dmesg | grep fuse
[ 20.126156] fuse: Unknown symbol nosteal_pipe_buf_ops (err 0)
[1607702.343086] fuse: Unknown symbol nosteal_pipe_buf_ops (err 0)
[1607745.824310] fuse: Unknown symbol nosteal_pipe_buf_ops (err 0)
[1607908.188559] fuse: Unknown symbol nosteal_pipe_buf_ops (err 0)
[1608724.690945] fuse: Unknown symbol nosteal_pipe_buf_ops (err 0)
[1608741.684927] fuse: Unknown symbol nosteal_pipe_buf_ops (err 0)
[2565283.964259] fuse: Unknown symbol nosteal_pipe_buf_ops (err 0)
커널 버전
root@dyntest-amd-3700-2gb ~ # cat /proc/version
Linux version 3.2.0-4-amd64 ([email protected]) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.54-2
root@dyntest-amd-3700-2gb ~ # locate -i -r /fuse
/bin/fuser
/bin/fusermount
/etc/fuse.conf
/lib/modules/3.2.0-4-amd64/kernel/fs/fuse
/lib/modules/3.2.0-4-amd64/kernel/fs/fuse/cuse.ko
/lib/modules/3.2.0-4-amd64/kernel/fs/fuse/fuse.ko
/lib/modules-load.d/fuse.conf
/usr/include/boost/fusion/functional/adapter/fused.hpp
/usr/include/boost/fusion/functional/adapter/fused_function_object.hpp
/usr/include/boost/fusion/functional/adapter/fused_procedure.hpp
/usr/include/boost/fusion/include/fused.hpp
/usr/include/boost/fusion/include/fused_function_object.hpp
/usr/include/boost/fusion/include/fused_procedure.hpp
/usr/include/linux/fuse.h
/usr/share/bash-completion/completions/fusermount
/usr/share/doc/fuse
/usr/share/doc/fuse/changelog.Debian.gz
/usr/share/doc/fuse/changelog.gz
/usr/share/doc/fuse/copyright
/usr/share/initramfs-tools/hooks/fuse
/usr/share/lintian/overrides/fuse
/usr/share/man/man1/fuser.1.gz
/usr/share/man/man1/fusermount.1.gz
/var/cache/apt/archives/fuse_2.9.0-2+deb7u1_amd64.deb
/var/cache/apt/archives/fuse_2.9.3-14_amd64.deb
/var/cache/apt/archives/fuse_2.9.3-15_amd64.deb
/var/cache/apt/archives/fuse_2.9.3-9_amd64.deb
/var/lib/dpkg/info/fuse.conffiles
/var/lib/dpkg/info/fuse.list
/var/lib/dpkg/info/fuse.md5sums
/var/lib/dpkg/info/fuse.postinst
/var/lib/dpkg/info/fuse.postrm
/var/lib/dpkg/info/fuse.preinst
고쳐 쓰다
root@dyntest-amd-3700-2gb ~ # apt-get install --reinstall linux-image-generic linux-image
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package linux-image is a virtual package provided by:
linux-image-3.2.0-4-rt-amd64 3.2.60-1+deb7u3
linux-image-3.2.0-4-amd64 3.2.60-1+deb7u3
You should explicitly select one to install.
E: Unable to locate package linux-image-generic
E: Package 'linux-image' has no installation candidate
답변1
커널도 업그레이드하셨을 거라 확신합니다. 그렇죠? apt-get
로그를 확인하세요 . 다음의 경우:
reboot
그렇게 간단합니다. 커널을 업그레이드했으며 이제 커널에 비해 너무 새로운 커널 모듈을 로드하려고 합니다.
귀하가 요청한 것은 아니지만 echo <password> | ..
귀하의 비밀번호는 일반적으로 에 저장됩니다 . 이는 공개적으로 액세스할 수 있는 서버에서 로그인을 사용하는 ~/.bash_history
것으로 보이기 때문에 특히 위험합니다 .root