적절한 킬 터미널

적절한 킬 터미널

저는 Raspbian 11 불스아이가 탑재된 Raspberry Pi 4(4GB RAM) 호스트 머신을 가지고 있습니다. 오늘은 apt를 사용하여 시스템을 업데이트하기 위해 Ansible 플레이북을 실행하려고 시도했지만 이상해 보이는 분할 오류 오류로 인해 실패했습니다. SSH를 통해 연결하고 apt update수동으로 실행을 시도했지만 연결이 끊어졌습니다. -vvv를 사용한 SSH의 출력은 다음과 같습니다.

pi@rpi4:~ $ apt update
debug3: receive packet: type 96
debug2: channel 0: rcvd eof
debug2: channel 0: output open -> drain
debug2: channel 0: obuf empty
debug2: chan_shutdown_write: channel 0: (i0 o1 sock -1 wfd 5 efd 6 [write])
debug2: channel 0: output drain -> closed
debug3: receive packet: type 98
debug1: client_input_channel_req: channel 0 rtype exit-signal reply 0
debug3: receive packet: type 98
debug1: client_input_channel_req: channel 0 rtype [email protected] reply 0
debug2: channel 0: rcvd eow
debug2: chan_shutdown_read: channel 0: (i0 o3 sock -1 wfd 4 efd 6 [write])
debug2: channel 0: input open -> closed
debug3: receive packet: type 97
debug2: channel 0: rcvd close
debug3: channel 0: will not send data after close
debug2: channel 0: almost dead
debug2: channel 0: gc: notify user
debug2: channel 0: gc: user detached
debug2: channel 0: send close
debug3: send packet: type 97
debug2: channel 0: is dead
debug2: channel 0: garbage collecting
debug1: channel 0: free: client-session, nchannels 1
debug3: channel 0: status: The following connections are open:
  #0 client-session (t4 r0 i3/0 o3/0 e[write]/0 fd -1/-1/6 sock -1 cc -1 io 0x00/0x00)

debug3: send packet: type 1
Connection to <ip> closed.
Transferred: sent <B>, received <B> bytes, in <s> seconds
Bytes per second: sent <Bps>, received <Bps>
debug1: Exit status -1

오류가 발생하지 않았기 때문에 검색 apt update kills ssh및 유사한 쿼리를 시도했지만 문제가 해결되지 않았습니다.

실행하면 apt-get update연결도 종료됩니다. (또한 tmux에서 실행하려고 시도했지만 tmux가 종료되었습니다.)

sudo dpkg --configure -a그들은 sudo dpkg-reconfigure apt문제를 해결하지도 않았고 연락을 종료하지도 않았습니다.

편집: apt upgrade그것도 죽여라

무엇이 잘못될 수 있나요? 예상치 못한 정전으로 인해 이런 일이 발생할 수 있습니까?

편집 2: 추가 조사: 실행도 ls -l python2동일하게 작동합니다. python2터미널을 죽여라. 나는 이것이 apt와 실제로 관련이 없다고 생각합니다. 계속 노력하고 업데이트하겠습니다.

답변1

더 자세히 조사한 결과, bash에 오류가 발생하면 터미널이 종료되는 것으로 보입니다. 존재하지 않는 zsh에서 실행을 시도했는데 ls /usr/bin/python2결과는 다음과 같습니다.

ls: cannot access '/usr/bin/python2'zsh: segmentation fault  ls /usr/bin/python2

이 결과를 보고 읽어본 결과이 문제, 갑작스러운 정전으로 인해 SD 카드가 손상되었을 수 있는 것 같습니다. 이제 새 SD 카드에 다시 플래시해야 할 때인 것 같습니다.

관련 정보