# (Solved) Nix-channel --update : error?

**URL:** https://discourse.nixos.org/t/solved-nix-channel-update-error/57027
**Category:** Help
**Created:** [December 5, 2024, 11:48am UTC](https://discourse.nixos.org/t/solved-nix-channel-update-error/57027 "2024-12-05T11:48:10Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![imbios](https://discourse.nixos.org/letter_avatar_proxy/v4/letter/i/a587f6/32.png) [@imbios](https://discourse.nixos.org/u/imbios)
#### Post date: [December 5, 2024, 11:48am UTC](https://discourse.nixos.org/t/solved-nix-channel-update-error/57027/1 "2024-12-05T11:48:10Z")

</div>

```auto
$ nix-channel --update               
error: unable to download 'https://nixos.org/channels/channel-24.05': HTTP error 404

       response body:

       <html>
       <head><title>404 Not Found</title></head>
       <body>
       <h1>404 Not Found</h1>
       <ul>
       <li>Code: NoSuchKey</li>
       <li>Message: The specified key does not exist.</li>
       <li>Key: channel-24.05</li>
       <li>RequestId: XXN6P4F5QNWSTB9K</li>
       <li>HostId: Iou/eu71PqAMv09CtjUbM0A4bogFH58n22L8vmmXhi+M9H7eDf6rvWAxZsSlGSdsGc0/VoNiosc=</li>
       </ul>
       <hr/>
       </body>
       </html>

```

How can this problem be solved?

---

<div class="post-metadata">

### Author: ![thefossguy](https://discourse.nixos.org/user_avatar/discourse.nixos.org/thefossguy/32/9641_2.png) [@thefossguy](https://discourse.nixos.org/u/thefossguy)
#### Post date: [December 5, 2024, 12:21pm UTC](https://discourse.nixos.org/t/solved-nix-channel-update-error/57027/2 "2024-12-05T12:21:25Z")

</div>

Does `nix-channel --list` show `channel-24.05`? If yes, you have the wrong prefix. It should be `nixos-24.05`, not `channel-24.05`.

You can fix this with the following commands:

```auto
nix-channel --remove $(nix-channel --list | awk '{print $1}')
nix-channel --add https://nixos.org/channels/nixos-24.05 nixos

```

Pro tip: In the last command, change `nixos-24.05` to `nxios-24.11` since `24.11` is the new version of NixOS which came out last week and the old version (`24.05`) will go end of life on December 2024.

---

<div class="post-metadata">

### Author: ![imbios](https://discourse.nixos.org/letter_avatar_proxy/v4/letter/i/a587f6/32.png) [@imbios](https://discourse.nixos.org/u/imbios)
#### Post date: [December 5, 2024, 12:58pm UTC](https://discourse.nixos.org/t/solved-nix-channel-update-error/57027/3 "2024-12-05T12:58:16Z")

</div>

Thank you very much, the problem is solved.

```auto
╭─imbios@nixos in ~ 
╰$ nix-channel --list                 
home-manager https://github.com/nix-community/home-manager/archive/release-24.11.tar.gz
nixos https://nixos.org/channels/nixos-24.11
╭─imbios@nixos in ~ 
╰$ sudo nix-channel --list                                                                                  
nixos https://nixos.org/channels/nixos-24.11

```

---

<div class="post-metadata">

### Author: ![thefossguy](https://discourse.nixos.org/user_avatar/discourse.nixos.org/thefossguy/32/9641_2.png) [@thefossguy](https://discourse.nixos.org/u/thefossguy)
#### Post date: [December 5, 2024, 1:00pm UTC](https://discourse.nixos.org/t/solved-nix-channel-update-error/57027/4 "2024-12-05T13:00:49Z")

</div>

Great, please mark the thread resolved.

---

<div class="post-metadata">

### Author: ![waffle8946](https://discourse.nixos.org/user_avatar/discourse.nixos.org/waffle8946/32/27221_2.png) [@waffle8946](https://discourse.nixos.org/u/waffle8946)
#### Post date: [December 5, 2024, 1:15pm UTC](https://discourse.nixos.org/t/solved-nix-channel-update-error/57027/5 "2024-12-05T13:15:07Z")

</div>

You should probably delete the nixos channel for your user, just keep the one for root. Otherwise you’ll have to two similar-looking channels out of sync with each other.

---

<div class="post-metadata">

### Author: ![imbios](https://discourse.nixos.org/letter_avatar_proxy/v4/letter/i/a587f6/32.png) [@imbios](https://discourse.nixos.org/u/imbios)
#### Post date: [December 6, 2024, 9:02am UTC](https://discourse.nixos.org/t/solved-nix-channel-update-error/57027/6 "2024-12-06T09:02:00Z")

</div>

I’m a little confused, I try to delete it, but it stays in the system.

```auto
╭─imbios@nixos in ~ 
╰$ nix-channel --list              
home-manager https://github.com/nix-community/home-manager/archive/release-24.11.tar.gz
nixos https://nixos.org/channels/nixos-24.11
╭─imbios@nixos in ~ 
╰$ nix-channel --remove nixos-24.11

uninstalling 'nixos-24.11'
╭─imbios@nixos in ~ 
╰$ nix-channel --list              
home-manager https://github.com/nix-community/home-manager/archive/release-24.11.tar.gz
nixos https://nixos.org/channels/nixos-24.11

```

I’m sorry, but I’m still in the learning stage.

---

<div class="post-metadata">

### Author: ![rhendric](https://discourse.nixos.org/user_avatar/discourse.nixos.org/rhendric/32/5699_2.png) [@rhendric](https://discourse.nixos.org/u/rhendric)
#### Post date: [December 6, 2024, 9:10am UTC](https://discourse.nixos.org/t/solved-nix-channel-update-error/57027/7 "2024-12-06T09:10:15Z")

</div>

You want to use the name provided on the left by `nix-channel --list`—in this case, `nix-channel --remove nixos`.

---

<div class="post-metadata">

### Author: ![imbios](https://discourse.nixos.org/letter_avatar_proxy/v4/letter/i/a587f6/32.png) [@imbios](https://discourse.nixos.org/u/imbios)
#### Post date: [December 6, 2024, 9:18am UTC](https://discourse.nixos.org/t/solved-nix-channel-update-error/57027/8 "2024-12-06T09:18:35Z")

</div>

Thanks a lot, everything is fine now.
