astrada / google-drive-ocamlfuse

FUSE filesystem over Google Drive
https://astrada.github.io/google-drive-ocamlfuse/
MIT License
5.56k stars 353 forks source link

Can't install normally, via opam, nor debian stretch on GCP #569

Closed BigTimeStats closed 5 years ago

BigTimeStats commented 5 years ago

I tried the regular install method and get "no valid OpenPGP data found."

xxx@instance-1:~$ sudo add-apt-repository ppa:alessandro-strada/ppa
 Mount Google Drive on Ubuntu (via FUSE)
 More info: https://launchpad.net/~alessandro-strada/+archive/ubuntu/ppa
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keybox '/tmp/tmpy4s7ao4w/pubring.gpg' created
gpg: /tmp/tmpy4s7ao4w/trustdb.gpg: trustdb created
gpg: key AD5F235DF639B041: public key "Launchpad PPA for Alessandro Strada" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: no valid OpenPGP data found.

I tried to install via opam and then get error: "-bash: google-drive-ocamlfuse: command not found"

xxx@instance-1:~$ opam init
OPAM has already been initialized.
In normal operation, OPAM only alters files within ~/.opam.

During this initialisation, you can allow OPAM to add information to two
other files for best results. You can also make these additions manually
if you wish.

If you agree, OPAM will modify:

  - ~/.profile (or a file you specify) to set the right environment
    variables and to load the auto-completion scripts for your shell (bash)
    on startup. Specifically, it checks for and appends the following line:

    . /home/xxx/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true

  - ~/.ocamlinit to ensure that non-system installations of `ocamlfind`
    (i.e. those installed by OPAM) will work correctly when running the
    OCaml toplevel. It does this by adding $OCAML_TOPLEVEL_PATH to the list
    of include directories.

If you choose to not configure your system now, you can either configure
OPAM manually (instructions will be displayed) or launch the automatic setup
later by running:

   opam config setup -a

Do you want OPAM to modify ~/.profile and ~/.ocamlinit?
(default is 'no', use 'f' to name a file other than ~/.profile)
    [N/y/f] y

User configuration:
  Generating ~/.ocamlinit.
  Updating ~/.profile.
Global configuration:
  ~/.opam/opam-init/init.sh is already up-to-date.
  ~/.opam/opam-init/init.zsh is already up-to-date.
  ~/.opam/opam-init/init.csh is already up-to-date.
  ~/.opam/opam-init/init.fish is already up-to-date.
# To setup the new switch in the current shell, you need to run:
eval `opam config env`
xxx@instance-1:~$ opam update

=-=- Updating package repositories =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[default] synchronized from https://opam.ocaml.org/1.2.2
xxx@instance-1:~$ opam install depext
[NOTE] Package depext is already installed (current version is 1.0.5).
xxx@instance-1:~$ opam depext google-drive-ocamlfuse
# Detecting depexts using flags: x86_64 linux debian
# The following system packages are needed:
#  - camlp4-extra
#  - debianutils
#  - libcurl4-gnutls-dev
#  - libfuse-dev
#  - libgmp-dev
#  - libsqlite3-dev
#  - m4
#  - perl
#  - pkg-config
#  - zlib1g-dev
# All required OS packages found.
xxx@instance-1:~$ opam install google-drive-ocamlfuse
[NOTE] Package google-drive-ocamlfuse is already installed (current version is
       0.6.23).
xxx@instance-1:~$ google-drive-ocamlfuse
-bash: google-drive-ocamlfuse: command not found

I also tried to install via Debian stretch with no luck via the wiki: https://github.com/astrada/google-drive-ocamlfuse/wiki/Installation "google-drive-ocamlfuse : Depends: libc6 (>= 2.29) but 2.24-11+deb9u4 is to be installed E: Unable to correct problems, you have held broken packages."

xxx@instance-1:~$ sudo apt install software-properties-common dirmngr
Reading package lists... Done
Building dependency tree       
Reading state information... Done
dirmngr is already the newest version (2.1.18-8~deb9u4).
software-properties-common is already the newest version (0.96.20.2-1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
xxx@instance-1:~$ cat ../../etc/apt/sources.list.d/alessandro-strada-ubuntu-ppa-bionic.list
deb http://ppa.launchpad.net/alessandro-strada/ppa/ubuntu xenial main
deb-src http://ppa.launchpad.net/alessandro-strada/ppa/ubuntu xenial main
xxx@instance-1:~$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AD5F235DF639B041
Executing: /tmp/apt-key-gpghome.mAUVQszMCN/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys AD5F235DF639B041
gpg: key AD5F235DF639B041: "Launchpad PPA for Alessandro Strada" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
xxx@instance-1:~$ sudo apt update
Ign:1 http://deb.debian.org/debian stretch InRelease
Hit:2 http://deb.debian.org/debian stretch-updates InRelease
Hit:3 http://deb.debian.org/debian stretch-backports InRelease
Hit:4 http://deb.debian.org/debian stretch Release 
Hit:5 http://security.debian.org stretch/updates InRelease                    
Hit:6 http://packages.cloud.google.com/apt cloud-sdk-stretch InRelease              
Hit:7 http://packages.cloud.google.com/apt google-compute-engine-stretch-stable InRelease
Hit:8 http://packages.cloud.google.com/apt google-cloud-packages-archive-keyring-stretch InRelease
Hit:9 http://ppa.launchpad.net/alessandro-strada/ppa/ubuntu xenial InRelease
Hit:11 http://ppa.launchpad.net/alessandro-strada/ppa/ubuntu eoan InRelease   
Reading package lists... Done 
Building dependency tree       
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
xxx@instance-1:~$ sudo apt install google-drive-ocamlfuse
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 google-drive-ocamlfuse : Depends: libc6 (>= 2.29) but 2.24-11+deb9u4 is to be installed
E: Unable to correct problems, you have held broken packages.

Working on GCP:

xxx@instance-1:~$ cat ../../etc/*release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Thanks for any help

astrada commented 5 years ago

[default] synchronized from https://opam.ocaml.org/1.2.2

Unfortunately your opam version is too old. You should install opam 2 (http://opam.ocaml.org/doc/Install.html). And after that you should install an updated OCaml compiler (e.g.: opam switch create 4.08.0).

BigTimeStats commented 5 years ago

Thanks for taking a look @astrada. I was able to install opam 2:

xxx@instance-1:~$ opam --version
2.0.5

I'm getting errors when running opam switch create 4.08.0

xxx@instance-1:~$ opam switch create 4.08.0

<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ocaml-base-compiler.4.08.0] downloaded from cache at https://opam.ocaml.org/cache

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
∗ installed base-bigarray.base
∗ installed base-threads.base
∗ installed base-unix.base
[ERROR] The compilation of ocaml-base-compiler failed at
        "/home/xxx/.opam/opam-init/hooks/sandbox.sh build ./configure
        --prefix=/home/xxx/.opam/4.08.0 -C".

#=== ERROR while compiling ocaml-base-compiler.4.08.0 =========================#
# context     2.0.5 | linux/x86_64 |  | https://opam.ocaml.org/#dc446ff5
# path        ~/.opam/4.08.0/.opam-switch/build/ocaml-base-compiler.4.08.0
# command     ~/.opam/opam-init/hooks/sandbox.sh build ./configure --prefix=/home/xxx/.opam/4.08.0 -C
# exit-code   10
# env-file    ~/.opam/log/ocaml-base-compiler-13787-a71bb4.env
# output-file ~/.opam/log/ocaml-base-compiler-13787-a71bb4.out
### output ###
# The 'bwrap' command was not found. Install 'bubblewrap' on your system, or
# disable sandboxing in ~/.opam/config at your own risk.
# See https://github.com/projectatomic/bubblewrap for bwrap details.
# For 'bwrap' use in opam, see the FAQ:
#   https://opam.ocaml.org/doc/2.0/FAQ.html#Why-does-opam-require-bwrap

<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build ocaml-base-compiler 4.08.0
└─ 
┌─ The following changes have been performed (the rest was aborted)
│ ∗ install base-bigarray base
│ ∗ install base-threads  base
│ ∗ install base-unix     base
└─ 

<><> ocaml-base-compiler.4.08.0 troubleshooting <><><><><><><><><><><><><><><><>
=> A failure in the middle of the build may be caused by build parallelism
      (enabled by default).
      Please file a bug report at https://github.com/ocaml/ocaml/issues
=> You can try installing again including --jobs=1
      to force a sequential build instead.
# Run eval $(opam env) to update the current shell environment
Switch initialisation failed: clean up? ('n' will leave the switch partially
installed) [Y/n] Y

I also tried leaving switch partially installed to no avail:

xxx@instance-1:~$ opam switch create 4.08.0
[ERROR] There already is an installed switch named 4.08.0
astrada commented 5 years ago

The 'bwrap' command was not found. Install 'bubblewrap' on your system, or disable sandboxing in ~/.opam/config at your own risk.

You need to install package bubblewrap.

BigTimeStats commented 5 years ago

@astrada Thanks, gave installing bubblewrap a try and failed... getting configure: error: *** POSIX caps headers not found. The errors just keep compounding at this point. Is there any reason why sudo add-apt-repository ppa:alessandro-strada/ppa doesn't work as per the above?

astrada commented 5 years ago

gave installing bubblewrap a try and failed

You should install bubblewrap with apt.

why sudo add-apt-repository ppa:alessandro-strada/ppa doesn't work as per the above?

Because the ppa is for Ubuntu distros.

BigTimeStats commented 5 years ago

Thanks, going to just re-roll to ubuntu. Any instance/version you recommend on GCP?

astrada commented 5 years ago

I think Ubuntu 18.04 LTS is the safest choice.

BigTimeStats commented 5 years ago

Awesome thanks for the help.. install worked on Ubuntu 18.04

Feel free to close