flathub / com.sublimetext.three

https://flathub.org/apps/details/com.sublimetext.three
6 stars 4 forks source link

Error with "Wrong size for extra data" on Amd64 #20

Closed adrianteri closed 3 years ago

adrianteri commented 3 years ago

I have a similar issue to this Minecraft's FlatHub repo.

Screenshot from 2020-10-01 03-22-02

FilBot3 commented 3 years ago

I am also getting this error when attempting to install on Pop!_OS/Ubuntu

➜  ~ flatpak --user install com.sublimetext.three
Looking for matches…
Found similar ref(s) for ‘com.sublimetext.three’ in remote ‘flathub’ (user).
Use this remote? [Y/n]: y

com.sublimetext.three permissions:
    ipc     network     fallback-x11     wayland     x11     dri     file access [1]     dbus access [2]

    [1] host
    [2] org.gnome.SettingsDaemon

        ID                             Branch          Op          Remote          Download
 1. [✗] com.sublimetext.three          stable          i           flathub         10.3 MB / 10.2 MB

Error: Wrong size for extra data http://packagecontrol.io/Package%20Control.sublime-package
error: Failed to install com.sublimetext.three: Wrong size for extra data http://packagecontrol.io/Package%20Control.sublime-package

image

ptomato commented 3 years ago

It seems that Package Control released a new version 3.4.0 a few days ago, and quietly replaced the existing file in the download location... so this is working as intended, "protecting" your system from a potentially malicious file with unexpected contents! :joy:

I can update the signature, but I wonder if we can instead get away with not pre-installing Package Control at all, now that Sublime Text has an actual in-app install process for Package Control?

FilBot3 commented 3 years ago

I don't have an issue with removing Package Control. Would that update the Flatpak itself once installed and would it persist or would it reset everytime you open the editor?

ptomato commented 3 years ago

I'd have to test it, but I expect that Package Control would be gone the next time you opened the app after upgrading it from Flathub, and then once you reinstalled Package Control via the menu item, it would remain installed thereafter.

(Maybe it's not such a good idea after all to make an upgrade that silently uninstalls Package Control, though.)