Fix Nala repository setup in setup.sh

- Changed Nala installation approach to use more reliable methods
- First try to use Nala from standard repositories if available
- Fall back to Ubuntu PPA if not available in standard repos
- Removed reliance on the Volian repository key that was causing 404 errors
This commit is contained in:
Peter Wood
2025-05-12 07:08:48 -04:00
parent 0cd9c5219d
commit 3c7307ed48

View File

@@ -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}"