diff --git a/setup/setup.sh b/setup/setup.sh index d5fd5ce..4953981 100755 --- a/setup/setup.sh +++ b/setup/setup.sh @@ -18,10 +18,19 @@ echo -e "${YELLOW}Setting up apt repositories...${NC}" # Install prerequisites sudo apt-get install -y wget gpg apt-transport-https -# Setup Nala repository +# Setup Nala repository - Try multiple methods echo -e "${YELLOW}Setting up Nala repository...${NC}" -curl -fsSL https://deb.volian.org/volian/scar.key | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/volian-archive-scar.gpg -echo "deb [arch=$(dpkg --print-architecture)] https://deb.volian.org/volian/ scar main" | sudo tee /etc/apt/sources.list.d/volian-archive-scar.list > /dev/null + +# First check if Nala is available in standard repositories (newer Ubuntu versions) +if apt-cache show nala &>/dev/null; then + echo -e "${GREEN}Nala is available in standard repositories${NC}" +else + # Try Ubuntu PPA as an alternative + echo -e "${YELLOW}Trying Nala from Ubuntu PPA...${NC}" + sudo apt-get update + sudo apt-get install -y software-properties-common + sudo add-apt-repository -y ppa:volitank/ppa +fi # Setup VS Code repository echo -e "${YELLOW}Setting up VS Code repository...${NC}"