---
title: openEuler 20.03 LTS/BC Linux 21.10安装virt-install时出错，提示“Unable to find a match: virt-install”-昇腾社区
description: openEuler 20.03 LTS安装virt-install时出错，提示“Unable to find a match: virt-install”
keywords: 虚拟机;openEuler 20.03 LTS;BC Linux 21.10
url: https://www.hiascend.com/document/caselibrary/detail/topic_0000002274183953
section: (其他)
---

# openEuler 20.03 LTS/BC Linux 21.10安装virt-install时出错，提示“Unable to find a match: virt-install”-昇腾社区

URL: https://www.hiascend.com/document/caselibrary/detail/topic_0000002274183953
描述: openEuler 20.03 LTS安装virt-install时出错，提示“Unable to find a match: virt-install”
关键词: 虚拟机;openEuler 20.03 LTS;BC Linux 21.10

昇腾文档 [了解详情](https://www.hiascend.com/document)

故障案例 [了解详情](https://www.hiascend.com/document/caselibrary)

openEuler 20.03 LTS/BC Linux 21.10安装virt-install时出错，提示“Unable to find a match: virt-install”

openEuler 20.03 LTS/BC Linux 21.10安装virt-install时出错，提示“Unable to find a match: virt-install”

2025/04/11

482

问题信息

| 问题来源 | 产品大类 | 产品子类 | 关键字 |
| --- | --- | --- | ---|
| 内部测试 | 部署虚拟机 | 虚拟机 | 虚拟机、openEuler 20.03 LTS、BC Linux 21.10 |

#### 问题现象描述

openEuler 20.03 LTS安装virt-install时出错，提示“Unable to find a match: virt-install”

```
root@localhost ~]# yum install virt-install
Last metadata expiration check: 1 day, 21:45:09 ago on Wed 22 Feb 2023 10:01:15 PM CST.
No match for argument: virt-install
Error: Unable to find a match: virt-install
```

#### 解决措施

1. 使用root用户登录。
2. 在yum源中增加openEuler 22.03 LTS的地址，添加如下的字段后保存退出。

```
[22.03]
name=22.03
baseurl=http://repo.openeuler.org/openEuler-22.03-LTS/OS/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://repo.openeuler.org/openEuler-22.03-LTS/OS/$basearch/RPM-GPG-KEY-openEuler
```
3. 更新yum源信息。

yum clean all

yum makecache
4. 重新安装virt-install。

yum install -y virt-install
5. 删除yum源中2 [了解详情](https://www.hiascend.com/#ZH-CN_TOPIC_0000002274183953__li27144921614)增加的内容。
6. 再次执行3 [了解详情](https://www.hiascend.com/#ZH-CN_TOPIC_0000002274183953__li1146605216362)，更新yum源信息。

本页内容

- 问题信息
- 问题现象描述
- 解决措施
