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

Toltec-bootstrap installation error #835

Closed
FoxtrotFaux opened this issue Feb 26, 2024 · 4 comments
Closed

Toltec-bootstrap installation error #835

FoxtrotFaux opened this issue Feb 26, 2024 · 4 comments
Labels
bug Something isn't working install Installation scripts

Comments

@FoxtrotFaux
Copy link

When running bootstrap, the downloads for the patched wget and the opkg binary proceed without issue, but the installation does not continue.

Steps to reproduce the behaviour:

  1. Connect device to wifi.
  2. SSH into device.
  3. Download the bootstrap script with wget http://toltec-dev.org/bootstrap

Installation should proceed as normal or spit out an error. The process was working as of 2024/02/23, but is not as of 2024/02/25.

Log:

root@reMarkable:~# echo "04a28483286f88c5c7f39e352afb62adc57f6162a29fd7e124d832205bb0980e  bootstrap" | sha256sum -c && bash bootstrap
bootstrap: OK
INFO:  Fetching secure wget
INFO:  Bootstrapping Opkg
2024-02-25 23:38:48 URL:https://bin.entware.net/armv7sf-k3.2/installer/opkg [752572/752572] -> "/home/root/.local/bin/opkg" [1]
2024-02-25 23:38:49 URL:https://toltec-dev.org/stable/rmall/toltec-bootstrap_0.2.3-1_rmall.ipk [6756/6756] -> "/tmp/toltec-bootstrap_0.2.3-1_rmall.ipk" [1]

Error when opkg install ... portion of script no longer has its errors redirected to /dev/null:

Unknown package 'toltec-bootstrap'.
Collected errors:
 * pkg_hash_check_unresolved: cannot find dependency coreutils-tsort for toltec-bootstrap
 * pkg_hash_check_unresolved: cannot find dependency toltec-base for toltec-bootstrap
 * pkg_hash_fetch_best_installation_candidate: Packages for toltec-bootstrap found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package toltec-bootstrap.
  • Device: ReMarkable 2
  • OS version: 2.15.1.1189

This device had toltec installed on it previously, but has been factory reset and updated twice before reverting to 2.15.1.1189. Execution does not proceed past opkg install ... portion of script due to error. As suggested by @Eeems , I submitted this issue and will walk through the script step by step to attempt to identify a cause.

@FoxtrotFaux FoxtrotFaux added bug Something isn't working install Installation scripts labels Feb 26, 2024
@Eeems
Copy link
Member

Eeems commented Feb 26, 2024

I can replicate this in the run-in-remarkable test action: https://github.com/Eeems-Org/run-in-remarkable-action/actions/runs/8041803942/job/21961567916

@FoxtrotFaux
Copy link
Author

Here is the opkg output with verbosity -V4.

INFO:  Fetching secure wget
INFO:  Bootstrapping Opkg
2024-02-26 06:21:36 URL:https://bin.entware.net/armv7sf-k3.2/installer/opkg [752572/752572] -> "/home/root/.local/bin/opkg" [1]
2024-02-26 06:21:38 URL:https://toltec-dev.org/stable/rmall/toltec-bootstrap_0.2.3-1_rmall.ipk [6756/6756] -> "/tmp/toltec-bootstrap_0.2.3-1_rmall.ipk" [1]
opkg_install_cmd: /tmp/toltec-bootstrap_0.2.3-1_rmall.ipk
pkg_init_from_file: applying abpkg flag to /tmp/toltec-bootstrap_0.2.3-1_rmall.ipk
opkg_prepare_url_for_install: Package toltec-bootstrap provided by hand (/tmp/toltec-bootstrap_0.2.3-1_rmall.ipk).
flag_related_packages: propagating pkg flag to dependent abpkg coreutils-tsort
flag_related_packages: propagating pkg flag to dependent abpkg toltec-base
pkg_vec_insert_merge: Adding new pkg=toltec-bootstrap version=0.2.3 arch=rmall.
pkg_hash_load_feeds: 
pkg_hash_load_package_details_helper: found yet incomplete flagged abpkg coreutils-tsort
pkg_hash_load_package_details_helper: found yet incomplete flagged abpkg toltec-base
pkg_hash_load_package_details: Found 2 packages requiring details, reloading feeds
pkg_hash_load_feeds: 
pkg_hash_load_package_details_helper: skipping already seen flagged abpkg coreutils-tsort
pkg_hash_load_package_details_helper: skipping already seen flagged abpkg toltec-base
pkg_hash_load_status_files: 
pkg_info_preinstall_check: Updating file owner list.
pkg_hash_fetch_best_installation_candidate: Best installation candidate for toltec-bootstrap:
pkg_hash_fetch_best_installation_candidate: Adding toltec-bootstrap to providers.
pkg_hash_fetch_best_installation_candidate: toltec-bootstrap arch=rmall arch_priority=200 version=0.2.3.
pkg_hash_fetch_unsatisfied_dependencies: satisfying_pkg=(nil)
pkg_hash_fetch_unsatisfied_dependencies: satisfying_pkg=(nil)
pkg_hash_fetch_unsatisfied_dependencies: satisfying_pkg=(nil)
pkg_hash_fetch_unsatisfied_dependencies: satisfying_pkg=(nil)
Unknown package 'toltec-bootstrap'.
opkg_configure_packages: Configuring unpacked packages.
opkg_configure_packages: Reordering packages before configuring them...
write_status_files_if_changed: Nothing to be done.
hash_table: pkg-hash, 12288 bytes
	n_buckets=1024, n_elements=3, n_collisions=0
	max_bucket_len=0, n_used_buckets=3, ave_bucket_len=1.00
	n_hits=3, n_misses=4
hash_table: file-hash, 12288 bytes
	n_buckets=1024, n_elements=0, n_collisions=0
	max_bucket_len=0, n_used_buckets=0, ave_bucket_len=0.00
	n_hits=0, n_misses=0
hash_table: obs-file-hash, 768 bytes
	n_buckets=64, n_elements=0, n_collisions=0
	max_bucket_len=0, n_used_buckets=0, ave_bucket_len=0.00
	n_hits=0, n_misses=0
Collected errors:
 * pkg_hash_check_unresolved: cannot find dependency coreutils-tsort for toltec-bootstrap
 * pkg_hash_check_unresolved: cannot find dependency toltec-base for toltec-bootstrap
 * pkg_hash_fetch_best_installation_candidate: Packages for toltec-bootstrap found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package toltec-bootstrap.

@Eeems
Copy link
Member

Eeems commented Feb 26, 2024

My guess is that the static opkg that entware provides for the install process has changed. For some reason, it's no longer respecting the --force-depends flag.

@Eeems
Copy link
Member

Eeems commented Feb 27, 2024

@Eeems Eeems reopened this Mar 25, 2024
@Eeems Eeems closed this as completed Mar 25, 2024
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