Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to reenable after upgrading 2.15.1.1189 -> 3.3.2.1666 (via codexctl) #899

Open
TheSunCat opened this issue Jun 10, 2024 · 1 comment
Labels
bug Something isn't working install Installation scripts

Comments

@TheSunCat
Copy link

Describe the issue
I used codexctl to upgrade between the versions in the title, and it seemed to go well. After a reboot, I ran toltecctl reenable and saw several warning messages. Afterward, toltecctl was unavailable.

Expand to view full logs
root@reMarkable:~# toltecctl reenable
rm: can't remove '/home/root/.local/share/toltec/wget': No such file or directory
INFO:  Fetching secure wget
INFO:  Mounting /opt
Mounting '/home/root/.entware' over '/opt'
Created symlink /etc/systemd/system/local-fs.target.wants/opt.mount → /lib/systemd/system/opt.mount.
INFO:  Generating /opt/etc/opkg.conf
INFO:  Opkg update
Package toltec-deletions version 0.1-6 has no valid architecture, ignoring.
Package open-remarkable-shutdown version 1.0-3 has no valid architecture, ignoring.
Downloading https://bin.entware.net/armv7sf-k3.2/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/entware
Downloading https://toltec-dev.org/stable/rmall/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/toltec-rmall
Downloading https://toltec-dev.org/stable/rm2/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/toltec-rm2
Downloading https://toltec-dev.org/stable/rmallos3/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/toltec-rmallos3
Downloading https://toltec-dev.org/stable/rm2os3/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/toltec-rm2os3
INFO:  Reinstalling base packages
Updating package architecture for package: toltec-base
Updating package architecture for package: toltec-deletions
Updating package architecture for package: open-remarkable-shutdown
Removing package toltec-base from root...
Removing package toltec-deletions from root...
Removing package open-remarkable-shutdown from root...
Installing toltec-base (1.4-1) to root...
Installing toltec-deletions (0.1-6) to root...
Installing toltec-deletions (0.1-5) to root...
Downloading https://toltec-dev.org/stable/rm2os3/toltec-deletions_0.1-5_rm2os3.ipk
Configuring toltec-deletions.
Collected errors:
 * opkg_download_pkg: Package toltec-base is not available from any configured src.
 * opkg_install_pkg: Failed to download toltec-base. Perhaps you need to run 'opkg update'?
 * opkg_install_cmd: Cannot install package toltec-base.
 * opkg_download_pkg: Package toltec-deletions is not available from any configured src.
 * opkg_install_pkg: Failed to download toltec-deletions. Perhaps you need to run 'opkg update'?
 * opkg_install_cmd: Cannot install package toltec-deletions.
INFO:  Reinstalling packages with files on the root partition
Removing package xochitl from root...
Removing package toltec-bootstrap from root...
Removing package rm2fb-client from root...
Removing package reboot-guard from root...
Removing package entware-rc from root...
Removing package rm2-suspend-fix from root...
Removing package display from root...
make sure to disable / uninstall any launchers like draft, oxide or remux before
rebooting your tablet to complete the uninstallation
Removing package libvncclient from root...
Removing package toltec-deletions from root...
Installing xochitl (0.0.0-20) to root...
Downloading https://toltec-dev.org/stable/rmall/xochitl_0.0.0-20_rmall.ipk
Installing toltec-bootstrap (0.4.5-1) to root...
Installing rm2fb-client (1:0.0.33-2) to root...
Installing reboot-guard (1.0.1-8) to root...
Downloading https://toltec-dev.org/stable/rmall/reboot-guard_1.0.1-8_rmall.ipk
Installing xochitl (0.0.0-20) to root...
Installing entware-rc (0.1-1) to root...
Downloading https://toltec-dev.org/stable/rmall/entware-rc_0.1-1_rmall.ipk
Installing rm2-suspend-fix (0.0.0-3) to root...
Downloading https://toltec-dev.org/stable/rm2/rm2-suspend-fix_0.0.0-3_rm2.ipk
Installing display (1:0.0.33-2) to root...
Installing libvncclient (0.9.13-2) to root...
Downloading https://toltec-dev.org/stable/rmall/libvncclient_0.9.13-2_rmall.ipk
Installing toltec-deletions (0.1-6) to root...
Configuring xochitl.
Created symlink /etc/systemd/system/sync.service → /dev/null.
Created symlink /etc/systemd/system/multi-user.target.wants/[email protected] → /etc/systemd/system/[email protected].
Configuring reboot-guard.
Configuring libvncclient.
Configuring entware-rc.

You can use rcctl to manage services installed by entware
Configuring rm2-suspend-fix.
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for xochitl:
 * 	open-remarkable-shutdown
 * opkg_install_cmd: Cannot install package xochitl.
 * opkg_download_pkg: Package toltec-bootstrap is not available from any configured src.
 * opkg_install_pkg: Failed to download toltec-bootstrap. Perhaps you need to run 'opkg update'?
 * opkg_install_cmd: Cannot install package toltec-bootstrap.
 * opkg_download_pkg: Package rm2fb-client is not available from any configured src.
 * opkg_install_pkg: Failed to download rm2fb-client. Perhaps you need to run 'opkg update'?
 * opkg_install_cmd: Cannot install package rm2fb-client.
 * opkg_download_pkg: Package display is not available from any configured src.
 * opkg_install_pkg: Failed to download display. Perhaps you need to run 'opkg update'?
 * opkg_install_cmd: Cannot install package display.
 * opkg_download_pkg: Package toltec-deletions is not available from any configured src.
 * opkg_install_pkg: Failed to download toltec-deletions. Perhaps you need to run 'opkg update'?
 * opkg_install_cmd: Cannot install package toltec-deletions.
INFO:  Reconfiguring templatectl
Mounting '/home/root/.entware/share/remarkable/templates' over '/usr/share/remarkable/templates'
Created symlink /etc/systemd/system/local-fs.target.wants/usr-share-remarkable-templates.mount → /lib/systemd/system/usr-share-remarkable-templates.mount.
If you perform a system upgrade that adds new templates
Manual intervention may be required to handle adding the new templates
INFO:  Configuring bashrc

System information:
toltecctl status output:

-sh: toltecctl: command not found
@TheSunCat TheSunCat added bug Something isn't working install Installation scripts labels Jun 10, 2024
@Eeems
Copy link
Member

Eeems commented Jun 10, 2024

This appears to be related to #886, something is messing up the data stored in /opt/lib/opkg/status so that there are multiple entries for a package, or the architecture for the package doesn't match what's on the server.

This user was on testing and switched to stable, these packages are newer in testing than stable, so it can't find them when trying to reinstall. toltecctl switch-branch should try to do some extra cleanup around this kind of thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working install Installation scripts
Projects
None yet
Development

No branches or pull requests

2 participants