---
title: "求 Linux 版 Trae / Linux 相关吐槽 - Angryecho"
description: "Environment OS: Ubuntu 24.04.5 LTS Package: trae 1.107.1-1776685406 (.deb) Issue Purging the removed trae package fails because its postrm script calls db_purg…"
canonical_url: "https://www.angryecho.com/c/Traeba/p/P2TBBtKqLewGAdrVbnWUf"
meta:
  "og:description": "Environment OS: Ubuntu 24.04.5 LTS Package: trae 1.107.1-1776685406 (.deb) Issue Purging the removed trae package fails because its postrm script calls db_purg…"
  "og:image": "https://www.angryecho.com/_og/d/c_Post%2Ctitle_~5ZCQ5qe9572R%2Cdescription_~5ZCQ5qe95LiA5LiL77yM5bCx5LiK5ZCQ5qe9572R44CC%2CpostId_P2TBBtKqLewGAdrVbnWUf%2Crevision_~MjAyNi0xMS0wMVQwMjo1NTo1Ny40MDAxNzda%2Cp_Ii9jL1RyYWViYS9wL1AyVEJCdEtxTGV3R0FkclZibldVZiI%2Cs_11nW2bC-2YjrmLJ8.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "求 Linux 版 Trae / Linux 相关吐槽"
---

> Index of every page on this site: [llms.txt](https://www.angryecho.com/llms.txt)

# **求 Linux 版 Trae / Linux 相关吐槽**

### Environment

- OS: Ubuntu 24.04.5 LTS
- Package: trae 1.107.1-1776685406 (.deb)

### Issue

Purging the removed `trae` package fails because its `postrm` script calls `db_purge` without sourcing the debconf functions.

### Reproduction

1. Install Trae from its `.deb` package.
2. Uninstall Trae.
3. Run `sudo apt-get purge trae`.

### Error

```text
/var/lib/dpkg/info/trae.postrm: line 33: db_purge: command not found
dpkg: error processing package trae (--purge):
 installed trae package post-removal script subprocess returned error exit status 127
```

### Root cause

The `postrm` script contains:

```bash
if [ "$1" = "purge" ] && [ -e '/usr/share/debconf/confmodule' ]; then
    db_purge
fi
```

It does not source `/usr/share/debconf/confmodule` before calling `db_purge`.

### Suggested fix

```bash
if [ "$1" = "purge" ] && [ -e '/usr/share/debconf/confmodule' ]; then
    . /usr/share/debconf/confmodule
    db_purge
fi
```

The amended script passes `bash -n`; successful purge has not yet been verified.

排序方式 :

### **成为第一条评论！**

Nobody's responded to this post yet. Add your thoughts and get the conversation going.

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://www.angryecho.com/c/Traeba/p/P2TBBtKqLewGAdrVbnWUf#post","@type":"DiscussionForumPosting","commentCount":0,"dateModified":"2026-11-01T02:55:57.400Z","datePublished":"2026-10-25T12:21:41.000Z","description":"Environment OS: Ubuntu 24.04.5 LTS Package: trae 1.107.1-1776685406 (.deb) Issue Purging the removed trae package fails because its postrm script calls db_purg…","headline":"求 Linux 版 Trae / Linux 相关吐槽","isPartOf":"https://www.angryecho.com/c/Traeba","mainEntityOfPage":"https://www.angryecho.com/c/Traeba/p/P2TBBtKqLewGAdrVbnWUf","text":"Environment\n\n\n\n\n\nOS: Ubuntu 24.04.5 LTS\n\n\n\nPackage: trae 1.107.1-1776685406 (.deb)\n\nIssue\n\nPurging the removed trae package fails because its postrm script calls db_purge without sourcing the debconf functions.\n\nReproduction\n\n\n\n\n\nInstall Trae from its .deb package.\n\n\n\nUninstall Trae.\n\n\n\nRun sudo apt-get purge trae.\n\nError\n\n/var/lib/dpkg/info/trae.postrm: line 33: db_purge: command not found\ndpkg: error processing package trae (--purge):\n installed trae package post-removal script subprocess returned error exit status 127\n\nRoot cause\n\nThe postrm script contains:\n\nif [ \"$1\" = \"purge\" ] && [ -e '/usr/share/debconf/confmodule' ]; then\n    db_purge\nfi\n\nIt does not source /usr/share/debconf/confmodule before calling db_purge.\n\nSuggested fix\n\nif [ \"$1\" = \"purge\" ] && [ -e '/usr/share/debconf/confmodule' ]; then\n    . /usr/share/debconf/confmodule\n    db_purge\nfi\n\nThe amended script passes bash -n; successful purge has not yet been verified.","url":"https://www.angryecho.com/c/Traeba/p/P2TBBtKqLewGAdrVbnWUf","author":{"@type":"Person","name":"gengteng","url":"https://www.angryecho.com/u/R4C1f8b4fce-1768-492"},"interactionStatistic":[{"@type":"InteractionCounter","interactionType":"https://schema.org/LikeAction","userInteractionCount":0},{"@type":"InteractionCounter","interactionType":"https://schema.org/DislikeAction","userInteractionCount":0},{"@type":"InteractionCounter","interactionType":"https://schema.org/ViewAction","userInteractionCount":32},{"@type":"InteractionCounter","interactionType":"https://schema.org/ShareAction","userInteractionCount":0}]}]}
```

## Sitemap

See the full [sitemap](https://www.angryecho.com/sitemap.md) for all pages.
