Manjaro-Linux-on-Android icon indicating copy to clipboard operation
Manjaro-Linux-on-Android copied to clipboard

An error occurred (2). Please try again.

Open Ojigrande opened this issue 3 years ago • 22 comments

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.

Ojigrande avatar Oct 21 '21 15:10 Ojigrande

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

krmanik avatar Oct 23 '21 04:10 krmanik

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

Ojigrande avatar Oct 25 '21 09:10 Ojigrande

same bug on my device too Galaxy S10 Snapdragon

deniscerri avatar Nov 08 '21 07:11 deniscerri

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 avatar Nov 08 '21 11:11 krmanik

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

krmanik avatar Nov 17 '21 19:11 krmanik

@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)

mrfoxie avatar Mar 07 '22 17:03 mrfoxie

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

pkg update 
pkg upgrade

krmanik avatar Mar 10 '22 05:03 krmanik

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 avatar Mar 11 '22 09:03 mrfoxie

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

mrfoxie avatar Mar 17 '22 15:03 mrfoxie

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

shim80 avatar Mar 30 '22 09:03 shim80

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
  1. now select install and then point it to the directory you want to install
  2. 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
  3. now force stop and clean cache and relaunch
  4. after relaunching run those commands again to fix broken packages
pkg update --fix-missing
pkg upgrade -y
pkg full-upgrade -y
  1. now relaunch the manjaro script ./manjaro.sh
  2. this will solve your error of installing manjaro on termux using the script.

hope it will work

mrfoxie avatar Mar 30 '22 11:03 mrfoxie

I did everything, still doesn't work.

shim80 avatar Apr 21 '22 14:04 shim80

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

mrfoxie avatar Apr 22 '22 05:04 mrfoxie

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

deniscerri avatar Apr 22 '22 19:04 deniscerri

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 avatar Apr 24 '22 16:04 mrfoxie

@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.

mrfoxie avatar Apr 26 '22 12:04 mrfoxie

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.

krmanik avatar Apr 26 '22 13:04 krmanik

@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.

mrfoxie avatar Apr 26 '22 14:04 mrfoxie

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 avatar May 11 '22 20:05 AndreasBrostrom

solved it, manually installing proot, pv and pulseaudio

pkg install -y proot pv pulseaudio

allow you to continue to install.

AndreasBrostrom avatar May 11 '22 21:05 AndreasBrostrom

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

elenakrittik avatar Sep 12 '22 17:09 elenakrittik

same issue here...

daglaroglou avatar Sep 27 '22 22:09 daglaroglou