canonical / canonical/ubuntu-server-documentation

[Feedback]: Multiline `echo | sudo tee` has incorrect `>` inserted

Open Beginner friendly
#754 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Makefile
Stars
88
Forks
159
Avg merge
1d 13h
Merged PRs (30d)
5

Description

### Page URL

https://ubuntu.com/server/docs/how-to/debugging/debug-symbol-packages/#create-a-ddebs-list-file

### Select an option

- [ ] I found what I was looking for
- [ ] I couldn't find what I was looking for
- [x] I found the information, but it was incorrect
- [ ] I found the information, but it was incomplete
- [ ] I found the information, but it was confusing
- [x] I encountered a technical issue (e.g., broken link, image not loading)

### Issue Description

`>` characters were unexpectedly inserted into https://ubuntu.com/server/docs/how-to/debugging/debug-symbol-packages/#create-a-ddebs-list-file :

```text
$
echo "Types: deb
> URIs: http://ddebs.ubuntu.com/
> Suites: $(lsb_release -cs) $(lsb_release -cs)-updates $(lsb_release -cs)-proposed
> Components: main restricted universe multiverse
> Signed-by: /usr/share/keyrings/ubuntu-dbgsym-keyring.gpg" | \
> sudo tee -a /etc/apt/sources.list.d/ddebs.sources
```

that code block, rendered in the webpage

Something inserted them, as the original https://github.com/canonical/ubuntu-server-documentation/blob/b9d3b55199196d56c2ca58ab033a6361dccef4b6/docs/how-to/debugging/debug-symbol-packages.md#L48-L53 doesn't have them.

This caused apt to fail, and required manually removing `>` from `/etc/apt/sources.list.d/ddebs.sources` and deleting `/etc/apt/sources.list.d/sudo`:

```console
root@daniel-desktop3:/etc/apt/sources.list.d# echo "Types: deb
> URIs: http://ddebs.ubuntu.com/
> Suites: $(lsb_release -cs) $(lsb_release -cs)-updates $(lsb_release -cs)-proposed
> Components: main restricted universe multiverse
> Signed-by: /usr/share/keyrings/ubuntu-dbgsym-keyring.gpg" | \
> sudo tee -a /etc/apt/sources.list.d/ddebs.sources
root@daniel-desktop3:/etc/apt/sources.list.d# apt update
Notice: Ignoring file 'sudo' in directory '/etc/apt/sources.list.d/' as it has no filename extension
Error: Malformed entry 1 in sources file /etc/apt/sources.list.d/ddebs.sources (URI)
Error: The list of sources could not be read.
root@daniel-desktop3:/etc/apt/sources.list.d# vim ddebs.sources
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with docs/how-to/debugging/debug-symbol-packages.md at the referenced lines 48–53 and compare its source with the rendered Ubuntu Server page. Build or preview the documentation using the repository’s documented workflow, then verify the multiline echo example renders without inserted > characters and still produces valid commands.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown, shell, ubuntu
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.