masuko-shingo / jetson-nano

自分用jetsonnanoの記録
MIT License
0 stars 0 forks source link

sudo apt installでパッケージが見つからない #1

Closed masuko-shingo closed 3 years ago

masuko-shingo commented 3 years ago

Jetsonnanoで研究室のWi-Fiに有線で接続しているとき、

$sudo apt install [パッケージ名]
$sudo apt update

などを実行しても

$sudo apt install libc6:armhf
[sudo] password for jetsonnano: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libc6:armhf

上記のように、パッケージが見つからないというエラーメッセージが出る

masuko-shingo commented 3 years ago

解決方法

サイト https://forums.developer.nvidia.com/t/jetson-nano-sudo-apt-get-update-not-working-help/112980/12 を参考にして、 GoogleのpublicDNSサーバーに DNSを設定することで解決した。 端末を開き

$nmtui

を実行 Edit a connecitonを選択 EthernetのWired connection 1 を選択 IPv4 CONFIGURATIONのを選択 DNS serverにを選択して

8.8.8.8
8.8.4.4

の2項目を追加 IPv6 CONFIGURATIONの DNS serverにを選択して

2001:4860:4860:8888
2001:4860:4860:8844

の2項目を追加

上記の操作を行った後

$sudo apt update
$sudo apt install [パッケージ名]

を再度試すと実行された。

$sudo apt install libc6:armhf
[sudo] password for jetsonnano: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  gcc-8-base:armhf libgcc1:armhf
Suggested packages:
  glibc-doc:armhf locales:armhf
The following NEW packages will be installed:
  gcc-8-base:armhf libc6:armhf libgcc1:armhf
0 upgraded, 3 newly installed, 0 to remove and 23 not upgraded.
Need to get 2,269 kB of archives.
After this operation, 9,023 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main armhf gcc-8-base armhf 8.4.0-1ubuntu1~18.04 [18.8 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main armhf libgcc1 armhf 1:8.4.0-1ubuntu1~18.04 [37.1 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main armhf libc6 armhf 2.27-3ubuntu1.4 [2,213 kB]
Fetched 2,269 kB in 2s (1,174 kB/s)    
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package gcc-8-base:armhf.
(Reading database ... 247893 files and directories currently installed.)
Preparing to unpack .../gcc-8-base_8.4.0-1ubuntu1~18.04_armhf.deb ...
Unpacking gcc-8-base:armhf (8.4.0-1ubuntu1~18.04) ...
Selecting previously unselected package libgcc1:armhf.
Preparing to unpack .../libgcc1_1%3a8.4.0-1ubuntu1~18.04_armhf.deb ...
Unpacking libgcc1:armhf (1:8.4.0-1ubuntu1~18.04) ...
Selecting previously unselected package libc6:armhf.
Preparing to unpack .../libc6_2.27-3ubuntu1.4_armhf.deb ...
Unpacking libc6:armhf (2.27-3ubuntu1.4) ...
Setting up gcc-8-base:armhf (8.4.0-1ubuntu1~18.04) ...
Setting up libgcc1:armhf (1:8.4.0-1ubuntu1~18.04) ...
Setting up libc6:armhf (2.27-3ubuntu1.4) ...
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...

学校内のネットワークは、特定のポートが閉じているため、このようなことが起こる?