aptly-dev / aptly

aptly - Debian repository management tool
https://www.aptly.info/
MIT License
2.58k stars 376 forks source link

Updating one component breaks other components in distribution #375

Open iancullinane opened 8 years ago

iancullinane commented 8 years ago

Is it possible to update only a single target component? When executing the following steps, one of my components breaks:

This assumes a repo with distribution: trusty, and components: stable, staging

1. aptly create mirror target-repo <url> trusty stable
2. aptly mirror update target-repo

3. aptly repo create add local-repo
4. aptly repo add /path/with/package

5. aptly snapshot create target-repo-snap from mirror target-repo
6. aptly snapshot create local-repo-snap from repo local
7. aptly snapshot merge staging-for-publish target-repo-snap local-repo-snap

8. aptly publish snapshot -distribution=trusty -component=staging staging-for-publish s3:test:

When this sequence executes and I try and add the trusty stable repo to a machine and update, I get the following familiar error:

W: Failed to fetch http://aptly-testing.s3-website-us-east-1.amazonaws.com/dists/trusty/InRelease  Unable to find expected entry 'stable/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.

Do I need to update both components simultaneously?

smira commented 8 years ago

@eignhpants this sounds like a bug.

Could you please provide more information: output of aptly publish list and contents of InRelease file?

zonzamas commented 8 years ago

I also get something similar, after mirroring a repo and publishing an snapshot from it.

W: Failed to fetch https://repo.foo.com/ubuntu/dists/trusty/InRelease Unable to find expected entry 'main/binary-all/Packages' in Release file (Wrong sources.list entry or malformed file)

./aptly publish list Published repositories:

InRelease Content:

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256

Origin: ubuntu trusty Label: ubuntu trusty Suite: trusty Codename: trusty Date: Wed, 1 Jun 2016 16:45:10 UTC Architectures: amd64 i386 Components: main Description: Generated by aptly MD5Sum: 994a6b34ce45f11f9289fa1a423d07ab 88678 main/binary-i386/Packages 4c336791a0acbac8f14877cade83504f 21053 main/binary-i386/Packages.gz 3387eab37140c27bfb6364943902a576 19345 main/binary-i386/Packages.bz2 3c3b2d669b22e37c4f424ee9b2d8c846 14379348 main/Contents-amd64.gz 20a6c16a1bc283a1bd3eb7486718149b 56808 main/Contents-i386.gz f0bbabda47b4dcc85284475efad1264b 94 main/binary-i386/Release 85ad0976b4106faa8f402bd16a603575 59685 main/binary-amd64/Packages.bz2 b59c37b85ecd7a0459de5802ae8d1ab3 95 main/binary-amd64/Release bba93e98bb82be2219cf52511b71d20e 334321 main/binary-amd64/Packages 4de0608f426a8bc11e960218ca7e2f3b 70587 main/binary-amd64/Packages.gz SHA1: 5006343f04761be8efe57572e8908c2699a02032 88678 main/binary-i386/Packages 503984853dd3dd33718a4372303fe688ae1c5825 21053 main/binary-i386/Packages.gz bf885b7662f7c13d5b3436e69494492bc1f63028 19345 main/binary-i386/Packages.bz2 39ba40ff8d5aee049d95c62b39ea04ed8611c6a6 14379348 main/Contents-amd64.gz 8f92d79b0778187f940cdef3b59be2c7aa810fde 56808 main/Contents-i386.gz 1dedf892e3b11b5fc18b1c82585e24582a37958d 94 main/binary-i386/Release af48163ca1c3487391db4ac961f9ef7b82aabde0 59685 main/binary-amd64/Packages.bz2 30e3ad4f3f2267990712a64a03ac80e95308409e 95 main/binary-amd64/Release db524848428a07634d6ca71f5cc9d839fbcb1a87 334321 main/binary-amd64/Packages 5168f01aa96c1cf1615f0f2ae5503ec6e9dcf16f 70587 main/binary-amd64/Packages.gz SHA256: 0e5ccf66f4cbc84f90081583bfb4e2f116d6665caa8cdc7d3f096052364bb1ba 88678 main/binary-i386/Packages 5febecc7abf14c381b7c959bee0e7f1a222ade04b236d8179a9ee9431712c2d6 21053 main/binary-i386/Packages.gz 55820d4564b4e3d3a0a79e295b991f294d90a3a2808b55f2d8f4b2e3fc8bfbcc 19345 main/binary-i386/Packages.bz2 6921b92b7fcb868a7121f7b3d55a2dc9d19e47179e90ab2afb3be64af0ceff2c 14379348 main/Contents-amd64.gz 90b8c604fffea6e069db46210ccb5018e89ede7f6fe2613eea0b696611318ef5 56808 main/Contents-i386.gz c9730189c09cafc9df79c1c852136ac2afd66e7941cb55027357a996a8600d54 94 main/binary-i386/Release 95ea3f10d8c2f0e622b00da84e2c871c08d3818540cc60d708355c352b08dbcf 59685 main/binary-amd64/Packages.bz2 465183d248221449802004b4e866e5409dcbea816f7ab85731058ad09e8d77ef 95 main/binary-amd64/Release 493e291ce67c9e4dd5c54d635517e718cfcc0f175534687a1db9f9d7231e8503 334321 main/binary-amd64/Packages 4d33257dc6fd6863658268cb261ebc47451bebcc048d49a86a92c7bf064a48d0 70587 main/binary-amd64/Packages.gz SHA512: 641864dc7c1745e688b773e615121ebfa2be59e7b23d7522df4c2dd0f9281517fff57a04e6812be72906a325b4ab23b9624a0bb2be79fefae691fb23f3701739 88678 main/binary-i386/Packages a94327850bbce9bfbeb83672f99179992b30f08b7d6c93f91b280ae45fd24ebe90ab86fd10f3f4f9810c2938436629a33229fb592c1a9fe3868f737f133b98f5 21053 main/binary-i386/Packages.gz 23bce5ecae3b676a7594ffcbf671a62729f29fc7285048a883d8286ac4f761c1800636313f2584f6ffc8453e1f0ff5f653eb57ad24292efca0a69475bff086fc 19345 main/binary-i386/Packages.bz2 0bb932baccbe067a15b81d90c16013e76d52edcae2e443a763d050f72583c28a602aa8ce4ddcc936fde2d1a7948382dce128aa9c6e14a06827cba2b147b1c7c0 14379348 main/Contents-amd64.gz df9c3e8c632c621094a369c51be413b63c608e851a04d6e7b224602afcd80db30bb89b27bf34c9643f8027252755f15ecd2a8903b5c0e842e19d81164443ceb1 56808 main/Contents-i386.gz 65dc7a7a19e5919952d7c2250516c676f4d0d4538e8a15d6d41078ee598065e17666dc96ab368d59a530ac3f371c398c7b2ece1bcc18e363836b2eaf5244f81b 94 main/binary-i386/Release 7b6c9124fe00c0e45662388a90da98893e41859d0748208d00b6721358f78e059bfac079d7e8977d0632321ffc39bdf9cddb2b9c4343c8c0c7f849c7bac31f86 59685 main/binary-amd64/Packages.bz2 270b558b473fb94e574b3a78412f0636c2303ad1dd843f679340c36fa52fc8df98485aa3e10cae7fa8a4c08c0f95a0dc190a00d6dd1593e8426c8b605b2a7240 95 main/binary-amd64/Release 32015df4c5fca99104bf9a9cf6c7831449f263224a35645bcf024f06fe6ef2a0e8921925eb49ac405fe78b3de880c25fbec22665d3729a51c3e0b79cd8cfc3e9 334321 main/binary-amd64/Packages 3c6d8d08b51caabdb4d691ff162a4f0a119c4bb66e73e22590caffb7b262c3c83ef8d7b553237fa3039d92f07e9017079607cad59bfa1132e985d884448dde61 70587 main/binary-amd64/Packages.gz -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 xxxxxxxx -----END PGP SIGNATURE-----