I created a snap package sourced from my github repo named ubuntunews. It compiled without any errors and installed it without errors either. However when I type in the command ubuntunews
to run it, it gives me an error bash: /usr/local/bin/ubuntunews: No such file or directory
which is weird because the snap path is /snap/bin/ubuntunews.
I think it's because I installed the ubuntunews as a regular package some time ago but I've uninstalled it now and removed the ubuntunews script from /usr/local/bin but the snap command still doesn't work and keeps on displaying the same error. How do I go around that, this is my first experience with building snap packages.
name: ubuntunews
version: '1.0'
summary: Get latest news from omgubuntu website
description: |
Webcraped omgubuntu website to get the latest news about your favourite
linux distro and it's flavours.
grade: devel
confinement: devmode
apps:
ubuntunews:
command: bin/ubuntunews
plugs: [network]
parts:
ubuntu-news:
source: https://github.com/Abugbilla/ubuntunews
source-type: git
plugin: python
python-version: python3
python-packages: [bs4]
@popey I did that and I was still getting the error. But I later found out that the issue was from the two conflicting paths for ubuntnews which are- /usr/local/bin/ubuntunews and /snap/bin/ubuntunews. To clear that I run
source ~./bashrc
so that I could only get /snap/bin/ubuntunews which is the path I actually wanted. But now I'm getting a new error/snap/ubuntunews/x1/usr/bin/python3: /lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.25' not found (required by /snap/ubuntunews/x1/usr/bin/python3)
It works and builds for me, but you're missing some dependencies. Perhaps you're missing
python-gi
.So I'd imagine you need at least:-