ubuntu 12.04 software-properties-common and python-software-properties installaion

Asked by Libing Chen

I can't apt-get install such packages.

I use the troubleshooting comands and here are the output:

cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$ sudo rm /var/lib/apt/lists/lock
sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$ sudo rm /var/cache/apt/archives/lock

cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$ sudo rm /var/lib/dpkg/lock
cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$ sudo touch /var/lib/dpkg/lock

cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
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"' _ '{}' \;

cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$ sudo rm -rf /var/lib/dpkg/updates/*
cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$ sudo rm -rf /var/lib/apt/lists
cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$ sudo rm /var/cache/apt/*.bin
cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$ sudo mkdir /var/lib/apt/lists
cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$ sudo mkdir /var/lib/apt/lists/partial
cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$ LANG=C;sudo apt-get clean
cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up grub2-common (1.99-21ubuntu3.14) ...
Setting up grub-pc-bin (1.99-21ubuntu3.14) ...
Setting up grub-pc (1.99-21ubuntu3.14) ...
Installation finished. No error reported.
Generating grub.cfg ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-3.11.0-15-generic
Found initrd image: /boot/initrd.img-3.11.0-15-generic
Found memtest86+ image: /boot/memtest86+.bin
done
Setting up grub-gfxpayload-lists (0.6) ...
cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$
cisco@ubuntu-MAAS:~$

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Not seeing an issue here. Packages are being updated.

What symptoms are you seeing?

Revision history for this message
Libing Chen (libchen) said :
#2

I can't apt-get install software-properties-common or python-software-properties.

cisco@ubuntu-juju:~$ sudo apt-get install software-properties-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package software-properties-common is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'software-properties-common' has no installation candidate
cisco@ubuntu-juju:~$
cisco@ubuntu-juju:~$
cisco@ubuntu-juju:~$ sudo apt-get install python-software-properties
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python-software-properties is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python-software-properties' has no installation candidate
cisco@ubuntu-juju:~$

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

What is the output of the terminal commands

uname -a
lsb_release -a
find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;
sudo apt-get update

Revision history for this message
Launchpad Janitor (janitor) said :
#4

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.