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

Fix for Ubuntu 24.04 users #343

Open
tebbbb opened this issue Sep 5, 2024 · 2 comments
Open

Fix for Ubuntu 24.04 users #343

tebbbb opened this issue Sep 5, 2024 · 2 comments

Comments

@tebbbb
Copy link

tebbbb commented Sep 5, 2024

mkdir dockstation
-> download the deb file into that directory
dpkg-deb -x dockstation_1.5.1_amd64.deb dockstation-modify
dpkg-deb -e dockstation_1.5.1_amd64.deb dockstation-modify/DEBIAN
nano dockstation-modify/DEBIAN/control (or use any other editor you like instead of nano)
-> delete the row with the dependencies and save
dpkg -b dockstation-modify dockstation-modified.deb
sudo dpkg -i dockstation-modified.deb

@tebbbb
Copy link
Author

tebbbb commented Sep 5, 2024

for those who are too lazy, here is a script that does all of that for you (including downloading the deb file):

#!/bin/bash

# Check if script is being run with sudo or as root
if [ "$EUID" -ne 0 ]; then
  echo "Please run this script as root or with sudo."
  exit 1
fi

# Variables
DIRECTORY="dockstation"
DEB_FILE="dockstation_1.5.1_amd64.deb"
DOWNLOAD_URL="https://github.com/DockStation/dockstation/releases/download/v1.5.1/dockstation_1.5.1_amd64.deb"
MODIFY_DIR="dockstation-modify"
MODIFIED_DEB="dockstation-modified.deb"

# Create directory
mkdir $DIRECTORY
cd $DIRECTORY

# Download the .deb file from the GitHub link
wget $DOWNLOAD_URL -O $DEB_FILE

# Extract the .deb file
dpkg-deb -x $DEB_FILE $MODIFY_DIR
dpkg-deb -e $DEB_FILE $MODIFY_DIR/DEBIAN

# Modify the control file to remove dependencies
sed -i '/^Depends:/d' $MODIFY_DIR/DEBIAN/control

# Rebuild the .deb package
dpkg -b $MODIFY_DIR $MODIFIED_DEB

# Install the modified .deb package
dpkg -i $MODIFIED_DEB

echo "Process completed successfully."

@werner-balonius
Copy link

for those who are too lazy, here is a script that does all of that for you (including downloading the deb file):

#!/bin/bash

# Check if script is being run with sudo or as root
if [ "$EUID" -ne 0 ]; then
  echo "Please run this script as root or with sudo."
  exit 1
fi

# Variables
DIRECTORY="dockstation"
DEB_FILE="dockstation_1.5.1_amd64.deb"
DOWNLOAD_URL="https://github.com/DockStation/dockstation/releases/download/v1.5.1/dockstation_1.5.1_amd64.deb"
MODIFY_DIR="dockstation-modify"
MODIFIED_DEB="dockstation-modified.deb"

# Create directory
mkdir $DIRECTORY
cd $DIRECTORY

# Download the .deb file from the GitHub link
wget $DOWNLOAD_URL -O $DEB_FILE

# Extract the .deb file
dpkg-deb -x $DEB_FILE $MODIFY_DIR
dpkg-deb -e $DEB_FILE $MODIFY_DIR/DEBIAN

# Modify the control file to remove dependencies
sed -i '/^Depends:/d' $MODIFY_DIR/DEBIAN/control

# Rebuild the .deb package
dpkg -b $MODIFY_DIR $MODIFIED_DEB

# Install the modified .deb package
dpkg -i $MODIFIED_DEB

echo "Process completed successfully."

Thank you very much!!!
It helps me a lot!!!

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