ubuntu22.04怎么正确的安装amd7900xtx显卡驱动
时间: 2024-09-18 12:18:46 浏览: 161
在Ubuntu 22.04 (Focal Fossa) 上安装AMD Radeon RX 7900 XTX 显卡驱动,你可以按照以下步骤操作:
1. **更新系统**:
```
sudo apt update && sudo apt upgrade
```
2. **添加AMD官方软件源**:
```bash
sudo sh -c 'echo "deb [arch=amd64] https://repo.amd.com/rocm/apt/ stable main" > /etc/apt/sources.list.d/rocm.list'
```
3. **添加公钥并设置信任**:
```bash
curl -s -L https://repo.amd.com/rocm/public-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/amd-archive-keyring.gpg
sudo chmod 0444 /usr/share/keyrings/amd-archive-keyring.gpg
sudo tee /etc/apt/trusted.gpg.d/amd-archive-keyring.gpg > /dev/null
```
4. **安装依赖库**:
```
sudo apt-get install -y curl software-properties-common
```
5. **安装驱动**:
```
sudo apt install -y amd-rocm-toolkit
```
6. **确认安装**:
```bash
rocm-smi
```
如果一切顺利,你应该能看到你的Radeon 7900XTX显示在设备列表中。
阅读全文