Unable to install Wireguard on Snapshot Build

opkg update
opkg install wireguard

Getting following error:

Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for wireguard:
 *      kernel (= 5.4.85-1-58b5abfd02b97ae62b3c10ea85105d70)
 * opkg_install_cmd: Cannot install package wireguard.

Using snapshot build from here.

Is there way to install Wireguard?

Also, when install curl, getting following error:

Collected errors:
 * wfopen: //usr/lib/opkg/info/libcurl4.control: Read-only file system.
 * wfopen: //usr/lib/opkg/info/libcurl4.postinst: Read-only file system.
 * wfopen: //usr/lib/opkg/info/libcurl4.prerm: Read-only file system.

Maybe they are related?!

I'm using snapshot build since release is not available for my hardware yet, also I can build one by myself.

do you have enough space? RO filesystem issues often occur when out of space.
what is the output of the following two commands

mount
df -h
1 Like
root@OpenWrt:~# mount
proc on /proc type proc (ro,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
overlayfs:/overlay on / type overlay (ro,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
tmpfs on /dev type tmpfs (ro,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (ro,relatime,mode=600,ptmxmode=000)

root@OpenWrt:~# df -h
Filesystem                Size      Used Available Use% Mounted on
tmpfs                   929.3M     10.6M    918.6M   1% /tmp
overlayfs:/overlay       92.5M     20.5M     65.0M  24% /
tmpfs                   512.0K         0    512.0K   0% /dev

So you have enough space, clearly. But your filesystem is mounted ro.

Try issuing
mount_root

1 Like

Same, even after mount_root

OpenWRT snapshot image is Squashfs , according to wiki:
Squashfs is a compressed read-only file system for Linux.

Is this a possible reason?

I can install other packages, for example ipset w/o an error

squashfs is indeed RO, but that is the purpose of the overlay -- the overlay should mount as rw and will normally contain all files changed or added by the user (including config files).

Is it an option for you to run the standard release build? 19.07.5 is the latest.

1 Like

Only snapshot is available for Raspberry 4B

1 Like
This happens very easily when you are using a snapshot image or a self-compiled image.

No it makes sense, thanks.

Solution according to the page:

Solution: Wait some days, then check if the packages are being built again.

If you have self-compiled image, like I do:

Do not install packages after flashing, but include them in your image.

This is true IF:

if you are using a snapshot image, and the snapshot packages are missing in current builds.

I don't believe that this is an issue at the moment.
But yes, building your own image makes this easy -- you can include all the packages you need at the outset.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.