GoogleCloudPlatform/gcsfuse

apt update fails for Ubuntu18.04 Cosmic

IA-UoK opened this issue ยท 11 comments

When following the install instructions on an Ubuntu 18.04 cosmic VM on GCP, the apt-update fails saying...
"E: The repository 'http://packages.cloud.google.com/apt gcsfuse-cosmic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default."
The next steps fail as a result.
Any clues?

18.04 is bionic, not cosmic. Try gcsfuse-bionic in your apt source file.

To expand on the above comment, the source for gcsfuse is in /etc/apt/sources.list.d/gcsfuse.list

Change this line:
deb http://packages.cloud.google.com/apt gcsfuse-cosmic main

To:
deb http://packages.cloud.google.com/apt gcsfuse-bionic main

Run:
sudo apt-get update

Output should be:

...        
Get:7 http://packages.cloud.google.com/apt gcsfuse-bionic/main amd64 Packages [1962 B]
Fetched 169 kB in 1s (310 kB/s)                     
Reading package lists... Done

And then as per the readme:
sudo apt-get install gcsfuse

And bob is your uncle

I have the same problem on ubuntu 19.04

$ sudo apt-get update
Ign:1 http://packages.cloud.google.com/apt gcsfuse-disco InRelease
Hit:2 http://archive.canonical.com/ubuntu disco InRelease
Err:3 http://packages.cloud.google.com/apt gcsfuse-disco Release
404 Not Found [IP: 74.125.69.102 80]
Reading package lists... Done
E: The repository 'http://packages.cloud.google.com/apt gcsfuse-disco Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/gcsfuse.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/gcsfuse.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/gcsfuse.list:1

I already changed the file in the repository following this topic #319 (comment) and still the error continues.

can you help me?

This is on me. I need to create a new repository for the new Debian release.

ok thanks for the return.

When creating, please pass the link.

Thanks!

Hello @bjornleffler any update on this? I'm getting the same error for gcsfuse-disco:
The repository 'http://packages.cloud.google.com/apt gcsfuse-disco Release' does not have a Release file.

kebwi commented

I need a fix for this asap. How do I get around it while waiting for an update?

We also need a fix ASAP. Anyone have a way to resolve this, even if it's a temporary hack?

As a workaround to using the repository, you could just manually install the .deb file. From the instructions in https://github.com/GoogleCloudPlatform/gcsfuse/blob/master/docs/installing.md#older-releases-and-other-distributions (modified for the newer version 28):

curl -L -O https://github.com/GoogleCloudPlatform/gcsfuse/releases/download/v0.28.0/gcsfuse_0.28.0_amd64.deb
sudo dpkg --install gcsfuse_0.28.0_amd64.deb

Still working out the permissions to create new repositories. The procedure changed.

Installing the .deb file, as andrew-grasso@ suggested, should work.

This should be fixed. I can install gcsfuse on a Ubuntu 18 VM on GCE.