Can't instal IDLE for python

Asked by Connor

When I type 'sudo apt-get install idle' or 'sudo apt install idle' in terminal, it tells me:

Package idle 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 'idle' has no installation candidate

I have no idea why it is doing this, and I can't seem to find anything in all of the tutorials i have looked up. No-one else seems to be having this problem.

Question information

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

What is the output of:

lsb_release -a; uname -a; apt-cache policy idle

Thanks

Revision history for this message
Connor (capitalxd) said :
#2

Output of lsb_release -a; uname -a; apt-cache policy idle

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04 LTS
Release: 16.04
Codename: xenial
Linux ConnorsUbuntuCraptop 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:34:49 UTC 2016 i686 i686 i686 GNU/Linux
idle:
  Installed: (none)
  Candidate: (none)
  Version table:

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

Strange. It does exist for Xenial:

http://packages.ubuntu.com/xenial/idle

You could download and install the deb manually. I feel you will need to install debs manually to satisfy the department.

What is the output of:

cat -n /etc/apt/sources.list

Thanks

Revision history for this message
Connor (capitalxd) said :
#4

     1 # deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release i386 (20160420.1)]/ xenial main restricted
     2
     3 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     4 # newer versions of the distribution.
     5 deb http://au.archive.ubuntu.com/ubuntu/ xenial main restricted
     6 # deb-src http://au.archive.ubuntu.com/ubuntu/ xenial main restricted
     7
     8 ## Major bug fix updates produced after the final release of the
     9 ## distribution.
    10 deb http://au.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
    11 # deb-src http://au.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
    12
    13 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    14 ## team, and may not be under a free licence. Please satisfy yourself as to
    15 ## your rights to use the software. Also, please note that software in
    16 ## universe WILL NOT receive any review or updates from the Ubuntu security
    17 ## team.
    18 deb http://au.archive.ubuntu.com/ubuntu/ xenial universe
    19 # deb-src http://au.archive.ubuntu.com/ubuntu/ xenial universe
    20 deb http://au.archive.ubuntu.com/ubuntu/ xenial-updates universe
    21 # deb-src http://au.archive.ubuntu.com/ubuntu/ xenial-updates universe
    22
    23 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    24 ## team, and may not be under a free licence. Please satisfy yourself as to
    25 ## your rights to use the software. Also, please note that software in
    26 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    27 ## security team.
    28 deb http://au.archive.ubuntu.com/ubuntu/ xenial multiverse
    29 # deb-src http://au.archive.ubuntu.com/ubuntu/ xenial multiverse
    30 deb http://au.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
    31 # deb-src http://au.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
    32
    33 ## N.B. software from this repository may not have been tested as
    34 ## extensively as that contained in the main release, although it includes
    35 ## newer versions of some applications which may provide useful features.
    36 ## Also, please note that software in backports WILL NOT receive any review
    37 ## or updates from the Ubuntu security team.
    38 deb http://au.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
    39 # deb-src http://au.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
    40
    41 ## Uncomment the following two lines to add software from Canonical's
    42 ## 'partner' repository.
    43 ## This software is not part of Ubuntu, but is offered by Canonical and the
    44 ## respective vendors as a service to Ubuntu users.
    45 # deb http://archive.canonical.com/ubuntu xenial partner
    46 # deb-src http://archive.canonical.com/ubuntu xenial partner
    47
    48 deb http://security.ubuntu.com/ubuntu xenial-security main restricted
    49 # deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
    50 deb http://security.ubuntu.com/ubuntu xenial-security universe
    51 # deb-src http://security.ubuntu.com/ubuntu xenial-security universe
    52 deb http://security.ubuntu.com/ubuntu xenial-security multiverse
    53 # deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse

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

Looks fine enough. I'd go for the manual install. After you install a deb, run:

sudo apt-get -f install

and see what is needed (unless someone can suggest an easier way)

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#6

Please run this command:

sudo gedit /etc/apt/sources.list

Using the gedit editor, please remove all the contents of the sources.list file and please replace the contents with these lines (using copy-paste):

########### STARTS HERE
#------------------------------------------------------------------------------#
# OFFICIAL UBUNTU REPOS #
#------------------------------------------------------------------------------#

###### Ubuntu Main Repos
deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse

###### Ubuntu Update Repos
deb http://us.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse

###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner

#------------------------------------------------------------------------------#
# UNOFFICIAL UBUNTU REPOS #
#------------------------------------------------------------------------------#

###### 3rd Party Binary Repos

#### Clementine PPA - http://www.clementine-player.org/
## Run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 044A3B98
deb http://ppa.launchpad.net/me-davidsansome/clementine-dev/ubuntu xenial main

#### Google Chrome Browser - http://www.google.com/linuxrepositories/
## Run this command: wget -q https://dl.google.com/linux/linux_signing_key.pub -O- | sudo apt-key add -
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

#### Google Earth - http://www.google.com/linuxrepositories/
## Run this command: wget -q https://dl.google.com/linux/linux_signing_key.pub -O- | sudo apt-key add -
deb [arch=amd64] http://dl.google.com/linux/earth/deb/ stable main

#### Oracle Java (JDK) Installer PPA - http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
## Run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
deb http://ppa.launchpad.net/webupd8team/java/ubuntu vivid main

#### Steam for Linux - http://store.steampowered.com/about/
## Run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F24AEA9FB05498B7
deb [arch=i386] http://repo.steampowered.com/steam/ precise steam

#### VirtualBox - http://www.virtualbox.org
## Run this command: wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox_2016.asc -O- | sudo apt-key add -
deb http://download.virtualbox.org/virtualbox/debian xenial contrib

#### Wine PPA - https://launchpad.net/~ubuntu-wine/+archive/ppa/
## Run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 883E8688397576B6C509DF495A9A06AEF9CB8DB0
deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu xenial main

####### 3rd Party Source Repos

#### Clementine PPA (Source) - http://www.clementine-player.org/
## Run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 044A3B98
deb-src http://ppa.launchpad.net/me-davidsansome/clementine-dev/ubuntu xenial main

#### Oracle Java (JDK) Installer PPA (Source) - http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
## Run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu vivid main

#### Wine PPA (Source) - https://launchpad.net/~ubuntu-wine/+archive/ppa/
## Run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 883E8688397576B6C509DF495A9A06AEF9CB8DB0
deb-src http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu xenial main
########### ENDS HERE

And then please send us the full Terminal output of these commands:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 044A3B98

wget -q https://dl.google.com/linux/linux_signing_key.pub -O- | sudo apt-key add -

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F24AEA9FB05498B7

wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox_2016.asc -O- | sudo apt-key add -

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 883E8688397576B6C509DF495A9A06AEF9CB8DB0

sudo apt-get update

apt-cache policy idle

sudo apt-get install idle

Can you help with this problem?

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

To post a message you must log in.