[BUG] Claude desktop keeps recreating /etc/apt/sources.list.d/claude-desktop.list

Status Open
Reported on v2.1.220
Maintainer reply None cached
Activity 0 comments · opened Aug 5, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

I'm using the Claude Desktop beta package on Debian Trixie. I have setup a deb822 sources file (/etc/apt/sources.list.d/claude-desktop.sources) so that I can get updates.

Whenever I install an update, however, the postinst script also creates /etc/apt/sources.list.d/claude-desktop.list, resulting in conflicting directives, breaking apt. Removing the file gets things moving, until the next Claude Desktop update.

What Should Happen?

The postinst script should be smart enough to see there are already source lines for Claude Desktop and cool its horses.

Error Messages/Logs

Error: Conflicting values set for option Signed-By regarding source https://downloads.claude.ai/claude-desktop/apt/stable/ stable: /usr/share/keyrings/claude-desktop-archive-keyring.asc != /usr/share/keyrings/anthropic-claude.asc
Error: The list of sources could not be read.

Steps to Reproduce

  • Setup Claude Desktop on Debian, using the deb822 format.
  • Rename the key (setup instructions download to different key names for Claude Desktop and Claude Code but it's the _same key_).
  • Wait for an update, install the update.
  • Cry because apt is broken

Claude Model

None

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.1.220

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗