---
title: "Orange Pi Zero3のUbuntu公式イメージでaptのリポジトリをrepo.huaweicloud.com以外にする"
id: "6648"
type: "post"
slug: "orange-pi-zero3%e3%81%aeubuntu%e5%85%ac%e5%bc%8f%e3%82%a4%e3%83%a1%e3%83%bc%e3%82%b8%e3%81%a7apt%e3%81%ae%e3%83%aa%e3%83%9d%e3%82%b8%e3%83%88%e3%83%aa%e3%82%92repo-huaweicloud-com%e4%bb%a5%e5%a4%96"
published_at: "2023-08-04T09:20:54+00:00"
modified_at: "2023-08-06T10:55:45+00:00"
url: "https://www.okin-jp.net/archives/6648"
markdown_url: "https://www.okin-jp.net/archives/6648.md"
excerpt: "MacのWindowsAppからxrdpにrdp接続するとusキーボードになってしまうので調査 Continue reading"
taxonomy_category:
  - "Linux"
  - "Orange Pi"
taxonomy_post_tag:
  - "apt"
  - "deb"
  - "orange pi zero3"
---

## 概要

Orange Pi Zero3の公式Ubuntuイメージはaptのリポジトリとしてrepo.huaweicloud.comが指定されており、一般的な方法で設定を変えても反映されない問題を解決する。

## 解決策

イメージをmicroSDに書き込んだ後、初回起動前にファイルシステムをマウントして、/etc/apt/source.list を編集する。また/etc/apt/source.list.d/の中でrepo.huaweicloud.comを含むファイルを削除する。

### 備考

下記のスクリプトを実行すると上書きされることがあるので気になる場合はこれらも削除する。削除しても特に問題ない。

/usr/bin/install_ros.sh /usr/bin/install_docker.sh

| 12 | /usr/bin/install_ros.sh/usr/bin/install_docker.sh |
| --- | --- |

## 付録

編集後の /etc/apt/source.listの例

deb http://ports.ubuntu.com/ubuntu-ports/ jammy main restricted universe multiverse #deb-src http://ports.ubuntu.com/ubuntu-ports/ jammy main restricted universe multiverse deb http://ports.ubuntu.com/ubuntu-ports/ jammy-security main restricted universe multiverse #deb-src http://ports.ubuntu.com/ubuntu-ports/ jammy-security main restricted universe multiverse deb http://ports.ubuntu.com/ubuntu-ports/ jammy-updates main restricted universe multiverse #deb-src http://ports.ubuntu.com/ubuntu-ports/ jammy-updates main restricted universe multiverse deb http://ports.ubuntu.com/ubuntu-ports/ jammy-backports main restricted universe multiverse #deb-src http://ports.ubuntu.com/ubuntu-ports/ jammy-backports main restricted universe multiverse

| 1234567891011 | deb http://ports.ubuntu.com/ubuntu-ports/ jammy main restricted universe multiverse#deb-src http://ports.ubuntu.com/ubuntu-ports/ jammy main restricted universe multiverse deb http://ports.ubuntu.com/ubuntu-ports/ jammy-security main restricted universe multiverse#deb-src http://ports.ubuntu.com/ubuntu-ports/ jammy-security main restricted universe multiverse deb http://ports.ubuntu.com/ubuntu-ports/ jammy-updates main restricted universe multiverse#deb-src http://ports.ubuntu.com/ubuntu-ports/ jammy-updates main restricted universe multiverse deb http://ports.ubuntu.com/ubuntu-ports/ jammy-backports main restricted universe multiverse#deb-src http://ports.ubuntu.com/ubuntu-ports/ jammy-backports main restricted universe multiverse |
| --- | --- |

![おきん(blog)](https://secure.gravatar.com/avatar/90fa8845304183a491e9f3bfa0a6a44e46e25882407e4aa652815d725d55bd8c?s=100&r=g)

[おきん(blog)](https://www.okin-jp.net/archives/author/oops-okin)

[https://mi.okin-jp.net/@okin_p](https://mi.okin-jp.net/@okin_p)
(Misskey)  
 [https://fi.okin-jp.net/@okin_p](https://fi.okin-jp.net/@okin_p)
(Firefish)  
 [https://si.okin-jp.net/@okin_p](https://si.okin-jp.net/@okin_p)
(Mastodon)

[https://fedifile.net/@okin_p/profile/](https://fedifile.net/@okin_p/profile/)
  
 [https://twpf.jp/okin_p](https://twpf.jp/okin_p)
  
 [http://profile.hatena.ne.jp/okin_p/](http://profile.hatena.ne.jp/okin_p/)

名前：おきん  
 やってること：面倒なことをPHPにやらせる、IPv6でなにかする、車で移動する  
 主なガジェット：Google Pixel 4a (5G) ,iPhone XS(ジャンク), iPad mini5, その他

種別：IPv6 Single stack 猫

パソコンやガジェットについて書いていく…予定。

[https://twitter.com/okin_p](https://twitter.com/okin_p)
[https://si.okin-jp.net/@okin_p](https://si.okin-jp.net/@okin_p)

### *関連記事*

### コメントを残す[コメントをキャンセル](/archives/6648#respond)

このサイトはスパムを低減するために Akismet を使っています。[コメントデータの処理方法の詳細はこちらをご覧ください](https://akismet.com/privacy/)
。
