canonical / craft-cli

https://canonical-craft-cli.readthedocs-hosted.com/en/latest/
GNU Lesser General Public License v3.0
9 stars 15 forks source link

Line overwrite causes corrupted error message #263

Closed cmatsuoka closed 3 days ago

cmatsuoka commented 1 month ago

Bug Description

During a pack operation in brief mode, the following error message is seen:

craft-providers error: Failed to update apt cache.e from remote                                                                                                                       

The actual message from apt is craft-providers error: Failed to update apt cache., and e from remote is residue from a previous message.

To Reproduce

TBD

part yaml

No response

Relevant log output

craft-providers error: Failed to update apt cache.e from remote                                                                                                                       
* Command that failed: 'lxc --project snapcraft exec local:base-instance-snapcraft-buildd-base-v71--d799df4d4588b4abe861 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin CRAFT_MANAGED_MODE=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true DEBIAN_PRIORITY=critical apt-get update'
* Command exit code: 100
* Command output: b'Ign:1 http://security.ubuntu.com/ubuntu jammy-security InRelease\nIgn:2 http://archive.ubuntu.com/ubuntu jammy InRelease\nIgn:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease\nIgn:1 http://security.ubuntu.com/ubuntu jammy-security InRelease\nIgn:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease\nIgn:1 http://security.ubuntu.com/ubuntu jammy-security InRelease\nIgn:2 http://archive.ubuntu.com/ubuntu jammy InRelease\nErr:1 http://security.ubuntu.com/ubuntu jammy-security InRelease\n  Connection failed [IP: 185.125.190.82 80]\nIgn:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease\nIgn:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease\nIgn:2 http://archive.ubuntu.com/ubuntu jammy InRelease\nIgn:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease\nIgn:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease\nErr:2 http://archive.ubuntu.com/ubuntu jammy InRelease\n  Connection failed [IP: 185.125.190.82 80]\nErr:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease\n  Connection failed [IP: 185.125.190.82 80]\nErr:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease\n  Connection failed [IP: 91.189.91.83 80]\nReading package lists...\n'
* Command standard error output: b'E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease  Connection failed [IP: 185.125.190.82 80]\nE: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease  Connection failed [IP: 185.125.190.82 80]\nE: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease  Connection failed [IP: 91.189.91.83 80]\nE: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease  Connection failed [IP: 185.125.190.82 80]\nE: Some index files failed to download. They have been ignored, or old ones used instead.\n'
syncronize-issues-to-jira[bot] commented 1 month ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-3144.

This message was autogenerated

lengau commented 1 month ago

I believe https://github.com/canonical/craft-cli/pull/210 fixes this.