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

E: Unable to locate package google-drive-ocamlfuse #492

Closed
mahmoudSalim opened this issue Sep 17, 2018 · 21 comments
Closed

E: Unable to locate package google-drive-ocamlfuse #492

mahmoudSalim opened this issue Sep 17, 2018 · 21 comments

Comments

@mahmoudSalim
Copy link

!apt-get -y install -qq google-drive-ocamlfuse fuse

E: Unable to locate package google-drive-ocamlfuse

@darylfung96
Copy link

I am getting the same issue today

@Tvde1
Copy link

Tvde1 commented Sep 18, 2018

Same for me today. With code that has been running for a month every day.

@pjsudharshan
Copy link

I am facing the same issue! What's happening???? I am trying to install this from yesterday

@astrada
Copy link
Owner

astrada commented Sep 18, 2018

I just uploaded version 0.7.0. Have you tried running apt-get update again?

@Tvde1
Copy link

Tvde1 commented Sep 18, 2018

I have a python notebook that runs this every day:

# Install a Drive FUSE wrapper.
# https://github.com/astrada/google-drive-ocamlfuse
!apt-get install -y -qq software-properties-common python-software-properties module-init-tools > /dev/null
!add-apt-repository -y ppa:alessandro-strada/ppa > /dev/null
!apt-get update -qq > /dev/null
!apt-get -y install -qq google-drive-ocamlfuse fuse > /dev/null

And it strarted failing today. Do I need to check now?

@astrada
Copy link
Owner

astrada commented Sep 18, 2018

Which version of Ubuntu are you on?

@Tvde1
Copy link

Tvde1 commented Sep 18, 2018

I'm using colab notebooks so I don't know. How can I check?

@KKeishiro
Copy link

I've got the same issue on Google colab notebook.

@yisonglee
Copy link

Warning: apt-key output should not be parsed (stdout is not a terminal)
E: Unable to locate package google-drive-ocamlfuse
I just encountered the same problem when i run keras in colaboratory.

@mahmoudSalim
Copy link
Author

The solution is this using colab library
Thanks to Craig Citro
googlecolab/colabtools#276

Solution :
from google.colab import drive
drive.mount('/content/drive')

@Tvde1
Copy link

Tvde1 commented Sep 18, 2018

That is not a solution to the problem

@astrada
Copy link
Owner

astrada commented Sep 18, 2018

To find out which version of Ubuntu you are running, you can use this command: lsb_release -a

@pjsudharshan
Copy link

pjsudharshan commented Sep 18, 2018

Why is it failing since yesterday which kept working for months???

@astrada
Copy link
Owner

astrada commented Sep 18, 2018

Because I removed packages for zesty and artful, since they have reached end of life (https://wiki.ubuntu.com/Releases). If you cannot upgrade to bionic, you should download the package from the ppa (e.g. amd64) and install it with dpkg --install.

@jayjtao
Copy link

jayjtao commented Sep 19, 2018

@astrada need help - steps/details to do this on colab?

@astrada
Copy link
Owner

astrada commented Sep 19, 2018

@linxid
Copy link

linxid commented Sep 20, 2018

Solution:

from google.colab import drive
drive.mount('/content/drive')

For example,If you want to find your file:

import os
os.chdir("drive/My Drive/Colab/AIC")

@0xrushi
Copy link

0xrushi commented Sep 21, 2018

Solution:

from google.colab import drive
drive.mount('/content/drive')

For example,If you want to find your file:

import os
os.chdir("drive/My Drive/Colab/AIC")

This worked for 2 days for me ,now that is also not working :|

@linxid
Copy link

linxid commented Sep 21, 2018

Solution:

from google.colab import drive
drive.mount('/content/drive')

For example,If you want to find your file:

import os
os.chdir("drive/My Drive/Colab/AIC")

This worked for 2 days for me ,now that is also not working :|

This still worked for me,I am using Colab training NN model.

@RecepCil
Copy link

RecepCil commented Sep 22, 2018

The solution is this using colab library
Thanks to Craig Citro
googlecolab/colabtools#276

Solution :
from google.colab import drive
drive.mount('/content/drive')

I've got the same issue. I am new to Google Colab so this is a bit confusing for me. I tried your solution but it doesn't work for this problem. Have I done something wrong?

from google.colab import drive
drive.mount('/content/drive')

!apt-get install -y -qq software-properties-common python-software-properties module-init-tools
!add-apt-repository -y ppa:alessandro-strada/ppa 2>&1 > /dev/null
!apt-get update -qq 2>&1 > /dev/null
!apt-get -y install -qq google-drive-ocamlfuse fuse
from google.colab import auth
auth.authenticate_user()
from oauth2client.client import GoogleCredentials
creds = GoogleCredentials.get_application_default()
import getpass
!google-drive-ocamlfuse -headless -id={creds.client_id} -secret={creds.client_secret} < /dev/null 2>&1 | grep URL
vcode = getpass.getpass()
!echo {vcode} | google-drive-ocamlfuse -headless -id={creds.client_id} -secret={creds.client_secret}

@solesensei
Copy link

solesensei commented Oct 27, 2018

You should choose just one mounting method.

1. Using build-in Fuse

!echo 'Mounting...'
from google.colab import drive
drive.mount('/content/drive/')
!ls '/content/drive/My Drive'
!echo 'Mounted'

2. Using google-drive-ocamlfuse Fuse Driver

!echo 'Installing required software'
!apt-get install -y -qq software-properties-common module-init-tools 2>&1 > /dev/null
!echo 'Add apt-repository with Google.Drive Fuse'
!add-apt-repository -y ppa:alessandro-strada/ppa 2>&1 > /dev/null
!echo 'Updating packages...'
!apt-get update -y -qq
!echo 'Installing google-drive-ocamlfuse fuse...'
!apt-get install -y -qq google-drive-ocamlfuse fuse
!echo 'Authenticate Fuse in Google.Drive...'
from google.colab import auth
from oauth2client.client import GoogleCredentials
import getpass
auth.authenticate_user()
creds = GoogleCredentials.get_application_default()
!google-drive-ocamlfuse -headless -id={creds.client_id} -secret={creds.client_secret} < /dev/null 2>&1 | grep URL
vcode = getpass.getpass('Enter auth code here: ')
!echo {vcode} | google-drive-ocamlfuse -headless -id={creds.client_id} -secret={creds.client_secret}
!echo 'Authenticated!'
!echo 'Creating mount directory'
!mkdir ./drive2
!echo 'Mounting...'
!google-drive-ocamlfuse ./drive2
!ls ./drive2
!echo 'Mounted!'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests