unable to upgrade

Asked by akhi

matrix@matrix-HP-dx2080-MT-GN203AV:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
[sudo] password for matrix:
matrix@matrix-HP-dx2080-MT-GN203AV:~$ ubuntu-support-status
Support status summary of 'matrix-HP-dx2080-MT-GN203AV':

You have 1544 packages (99.7%) that can not/no-longer be downloaded
You have 4 packages (0.3%) that are unsupported

Run with --show-unsupported, --show-supported or --show-all to see more details
matrix@matrix-HP-dx2080-MT-GN203AV:~$ cat /etc/dpkg/dpkg.cfg.d/multiarch
cat: /etc/dpkg/dpkg.cfg.d/multiarch: No such file or directory
matrix@matrix-HP-dx2080-MT-GN203AV:~$ dpkg --print-foreign-architectures

matrix@matrix-HP-dx2080-MT-GN203AV:~$ sudo grep -R proxy /etc/apt/*
matrix@matrix-HP-dx2080-MT-GN203AV:~$ grep proxy /etc/environment
matrix@matrix-HP-dx2080-MT-GN203AV:~$ echo $http_proxy

matrix@matrix-HP-dx2080-MT-GN203AV:~$ echo $ftp_proxy

matrix@matrix-HP-dx2080-MT-GN203AV:~$ grep proxy /etc/bash.bashrc
matrix@matrix-HP-dx2080-MT-GN203AV:~$ grep proxy ~/.bashrc
matrix@matrix-HP-dx2080-MT-GN203AV:~$ cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
matrix@matrix-HP-dx2080-MT-GN203AV:~$ sudo fuser -vvv /var/lib/dpkg/lock
                     USER PID ACCESS COMMAND
/var/lib/dpkg/lock: root 3131 F.... dpkg
matrix@matrix-HP-dx2080-MT-GN203AV:~$ sudo fuser -vvv /var/cache/apt/archives/lock
                     USER PID ACCESS COMMAND
/var/cache/apt/archives/lock:
                     root 3123 F.... apt-get
matrix@matrix-HP-dx2080-MT-GN203AV:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.4 LTS"
matrix@matrix-HP-dx2080-MT-GN203AV:~$ uname -a
Linux matrix-HP-dx2080-MT-GN203AV 3.2.0-61-generic-pae #92-Ubuntu SMP Tue Apr 1 00:10:04 UTC 2014 i686 i686 i386 GNU/Linux
matrix@matrix-HP-dx2080-MT-GN203AV:~$ sudo rm /var/lib/apt/lists/lock
matrix@matrix-HP-dx2080-MT-GN203AV:~$ sudo rm /var/cache/apt/archives/lock
matrix@matrix-HP-dx2080-MT-GN203AV:~$ sudo rm /var/lib/dpkg/lock
matrix@matrix-HP-dx2080-MT-GN203AV:~$ sudo touch /var/lib/dpkg/lock
matrix@matrix-HP-dx2080-MT-GN203AV:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
matrix@matrix-HP-dx2080-MT-GN203AV:~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
matrix@matrix-HP-dx2080-MT-GN203AV:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
matrix@matrix-HP-dx2080-MT-GN203AV:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
mv: cannot stat `/var/lib/dpkg/available': No such file or directory
matrix@matrix-HP-dx2080-MT-GN203AV:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
matrix@matrix-HP-dx2080-MT-GN203AV:~$ sudo rm -rf /var/lib/dpkg/updates/*
matrix@matrix-HP-dx2080-MT-GN203AV:~$ sudo rm -rf /var/lib/apt/lists
matrix@matrix-HP-dx2080-MT-GN203AV:~$ sudo rm /var/cache/apt/*.bin
matrix@matrix-HP-dx2080-MT-GN203AV:~$ sudo mkdir /var/lib/apt/lists
matrix@matrix-HP-dx2080-MT-GN203AV:~$ sudo mkdir /var/lib/apt/lists/partial
matrix@matrix-HP-dx2080-MT-GN203AV:~$ LANG=C;sudo apt-get clean
matrix@matrix-HP-dx2080-MT-GN203AV:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
matrix@matrix-HP-dx2080-MT-GN203AV:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  language-pack-kde-en* language-pack-kde-en-base* openjdk-7-jre-lib*
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
29 not fully installed or removed.
After this operation, 3627 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 418577 files and directories currently installed.)
Removing openjdk-7-jre-lib ...
Removing language-pack-kde-en-base ...
Purging configuration files for language-pack-kde-en-base ...
Removing language-pack-kde-en ...
Processing triggers for software-center ...
INFO:softwarecenter.db.update:no translation information in database needed
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Setting up openjdk-7-jre-headless (7u55-2.4.7-1ubuntu1~0.12.04.2) ...

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
MadhuSoodanan (mt-madhu) said :
#1

You can have a look at this link and you may follow it. It was my question. It took hours to complete the process.
https://answers.launchpad.net/ubuntu/+question/247260

I used the following command

sudo update-manager -d

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

What is the output of :

sudo apt-get -f install; df -h

Thanks

Can you help with this problem?

Provide an answer of your own, or ask akhi for more information if necessary.

To post a message you must log in.