NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
chirpa
Mar 07, 2009Luminary
Running VirtualBox VM host on ReadyNAS Pro
What is VirtualBox? So, I got bored while laundry was going... and decided to see how well a virtual OS would run on the Pro. My first choice of VM was VirtualBox, just cause I'm familiar with it a...
MattyShack
Aug 08, 2012Tutor
See if this helps to clear and reset installed deb packages, then downgrade apt.
Matt
#######################################################################################
### Update Sources.list ###
mv /etc/apt/sources.list /etc/apt/sources.list.bak
rm -rf /etc/apt/sources.list
##########################################
sudo sh -c "cat >> /etc/apt/sources.list" <<EOF
deb http://www.readynas.com/packages 4.2.21/
deb http://www.readynas.com/packages 4.2.22/
deb http://archive.debian.org/debian etch main
#deb http://download.virtualbox.org/virtualbox/debian squeeze contrib non-free
#deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free
EOF
##########################################
gpg --keyserver pgpkeys.mit.edu --recv-key E9C74FEEA2098A6E && gpg -a --export E9C74FEEA2098A6E | sudo apt-key add -
gpg --keyserver pgpkeys.mit.edu --recv-key 54422A4B98AB5139 && gpg -a --export 54422A4B98AB5139 | sudo apt-key add -
gpg --keyserver pgpkeys.mit.edu --recv-key AED4B06F473041FA && gpg -a --export AED4B06F473041FA | sudo apt-key add -
# Setup Root Directory Storage Area
mkdir /root/src
mkdir /root/system
cp /etc/apt/sources.list* /root/system
### Refresh Packages from the APT repository ~ may help remove BADSIG messages ###
# Clear the APT Repositories
sudo killall apt apt-get aptitude
sudo -s -H
apt-get clean
rm -rf /var/lib/apt/lists/*
chmod 755 /var/lib/apt/lists
mkdir /var/lib/apt/lists/partial
chmod 755 /var/lib/apt/lists/partial
rm -rf /var/cache/apt/archives
mkdir -p /var/cache/apt/archives/partial
apt-get clean
# Replace File Locks
rm -rf /var/lib/dpkg/lock
sudo touch /var/lib/dpkg/lock
sudo chmod 640 /var/lib/dpkg/lock
rm -rf /var/lock/aptitude
sudo touch /var/lock/aptitude
sudo chmod 640 /var/lock/aptitude
rm -rf /var/lib/apt/lists/lock
sudo touch /var/lib/apt/lists/lock
sudo chmod 640 /var/lib/apt/lists/lock
rm -rf /var/cache/apt/archives/lock
sudo touch /var/cache/apt/archives/lock
sudo chmod 640 /var/cache/apt/archives/lock
# Fresh download of Repository Packages
apt-get update && apt-get upgrade
# Say 'Y'es to any recommended Fixes. It is OK if either apt-get or dpkg will be upgraded/downgraded
# But, make sure neither apt-get nor dpkg will be removed. If so the aBORT changes.
apt-get -f install
apt-get update
# packages needed after a clean install
apt-get install nano curl
## Note: You may need to downgrade apt-get to apt_0.6.46.4-0.1+etch1_i386.deb for the correct versions of deb files.
# Raidiator 4.2.21 upgrades apt-get to apt_0.7.20.2+lenny2_i386.deb. This may cause conflicts.
# Display apt-get Version
apt-get -v
# Force apt-get and dpkg Downgrade
apt-get --reinstall install apt=0.6.46.4-0.1+etch1 dpkg=1.13.26 dpkg-dev=1.13.26
# I use aptitude most of the time. It does a better job at resolving conflicts.
apt-get install aptitude
# Setup the Build Environment
apt-get install build-essential gcc
aptitude install libmagic-dev libpcre3-dev
aptitude install unzip par2 parchive bzip2 gpp libssl-dev zlibc zlib1g-dev p7zip p7zip-full
#######################################################################################
Matt
#######################################################################################
### Update Sources.list ###
mv /etc/apt/sources.list /etc/apt/sources.list.bak
rm -rf /etc/apt/sources.list
##########################################
sudo sh -c "cat >> /etc/apt/sources.list" <<EOF
deb http://www.readynas.com/packages 4.2.21/
deb http://www.readynas.com/packages 4.2.22/
deb http://archive.debian.org/debian etch main
#deb http://download.virtualbox.org/virtualbox/debian squeeze contrib non-free
#deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free
EOF
##########################################
gpg --keyserver pgpkeys.mit.edu --recv-key E9C74FEEA2098A6E && gpg -a --export E9C74FEEA2098A6E | sudo apt-key add -
gpg --keyserver pgpkeys.mit.edu --recv-key 54422A4B98AB5139 && gpg -a --export 54422A4B98AB5139 | sudo apt-key add -
gpg --keyserver pgpkeys.mit.edu --recv-key AED4B06F473041FA && gpg -a --export AED4B06F473041FA | sudo apt-key add -
# Setup Root Directory Storage Area
mkdir /root/src
mkdir /root/system
cp /etc/apt/sources.list* /root/system
### Refresh Packages from the APT repository ~ may help remove BADSIG messages ###
# Clear the APT Repositories
sudo killall apt apt-get aptitude
sudo -s -H
apt-get clean
rm -rf /var/lib/apt/lists/*
chmod 755 /var/lib/apt/lists
mkdir /var/lib/apt/lists/partial
chmod 755 /var/lib/apt/lists/partial
rm -rf /var/cache/apt/archives
mkdir -p /var/cache/apt/archives/partial
apt-get clean
# Replace File Locks
rm -rf /var/lib/dpkg/lock
sudo touch /var/lib/dpkg/lock
sudo chmod 640 /var/lib/dpkg/lock
rm -rf /var/lock/aptitude
sudo touch /var/lock/aptitude
sudo chmod 640 /var/lock/aptitude
rm -rf /var/lib/apt/lists/lock
sudo touch /var/lib/apt/lists/lock
sudo chmod 640 /var/lib/apt/lists/lock
rm -rf /var/cache/apt/archives/lock
sudo touch /var/cache/apt/archives/lock
sudo chmod 640 /var/cache/apt/archives/lock
# Fresh download of Repository Packages
apt-get update && apt-get upgrade
# Say 'Y'es to any recommended Fixes. It is OK if either apt-get or dpkg will be upgraded/downgraded
# But, make sure neither apt-get nor dpkg will be removed. If so the aBORT changes.
apt-get -f install
apt-get update
# packages needed after a clean install
apt-get install nano curl
## Note: You may need to downgrade apt-get to apt_0.6.46.4-0.1+etch1_i386.deb for the correct versions of deb files.
# Raidiator 4.2.21 upgrades apt-get to apt_0.7.20.2+lenny2_i386.deb. This may cause conflicts.
# Display apt-get Version
apt-get -v
# Force apt-get and dpkg Downgrade
apt-get --reinstall install apt=0.6.46.4-0.1+etch1 dpkg=1.13.26 dpkg-dev=1.13.26
# I use aptitude most of the time. It does a better job at resolving conflicts.
apt-get install aptitude
# Setup the Build Environment
apt-get install build-essential gcc
aptitude install libmagic-dev libpcre3-dev
aptitude install unzip par2 parchive bzip2 gpp libssl-dev zlibc zlib1g-dev p7zip p7zip-full
#######################################################################################
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!