Closed jhonny-oliveira closed 1 year ago
@jhonny-oliveira:
Hello,
Do you try to generate the metadata with your local repository under Ubuntu 23.04 ? I'm trying to use my local repository with Gnome Software but it seems that I must use appstream-generator to have 'appstream catalog metadata' which Gnome Software requires. If you trying to do the same thing, can you give me advice for it ? I'm also on Ubuntu 23.04 version.
Thank you very much.
@jhonny-oliveira: Does your repository even contain language packs? If not, does the issue go away if you simply use the "debian" backend instead of the Ubuntu one?
@Tuxman2 ,
You can find below a raw dump of what I have done. I created a mirror of my PPAs with aptly excluding the packages that cause the crash and then run the appstream-generator. When/if I ever get this working I will create and publish a nice HowTo with it. Let me know if you can make anything out of it and/or if I missed something.
# Create appstream directory
mkdir ~/.aptly/public/appstream/ubuntu
# create metadata
tee ~/.aptly/public/appstream/ubuntu/asgen-config.json <<EOF
{
"ProjectName": "XtraDeb",
"ArchiveRoot": ".",
"MediaBaseUrl": "https://192.168.122.53/ubuntu/appstream/ubuntu/media/",
"HtmlBaseUrl": "https://192.168.122.53/ubuntu/appstream/ubuntu/",
"Backend": "ubuntu",
"Suites": {
"lunar": {
"sections": ["apps","play"],
"architectures": ["amd64"]
}
}
}
EOF
cd ~/.aptly/public/appstream/ubuntu
appstream-generator process lunar
# link dep11 metadata inside the dists/<suite>/<section>/ directory (e.g.: dists/lunar/apps/dep11)
rDir=../../ubuntu
aDir=../../appstream/ubuntu
for mDir in $(find ${aDir}/export/data/ -maxdepth 2 -mindepth 2 -type d)
do
suite=$(basename $(dirname $mDir))
section=$(basename $mDir)
rPATH=$(realpath --relative-to=${rDir}/dists/${suite}/${section} ${mDir})
ln -sf ${rPATH} ${rDir}/dists/${suite}/${section}/dep11
done
# In the client testing VM
curl http://192.168.122.53:8080/xtradeb-prsk-pubkey.asc | sudo tee /etc/apt/trusted.gpg.d/xtradeb.net-prsk-pubkey.asc
echo "deb [arch=amd64] http://192.168.122.53:8080/ubuntu lunar apps play" | sudo tee /etc/apt/sources.list.d/xtradeb.net.list
sudo apt update
Cheers! Jhonny Oliveira @ https://xtradeb.net
@jhonny-oliveira: Thanks for your help.
I've got a local repository made with the help of apt-mirror. I've got DEP-11 metadata but I can't install any software under Gnome-software with the help of my local repository. As I said on another topic, I can see the list of applications, do a research on a software, but when I push the install button, it's waiting but nothings happens. It seems that Gnome-software tries to contact stackedit.io and appstream.ubuntu.com websites but I'm not online. I try to find a way to install sotfware under Gnome-software offline with the help of my repository (available on external hard disk).
Thanks.
Regards.
Note: I'm using Ubuntu 23.04.
@Tuxman2 ,
If I understood correctly, you have it working (almost) but the install fails. Correct?
I didn't get that far. Can you please provide me more details, so I can understand what I'm missing.
I don't need to be offline. So, that's not a issue for me.
@jhonny-oliveira: Yes the install fails, but it is very strange that I can see the list of applications and do research on a software. I define my local repository in /etc/apt/sources.list file. Like this: deb [arch=amd64 trusted=yes] file:/media/......./....../ubuntu/ lunar main restricted universe multiverse
In the terminal, I can install software with the sudo apt install command. I can do updates too. I tried with Ubuntu Software but it crashes with it. So, I installed Gnome-Software. When I push on the install button, another button appears: "Cancel" and after that an item is displayed below: "Ubuntu Unknow source Deb". I'm waiting but nothing happens. My local source repository is well defined in Gnome-Software.
Can it be a Gnome-Software bug ? When I'm online everything is ok.
Dear @Tuxman2, I just found out that aptly doesn't support dep11 (https://github.com/aptly-dev/aptly/pull/473).
Can it be a Gnome-Software bug ? When I'm online everything is ok. I don't know and I have no chance to test it at the moment.
Can you please share the recipe you followed using apt-mirror?
@ximion ,
I confirm https://github.com/ximion/appstream-generator/commit/8750a9251fdf90616e895ef8cc1e0d17f546bf80 fixed the problem.
Thank you!
Hello,
I dropped this problem. I don't have time to deal with it anymore because of my job. I returned to Manjaro and its pamac tool.
Thanks for taking the time to help me.
Regards.
Hi!
I'm getting the error (crash) below, while attempting to generate the metadata for my repo on Ubuntu 23.04 (Generator version: 0.9.0).
Any idea about what might be happening?
You can find additional information and the full execution log here: appstream-generator_log.txt.
Thank you! Jhonny Oliveira