Filter not correctly working or no blacklisting of packages possible
Detailed Description
aptly mirror create -architectures=amd64 -filter='!(Name (~ .massscan.)),!(Name (~ .pnscan.)),!(Name (~ .price.app.)),!(Name (~ .libclanlib.))' -filter-with-deps jammy-main2 http://archive.ubuntu.com/ubuntu jammy main restricted universe
Downloading http://archive.ubuntu.com/ubuntu/pool/universe/c/clanlib/libclanlib-dev_1.0~svn3827-8_amd64.deb... Downloading http://archive.ubuntu.com/ubuntu/pool/universe/p/price.app/price.app_1.3.0-5build1_amd64.deb... Downloading http://archive.ubuntu.com/ubuntu/pool/universe/m/masscan/masscan_1.3.2+ds1-1_amd64.deb... Downloading http://archive.ubuntu.com/ubuntu/pool/universe/p/pnscan/pnscan_1.14.1-1_amd64.deb... Error downloading http://archive.ubuntu.com/ubuntu/pool/universe/p/price.app/price.app_1.3.0-5build1_amd64.deb: HTTP code 403 while fetching http://archive.ubuntu.com/ubuntu/pool/universe/p/price.app/price.app_1.3.0-5build1_amd64.deb retrying... Error downloading http://archive.ubuntu.com/ubuntu/pool/universe/p/pnscan/pnscan_1.14.1-1_amd64.deb: HTTP code 403 while fetching http://archive.ubuntu.com/ubuntu/pool/universe/p/pnscan/pnscan_1.14.1-1_amd64.deb retrying... Error downloading http://archive.ubuntu.com/ubuntu/pool/universe/m/masscan/masscan_1.3.2+ds1-1_amd64.deb: HTTP code 403 while fetching http://archive.ubuntu.com/ubuntu/pool/universe/m/masscan/masscan_1.3.2+ds1-1_amd64.deb retrying... Retrying 0 http://archive.ubuntu.com/ubuntu/pool/universe/p/price.app/price.app_1.3.0-5build1_amd64.deb... Giving up on http://archive.ubuntu.com/ubuntu/pool/universe/p/price.app/price.app_1.3.0-5build1_amd64.deb... Retrying 0 http://archive.ubuntu.com/ubuntu/pool/universe/p/pnscan/pnscan_1.14.1-1_amd64.deb... Giving up on http://archive.ubuntu.com/ubuntu/pool/universe/p/pnscan/pnscan_1.14.1-1_amd64.deb... Retrying 0 http://archive.ubuntu.com/ubuntu/pool/universe/m/masscan/masscan_1.3.2+ds1-1_amd64.deb... Giving up on http://archive.ubuntu.com/ubuntu/pool/universe/m/masscan/masscan_1.3.2+ds1-1_amd64.deb...
Context
Cannot Create a mirror and cannot blacklist any packages.
infrastructure (Antivirus scan) is blocking some packages and cannot prevent aptly from trying to download this packages. Or how can I create snapshot of mirrors despite of download errors (force options ??)
Your Environment
Ubuntu Jammy with aptly 1.50, mirroring Ubuntu jammy universe
I think the correct syntax for the regex would be !(Name (~ .*masscan.*))...
could you try with the asterisk (*) ? also note, there is only 2 s in the package name
I tried to reproduce it, here are the filter expressions that work (I only tried 2 packages, with correct regular expression and boolean logic):
-
-filter='!Name (~ .*masscan.*), !Name (~ .*price.app.*)' -
-filter='!(Name (~ .*masscan.*) | Name (~ .*price.app.*))'
also, I had to remove the argument -filter-with-deps, as it seems to bring filtered out the packages in again.