USB-RSAQ3

Raspberry piでOSバージョン確認

$uname -a

Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux

とでる。

 

Raspberry piにUSB-RSAQ3を接続する。

$dmesg | grep tty

[   81.871441] usb 1-1.4: pl2303 converter now attached to ttyUSB0

と表示される。

ttyUSB0として認識はしてくれた様子。

 

$screen /dev/ttyUSB0

bash: screen: コマンドが見つかりません

コマンドが見つかりません。

と言われる。

 

ではインストールするか、と思い

$ sudo apt instatt screen

と入れると、

$ sudo apt install screen

パッケージリストを読み込んでいます... エラー!

E: Problem parsing dependency 2 of lynx-common:all=2.9.0dev.6-3~deb11u1

E: lynx-common を処理中にエラーが発生しました (NewVersion2)

E: Problem with MergeList /var/lib/apt/lists/deb.debian.org_debian_dists_bullseye_main_binary-arm64_Packages

E: パッケージリストまたはステータスファイルを解釈またはオープンすることができません。

となる。

 

apt updateでも試してみるか、と

$ sudo apt update

を入れると、

$ sudo apt update

ヒット:1 http://deb.debian.org/debian bullseye InRelease

取得:2 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]           

ヒット:3 http://security.debian.org/debian-security bullseye-security InRelease    

ヒット:4 http://archive.raspberrypi.org/debian bullseye InRelease                                             

44.1 kB を 4秒 で取得しました (10.1 kB/s)

パッケージリストを読み込んでいます... エラー!

E: Problem parsing dependency 2 of lynx-common:all=2.9.0dev.6-3~deb11u1

E: lynx-common を処理中にエラーが発生しました (NewVersion2)

E: Problem with MergeList /var/lib/apt/lists/deb.debian.org_debian_dists_bullseye_main_binary-arm64_Packages

E: パッケージリストまたはステータスファイルを解釈またはオープンすることができません。

 

とりあえずわからんので、

/var/lib/apt/lists/deb.debian.org_debian_dists_bullseye_main_binary-arm64_Packages

を削除してしまう事にした。

$ sudo rm /var/lib/apt/lists/deb.debian.org_debian_dists_bullseye_main_binary-arm64_Packages

 

その後に sudo apt update は素直に通った。

では screen を入れようか、という事だが先ず探してみる。

 

$ sudo apt search screen
ーーー

screen/oldstable 4.8.0-6 arm64

  VT100/ANSI 端末エミュレーションを備えた端末マルチプレクサ

と出た。

インストールする

$ sudo apt install screen

 

インストールできたので早速使う。

$ screen /dev/ttyUSB0

ちなみにSerial Consoleで繋いでいるのはCisco 1812-Jである。

R-001>

となったので、無事ログインできた。

 

が、Screenの終わり方がわからない。

 

わかった。

「Ctrl + a」押した後、一度離し、「¥(バックスラッシュのキー)」を押すと

Really quit and kill all your windows [y/n]

と聞かれるので「y」を押すと、少しして画面が閉じ、linuxのコンソールに戻る。