Public bug reported:
Description:
------------------------------------------------------------
The version [1.4.0+ds1-6ubuntu0.1] of the aptly package is not able to decode
mirror data from previously created mirrors, or to create new mirrors, entirely
breaking core functionality.
This System:
------------------------------------------------------------
Description: Ubuntu 22.04.5 LTS
Release: 22.04
Package: 1.4.0+ds1-6ubuntu0.1
Workaround:
------------------------------------------------------------
Downgrade aptly package to 1.4.0+ds1-6
Issue discovery:
------------------------------------------------------------
I was testing aptly to create Ubuntu Archive and ESM mirrors on an Ubuntu 24.04
system for an offline Ubuntu Pro setup. I then found that the environment I
will eventually be using is actually a 22.04 system so I created a new machine
and mounted the disk will all my aptly data into the 22.04 machine.
It appeared to all be working fine until I ran an update on all of my
mirrors, I got some very bad errors and then my mirrors stopped working
and giving errors even when trying to just list the mirrors:
```
aptly mirror list -raw
2026/02/03 22:14:43 Error decoding mirror: EOF
2026/02/03 22:14:43 Error decoding mirror: EOF
2026/02/03 22:14:43 Error decoding mirror: EOF
2026/02/03 22:14:43 Error decoding mirror: EOF
2026/02/03 22:14:43 Error decoding mirror: msgpack decode error [pos 837]: only
encoded map or array can be decoded into a struct
2026/02/03 22:14:43 Error decoding mirror: EOF
2026/02/03 22:14:43 Error decoding mirror: EOF
2026/02/03 22:14:43 Error decoding mirror: EOF
2026/02/03 22:14:43 Error decoding mirror: msgpack decode error [pos 762]: only
encoded map or array can be decoded into a struct
2026/02/03 22:14:43 Error decoding mirror: EOF
2026/02/03 22:14:43 Error decoding mirror: msgpack decode error [pos 869]: only
encoded map or array can be decoded into a struct
2026/02/03 22:14:43 Error decoding mirror: msgpack decode error [pos 930]: only
encoded map or array can be decoded into a struct
2026/02/03 22:14:43 Error decoding mirror: EOF
2026/02/03 22:14:43 Error decoding mirror: EOF 2026/02/03 22:14:43 Error
decoding mirror: EOF
```
I tried doing an aptly db recovery, but it still could not read the
data. I thought this might be because I had built the mirror on 24.04
and then later mounted it into a 22.04 system, so I wiped the entire
disk, reinstalled the 22.04 system and started from scratch.
Issue:
------------------------------------------------------------
On a clean install with a blank disk, the [1.4.0+ds1-6ubuntu0.1] version of
aptly cannot successfully create a mirror. It will show only errors and blank *
for each mirror I tried to create.
```
aptly mirror list
2026/02/03 22:27:10 Error decoding mirror: EOF
2026/02/03 22:27:10 Error decoding mirror: EOF
2026/02/03 22:27:10 Error decoding mirror: EOF
2026/02/03 22:27:10 Error decoding mirror: EOF
List of mirrors:
*
*
*
*
```
I was able to work around the issue by downgrading the package to
[1.4.0+ds1-6]
** Affects: aptly (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2140498
Title:
aptly fails to create new mirrors or decode previous mirror data
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/aptly/+bug/2140498/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs