[Nexus 7 (2013) Q&A] ranger137:
I'm using UBports on Windows 10 to install Ubuntu Touch on a Nexus 7 2013 (Wi-Fi model). I'm not 100%, but I'm pretty sure the reason I keep getting an error is because I had previously installed LineageOS 18.1, which of course involves repartitioning the device.

Basically, I go through the process on UBports, everything seems to be going just fine, it goes through the "pushing files" stage, and then I get a message at the end telling me that the installation stopped due to an error. It seems that there is not enough space in the cache partition for whatever files it is trying to push to the device there. Here is the full error output from UBports:

Error: adb:push: Error: {"error":{"code":1},"stdout":"adb: error: failed to copy 'C:\\Users\\orile\\AppData\\Roaming\\ubports\\flo\\Ubuntu Touch\\ubports-869b254aae519be030f4e09ce361e5610e0937073f1bbd4c11542bf3ffec15f1.tar.xz' to '/cache/recovery/ubports-869b254aae519be030f4e09ce361e5610e0937073f1bbd4c11542bf3ffec15f1.tar.xz': remote No space left on device\r\nC:\\Users\\orile\\AppData\\Roaming\\ubports\\flo\\Ubuntu Touch\\ubports-869b254aae519be030f4e09ce361e5610e0937073f1bbd4c11542bf3ffec15f1.tar.xz: 1 file pushed, 0 skipped. 3.9 MB/s (367906388 bytes in 90.707s)\r\nC:\\Users\\orile\\AppData\\Roaming\\ubports\\flo\\Ubuntu Touch\\ubports-869b254aae519be030f4e09ce361e5610e0937073f1bbd4c11542bf3ffec15f1.tar.xz.asc: 1 file pushed, 0 skipped. 0.0 MB/s (488 bytes in 0.511s)\r\nC:\\Users\\orile\\AppData\\Roaming\\ubports\\flo\\Ubuntu Touch\\device-56ed3357a1fb36d89fdec14ef78a69203fad69f8696e87ccf4a782cc1762077c.tar.xz: 1 file pushed, 0 skipped. 2.6 MB/s (65601492 bytes in 24.089s)\r\nC:\\Users\\orile\\AppData\\Roaming\\ubports\\flo\\Ubuntu Touch\\device-56ed3357a1fb36d89fdec14ef78a69203fad69f8696e87ccf4a782cc1762077c.tar.xz.asc: 1 file pushed, 0 skipped. 0.0 MB/s (488 bytes in 0.046s)\r\nC:\\Users\\orile\\AppData\\Roaming\\ubports\\flo\\Ubuntu Touch\\keyring-28992f008be20d562ea06745f563d3abe00b08da1b16e5b92e448e2d4ba21e9f.tar.xz: 1 file pushed, 0 skipped. 0.2 MB/s (1564 bytes in 0.009s)\r\nC:\\Users\\orile\\AppData\\Roaming\\ubports\\flo\\Ubuntu Touch\\keyring-28992f008be20d562ea06745f563d3abe00b08da1b16e5b92e448e2d4ba21e9f.tar.xz.asc: 1 file pushed, 0 skipped. 0.0 MB/s (488 bytes in 0.082s)\r\nC:\\Users\\orile\\AppData\\Roaming\\ubports\\flo\\Ubuntu Touch\\version-16.tar.xz: 1 file pushed, 0 skipped. 0.1 MB/s (468 bytes in 0.004s)\r\nC:\\Users\\orile\\AppData\\Roaming\\ubports\\flo\\Ubuntu Touch\\version-16.tar.xz.asc: 1 file pushed, 0 skipped. 0.0 MB/s (488 bytes in 0.040s)\r\nC:\\Users\\orile\\AppData\\Roaming\\ubports\\flo\\Ubuntu Touch\\image-signing.tar.xz: 1 file pushed, 0 skipped. 0.0 MB/s (940 bytes in 0.400s)\r\nC:\\Users\\orile\\AppData\\Roaming\\ubports\\flo\\Ubuntu Touch\\image-signing.tar.xz.asc: 1 file pushed, 0 skipped. 0.0 MB/s (488 bytes in 0.057s)\r\nC:\\Users\\orile\\AppData\\Roaming\\ubports\\flo\\Ubuntu Touch\\image-master.tar.xz: 1 file pushed, 0 skipped. 0.0 MB/s (900 bytes in 0.047s)\r\nC:\\Users\\orile\\AppData\\Roaming\\ubports\\flo\\Ubuntu Touch\\image-master.tar.xz.asc: 1 file pushed, 0 skipped. 0.0 MB/s (488 bytes in 0.041s)\r\nC:\\Users\\orile\\AppData\\Roaming\\ubports\\flo\\Ubuntu Touch\\ubuntu_command: 1 file pushed, 0 skipped. 0.0 MB/s (727 bytes in 0.138s)\r\n13 files pushed, 0 skipped. 3.5 MB/s (433515407 bytes in 118.852s)"}

Using TWRP I can see that the cache partition on the device only has 71 MB of space total, whereas the size of all these files is significantly more than that. I also tried following this guide: https://xdaforums.com/t/repartition-nexus-7-2013-repartition-flo-deb-16gb-32gb-ua-twrp.3844386/ to to try to restore stock partitions first, but I still get the same error. Unfortunately I didn't check what the cache size was before following this guide, but I went through every step and it did seem to work without issues. So the only thing left I can think of, unless there is another method that I'm not finding, is to manually resize the cache to be large enough to fit these files, but I have no idea how to do that. I only found someone who said they did this using parted and it worked, but they didn't explain the process at all, and I simply have no idea how to do this. I don't have experience using parted for anything, let alone to mess around with Android partitions.