---
title: "Invalid Key Resource URL"
date: 2021-08-23T21:47:30.000Z
author: Z.SHINCHVEN
tags: [apt-key, apt]
canonical: https://atlassc.net/2021/08/24/invalid-key-resource-URL
---
## My Error

While following [Ubuntu installation guide of WineHQ](https://wiki.winehq.org/Ubuntu), I encountered the following error at adding the repository key:

> invalid key resource URL '/tmp/apt-key-gpghome.fqOE5QKqm2/home:manuelschneid3r.asc.gpg'

## Solution

To solve this problem, I have to remove the existing `home:manuelschneid3r.asc` file:

```bash
sudo rm -rf /etc/apt/trusted.gpg.d/home:manuelschneid3r.asc
```
