So when running “snapcraft --destructive-mode” command.
I get this output:
The 'qt515' part is missing libraries that are not included in the snap or base. They can be satisfied by adding the following entries to the existing stage-packages for this part:
- libdouble-conversion1
- libevent-2.1-6
- libhunspell-1.6-0
- libicu60
- libmysqlclient20
And when those stage packages are added to the part with " sudo apt-get install -y libevent-2.1-6" you get this output, for each of the packages given above. Each of those packages when trying to do apt-get install show that they are already downloaded:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libevent-2.1-6 is already the newest version (2.1.8-stable-4build1).
The following package was automatically installed and is no longer required:
libasound2-dev
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
But then when trying to rerun “snapcraft --destructive-mode” it is circling errors between each of those libraries above that it cant find them:
Failed to fetch stage packages: Error downloading packages for part 'qt515': The package 'libevent-2.1-6' was not found..
So I have those packages downloaded but the build still complains about them, unsure why? How do I fix this? I am trying to have a backwards compatible app.
The 'qt515' part is missing libraries that are not included in the snap or base. They can be satisfied by adding the following entries to the existing stage-packages for this part:
- libdouble-conversion1
- libevent-2.1-6
- libhunspell-1.6-0
- libicu60
- libmysqlclient20
Thats why I tried downloading them from the archive ubuntu website:
Is there a particular reason you’re trying to do this with destructive mode? Running with destructive mode on a different platform to the base you’re using can result in a lot of issues - if you need to use destructive mode, I’d recommend firing up a VM that matches your snap’s base and running snapcraft inside of that.