krmanik / Manjaro-Linux-on-Android

Install Manjaro on Android
73 stars 5 forks source link

An error occurred (2). Please try again. #10

Open Ojigrande opened 2 years ago

Ojigrande commented 2 years ago

Hello.

I have tried to use your script to install Manjaro on my tablet, but I get the error: An error occurred (2). Please try again.

krmanik commented 2 years ago

Hi, I have tested the script it working fine. What is architecture of your device?

Ojigrande commented 2 years ago

Lenovo tap P11 Pro (TB-J706F) uname shows next info: Linux localhost 4.14.117-perf+ #1 SMP PREEMPT Fri Apr 30 15:52:26 CST 2021 aarch64 Android

deniscerri commented 2 years ago

same bug on my device too Galaxy S10 Snapdragon

krmanik commented 2 years ago

Without physical devices it is hard to debug the error. I have tested it locally on all Android devices and it working. I may find more about error after testing more devices.

krmanik commented 2 years ago

@deniscerri @Ojigrande Use termux wakelock and keep screen lock Because in background download stop so it is giving error.

mrfoxie commented 2 years ago

@deniscerri @Ojigrande Use termux wakelock and keep screen lock Because in background download stop so it is giving error.

still it's give the same error Screenshot_20220307-222820_Termux it also may be due to this error

CANNOT LINK EXECUTABLE "curl": library "libssl.so.1.1" not found: needed by /data/data/com.termux/files/usr/lib/libssh2.so in namespace (default)
krmanik commented 2 years ago

Run the following in termux. It will solve the error.

pkg update 
pkg upgrade
mrfoxie commented 2 years ago

Run the following in termux. It will solve the error.

pkg update 
pkg upgrade

noo use I have already done that also I reinstall the app and script but still shows that error

mrfoxie commented 2 years ago

I think we should close this issue because I have resolved the problem by upgrading all the packages.

shim80 commented 2 years ago

What do you meant? I also upgraded everything using pkg upgrade && pkg update, but that doesn't change anything. I have a Galaxy Note 9

mrfoxie commented 2 years ago

Do the following steps it will solve your issue:

  1. uninstall the current version of termux
  2. download the app from f-droid. now install and run it
  3. run the following command pkg update && pkg upgrade -y && exit 0
  4. now relaunch the app and run pkg install curl wget git -y
  5. after installing those packages clone the repository
    wget https://raw.githubusercontent.com/krmanik/Manjaro-Linux-on-Android/master/manjaro.sh
    chmod +x manjaro.sh
    ./manjaro.sh
  6. now select install and then point it to the directory you want to install
  7. if its installation starts then good but if you're prompt with the same error again which is An error occurred (2). Please try again. then cancel the installing and exit termux
  8. now force stop and clean cache and relaunch
  9. after relaunching run those commands again to fix broken packages
    pkg update --fix-missing
    pkg upgrade -y
    pkg full-upgrade -y
  10. now relaunch the manjaro script ./manjaro.sh
  11. this will solve your error of installing manjaro on termux using the script.

hope it will work

shim80 commented 2 years ago

I did everything, still doesn't work.

mrfoxie commented 2 years ago

I did everything, still doesn't work.

It should work on all the device, I don't know why it's not working on your device. Just paste the following code and paste that log here

termux-info > log.md
deniscerri commented 2 years ago

What fixed it for me, was removing termux completely and updating the packages before trying to install it. Also make sure you are using the fdroid one, not the play store version

mrfoxie commented 2 years ago

I did everything, still doesn't work.

give me some time I will make a video on it so that you can see that steps for installing manjaro

mrfoxie commented 2 years ago

@krmanik I think this may be a bug because when I'm using my cell network then its works perfectly but as soon as I shift my network to any Wi-Fi connection then it give me error. So this is my theory that may be @Ojigrande or I'm using Wi-Fi then its not allowing me to download it. @Ojigrande can you tell me what kind of network your using while installing because I'm using my own cellular network to install Manjaro on my termux this will be really helpful to identify the problem.

krmanik commented 2 years ago

I think it may be/may be not the reason. Because I have just installed it over Wi-Fi.

The possible reason will be termux version and update of pkg.

mrfoxie commented 2 years ago

@krmanik I agree with your point but I also got the same error while I'm trying to install it on the Wi-Fi network after following all the steps I have mentioned above. I tried changing 2-3 Wi-Fi and got the same error so it is the problem of the network in my case.

AndreasBrostrom commented 2 years ago

Getting this error as well newly installed termux from F-droid.

Done above attempts with pkg and no effect either.

$ termux-info
Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PID=15747
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://termux.librehat.com/apt/termux-main/ stable main
# root-repo (sources.list.d/root.list)
deb https://packages.termux.org/apt/termux-root root stable
# x11-repo (sources.list.d/x11.list)
deb https://packages.termux.org/apt/termux-x11 x11 main
Updatable packages:                                                         All packages up to date
Android version:
10
Kernel build information:                                                   Linux localhost 4.4.205-perf+ #1 SMP PREEMPT Thu Oct 29 21:25:04 CST 2020 aarch64 Android
Device manufacturer:
OnePlus                                                                     Device model:                                                               ONEPLUS A5010
AndreasBrostrom commented 2 years ago

solved it, manually installing proot, pv and pulseaudio

pkg install -y proot pv pulseaudio

allow you to continue to install.

elenakrittik commented 2 years ago

I had same issue, and it resolved absolutely randomly and without any reason (i just re-ran manjaro.sh a few times). woo

daglaroglou commented 1 year ago

same issue here...