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

Can't install google-cloud-sdk-cloud-run-proxy package #31

Open
jlenuffgsoi opened this issue Nov 15, 2023 · 2 comments
Open

Can't install google-cloud-sdk-cloud-run-proxy package #31

jlenuffgsoi opened this issue Nov 15, 2023 · 2 comments

Comments

@jlenuffgsoi
Copy link

Following the GCP documentation, I can't successfully install the google-cloud-sdk-cloud-run-proxy package.

Here is my environment :

$ cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

First of all, when I simply want to launch the Cloud Run proxy, here is the message :

$ gcloud run services proxy myservice --project myproject --region europe-west1
Pausing command execution:

This command requires the `cloud-run-proxy` component to be installed. Would you like to install the `cloud-run-proxy` component to continue command execution? (Y/n)?  

ERROR: (gcloud.run.services.proxy) 
You cannot perform this action because the Google Cloud CLI component manager 
is disabled for this installation. You can run the following command 
to achieve the same result for this installation: 

sudo apt-get install google-cloud-sdk-cloud-run-proxy

So, I've successfully updated/upgraded my distro with sudo apt update and sudo apt upgrade.

And then, when I want to install it, I encounter this error :

$ sudo apt install google-cloud-sdk-cloud-run-proxy
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  google-cloud-sdk
Suggested packages:
  google-cloud-sdk-app-engine-java google-cloud-sdk-app-engine-python google-cloud-sdk-pubsub-emulator google-cloud-sdk-bigtable-emulator google-cloud-sdk-datastore-emulator
The following NEW packages will be installed:
  google-cloud-sdk google-cloud-sdk-cloud-run-proxy
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/166 MB of archives.
After this operation, 826 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
(Reading database ... 66561 files and directories currently installed.)
Preparing to unpack .../google-cloud-sdk_455.0.0-0_all.deb ...

Progress: [  0%] [........................................................................................................................................................................................................................] 
Unpacking google-cloud-sdk (455.0.0-0) ...................................................................................................................................................................................................] 
dpkg: error processing archive /var/cache/apt/archives/google-cloud-sdk_455.0.0-0_all.deb (--unpack):
 trying to overwrite '/usr/share/google-cloud-sdk/README', which is also in package google-cloud-cli 455.0.0-0
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Selecting previously unselected package google-cloud-sdk-cloud-run-proxy.
Preparing to unpack .../google-cloud-sdk-cloud-run-proxy_455.0.0-0_amd64.deb ...

Unpacking google-cloud-sdk-cloud-run-proxy (455.0.0-0) ...#######.........................................................................................................................................................................] 

Errors were encountered while processing:################################################.................................................................................................................................................] 
 /var/cache/apt/archives/google-cloud-sdk_455.0.0-0_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
@jlenuffgsoi
Copy link
Author

Maybe this another issue is related.

@shinonome-pickles
Copy link

Have you already tried to install google-cloud-cli-cloud-run-proxy which has a similar name to google-cloud-sdk-cloud-run-proxy? (listed in the 4th step of the installation process in this document)

  1. remove 'sdk' module
    $ sudo apt purge google-cloud-sdk-cloud-run-proxy
    
  2. install 'cli' module
    $ sudo apt install google-cloud-cli-cloud-run-proxy
    

This worked for me.

I encountered the same problem a few days ago. Though I don't know why the installation fails, I noticed this similar name when I was checking how to install additional modules.

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

2 participants