arakasi72 / rtinst

seedbox installation script for Ubuntu and Debian systems
MIT License
1.22k stars 259 forks source link

Package not found errors and partial changes not reversed e.g. ports #59

Closed ghost closed 9 years ago

ghost commented 9 years ago

Doesn't it try to find and install packages if it is not found.

Downloading rtorrent source files rtinst.sh: line 430: svn: command not found

This is not even listed in dependencies.

Since the installation failed, the port changes were not reversed. The user can be locked out in case user misses to note the changes thinking installation failed hence changes would have been reversed.

Also what happens in the next run? Only uninstalled packages are installed or everything all over again, IP, user reset, port resets once again?

I tried it again and I was seeing the ooutput so it apparently didn't change user and ports but the errors just don't seem to understand.

Checked out revision 2711.

gzip: stdin: unexpected end of file tar: Child returned status 1 tar: Error is not recoverable: exiting now

I didn't face it on on a dedicated server 14.04 (64-bit). Right now I am on a VPS (32-bit). Can that be a problem? But as I see most of the issues are related to packages which I satisfies one by one but this seems sth different.

ghost commented 9 years ago

Retried - deleted /home/user/source and started again. But I am stuck here for good now: https://gist.github.com/qxlab/60517e8fab0746840280

harupong commented 9 years ago

I had the same issue, and recent commit c16d577e might be the cause.

That commit adds "unrar" to to-be-installed packages list, but there is no such package as "unrar". It's actually "unrar-free" which is already listed.

  1. Remove "unrar" from package_list variable in rtinst.sh
  2. Download previous version of rtinst.sh, like https://raw.githubusercontent.com/arakasi72/rtinst/6533dca1985d50830777e3a6085b888c6761d33d/rtinst.sh

I tried No.1 above, and it worked on Ubuntu 14.04 in a VPS enviornment.

ghost commented 9 years ago

Thanks @harupong.

I had the unrar issue but I think I am past that. I believe my install is failing line 430 of script.

However I will definitely try your method of older script file.

Wait a minute.. it worked :-)

I mean it installed successfully. Thanks a lot mate. Now I will try running/accessing things. Hope everything works fine.

harupong commented 9 years ago

:smile_cat:

rtinst.sh: line 430: svn: command not found

svn is a part of subversion package, which should get installed by rtinst.sh executing apt-get install. But the whole apt-get install operation fails due to unrar issue.

@arakasi72 could you tell us why "unrar" was added?

arakasi72 commented 9 years ago

reverted change, unrar removed.

Should now be working as before.

harupong commented 9 years ago

:smile: