29/08/2013

Requires installation of untrusted packages


Requires installation of untrusted packages

Originally uploaded here

I know I got trouble updating Quantum GIS patch files in the Ubuntu computer because recently it gave the above message. I sought the help of my son who likes to tinker in Open Source and Ubuntu where he recommended following Step 5 of this site. Me as usual, jumped into the deep end of the pool against the advice of a software specialist, another brother. Lazy me did a total copy and paste of the scripts but ended with an "abort" output. Then reading the first line of that section which requires one to copy and paste "one line at a time", things seem to work out fine. After the last line was entered, a restart is required. A recheck with the Software Updater gives a computer is up to date message. Yahoo!

sudo grep -R proxy /etc/apt/*
grep proxy  /etc/environment
echo $http_proxy
echo $ftp_proxy
grep proxy /etc/bash.bashrc
grep proxy ~/.bashrc
cat /etc/apt/apt.conf
sudo fuser -vvv /var/lib/dpkg/lock
cat /etc/lsb-release
uname -a
sudo rm /var/lib/apt/lists/lock 
sudo rm /var/lib/dpkg/lock
sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status  ||  sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
sudo rm -rf /var/lib/dpkg/updates/*
sudo rm -rf /var/lib/apt/lists
sudo rm /var/cache/apt/*.bin
sudo mkdir /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists/partial
LANG=C;sudo apt-get clean
LANG=C;sudo apt-get autoclean
LANG=C;sudo apt-get --purge autoremove
LANG=C;sudo apt-get --fix-missing update -o APT::Cache-Limit=100000000
sudo dpkg --configure -a
sudo dpkg --clear-avail
LANG=C;sudo apt-get -f install
LANG=C;sudo apt-get --fix-missing install
LANG=C;sudo apt-get update -o APT::Cache-Limit=100000000 && sudo apt-get dist-upgrade
find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

4 comments:

  1. Replies
    1. Well, now you know what to do, just that, for me this experience is recent so that's why this is something new for me

      Delete
  2. Thanks! It worked fine. Didn't even have to fix the missing keys. Just typing the sudo apt-get update command worked for me.

    ReplyDelete
    Replies
    1. Good for you but for others who tinker here and there and who knows what got added or minus along the way, I guess the advice here should be fine.

      Delete