Error Installing magic-wormhole

Dockerfile:2
Aug 22 05:52:47 PM --------------------
Aug 22 05:52:47 PM 1 | FROM mongo:4.2
Aug 22 05:52:47 PM 2 | >>> RUN apt update && apt install magic-wormhole
Aug 22 05:52:47 PM 3 |
Aug 22 05:52:47 PM --------------------
Aug 22 05:52:47 PM error: failed to solve: process “/bin/sh -c apt update && apt install magic-wormhole” did not complete successfully: exit code: 1

Trying to do a poc of exporting data but unable to install warmhole via shell nor via docker file am I missing anything please guide

Aim is to deploy a mongodb and then add some data to it and try exporting Data so in case In future we choose to migrate we can do It

Hi @Mitesh_Metha

The output you reported isn’t really enough to figure out what the problem is. Can you try on a test instance with apt-get instead of apt and also pass the -y flag (which makes apt-get behave as if you answered questions with yes without waiting for user input). More generally you may want to enable more output on both the shell and from the apt-* utilities.

root@srv-c:/# apt-get install magic-wormhole
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package magic-wormhole
root@srv-c:/# apt-get -y install magic-wormhole
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package magic-wormhole
root@srv-c:/# apt install magic-wormhole
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package magic-wormhole
root@srv-ck:/# apt -y install magic-wormhole
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package magic-wormhole
root@srv-c:/# sudo su
bash: sudo: command not found

I am just trying to export disk data on a private service and using following repo to install mongodb

not sure what state the instance was in, try

apt-get update
apt-get install -y magic-wormhole

If this does not work, can you show the output of apt-cache policy (to show configured repositories) as well?

1 Like

This Worked ! idk why i missed apt-get update command but that seems to make apt-get fetch magic-wormhole correctly

Ty