/dev/chat

General discussion for unix.stackexchange.com. If you have a q...
Feb 18, 2015 16:58
Looks like it - many thanks for all your help... And have a good evening...
Feb 18, 2015 16:57
debsums -as
Traceback (most recent call last):
File "/usr/lib/command-not-found", line 21, in <module>
from CommandNotFound.util import crash_guard
ImportError: No module named CommandNotFound.util

I have used RedHat. Suse and CentOS previously bugt never experienced anything like this...
Feb 18, 2015 16:54
Sorry have to definitely go in two minutes... Looking good though...
Feb 18, 2015 16:48
Package even...
Feb 18, 2015 16:47
Pakagee Manager was reporting about 16 broken packages this morning, internet glitched as I was typing

Nothing from dpkg -C
Feb 18, 2015 16:45
out 16 this morning...
Feb 18, 2015 16:44
Just started Synaptic Package Manager (synaptic-pkexec) and no broken packages reported...
Feb 18, 2015 16:42
apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
python-appindicator python-uno
The following packages will be upgraded:
python-appindicator python-uno
2 upgraded, 0 newly installed, 0 to remove and 616 not upgraded.
3 not fully installed or removed.
Need to get 0 B/390 kB of archives.
After this operation, 9,216 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Feb 18, 2015 16:37
dpkg -l libpython2.7 python2.7 python2.7-minimal
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii libpython2.7 2.7.3-0ubuntu3 Shared Python runtime library (version 2.7)
ii python2.7 2.7.3-0ubuntu3 Interactive high-level object-oriented langu
Feb 18, 2015 16:23
dpkg -i libpython2.7_2.7.3-0ubuntu3.6_amd64.deb python2.7_2.7.3-0ubuntu3.6_amd64.deb python2.7-minimal_2.7.3-0ubuntu3.6_amd64.deb
(Reading database ... 183287 files and directories currently installed.)
Preparing to replace libpython2.7 2.7.3-0ubuntu3.6 (using libpython2.7_2.7.3-0ubuntu3.6_amd64.deb) ...
Unpacking replacement libpython2.7 ...
Preparing to replace python2.7 2.7.3-0ubuntu3.6 (using python2.7_2.7.3-0ubuntu3.6_amd64.deb) ...
Unpacking replacement python2.7 ...
Preparing to replace python2.7-minimal 2.7.3-0ubuntu3.6 (using python2.7-minimal_2.7.3-0ubuntu3.6_amd64.deb) ...
Feb 18, 2015 16:22
Running.......
Feb 18, 2015 16:21
So I repeat tnhe libpython...
Feb 18, 2015 16:19
dpkg -i libpython2.7_2.7.3-0ubuntu3.6_amd64.deb
(Reading database ... 183287 files and directories currently installed.)
Preparing to replace libpython2.7 2.7.3-0ubuntu3.6 (using libpython2.7_2.7.3-0ubuntu3.6_amd64.deb) ...
Unpacking replacement libpython2.7 ...
Setting up libpython2.7 (2.7.3-0ubuntu3.6) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Feb 18, 2015 16:16
ls -l *deb
-rw-r--r-- 1 root root 1188302 Dec 18 20:18 libpython2.7_2.7.3-0ubuntu3.6_amd64.deb
-rw-r--r-- 1 root root 2676738 Dec 18 20:18 python2.7_2.7.3-0ubuntu3.6_amd64.deb
-rw-r--r-- 1 root root 1741332 Dec 18 20:18 python2.7-minimal_2.7.3-0ubuntu3.6_amd64.deb
Feb 18, 2015 16:06
dpkg -i package if I remember right...
Feb 18, 2015 16:02
no other bits around - shall I create empty one and mv them?
Feb 18, 2015 15:58
Done...
Feb 18, 2015 15:55
How do I download the other two - is it apt-get download?
Feb 18, 2015 15:54
apt-cache policy libpython2.7
libpython2.7:
Installed: 2.7.3-0ubuntu3.6
Candidate: 2.7.3-0ubuntu3.6
Version table:
*** 2.7.3-0ubuntu3.6 0
500 http://archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
100 /var/lib/dpkg/status
2.7.3-0ubuntu3.5 0
500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
2.7.3-0ubuntu3 0
500 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
Feb 18, 2015 15:44
apt-cache policy python2.7 python2.7-minimal libpython2.7-minimal
python2.7:
Installed: 2.7.3-0ubuntu3.6
Candidate: 2.7.3-0ubuntu3.6
Version table:
*** 2.7.3-0ubuntu3.6 0
500 http://archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
100 /var/lib/dpkg/status
2.7.3-0ubuntu3.5 0
500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
2.7.3-0ubuntu3 0
500 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
python2.7-minimal:
Installed: 2.7.3-0ubuntu3.6
Candidate: 2.7.3-0ubuntu3.6
Feb 18, 2015 15:40
apt-cache policy python2.7 libpython2.7-minimal
python2.7:
Installed: 2.7.3-0ubuntu3.6
Candidate: 2.7.3-0ubuntu3.6
Version table:
*** 2.7.3-0ubuntu3.6 0
500 http://archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
100 /var/lib/dpkg/status
2.7.3-0ubuntu3.5 0
500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
2.7.3-0ubuntu3 0
500 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
N: Unable to locate package libpython2.7-minimal
N: Couldn't find any package by regex 'libpython2.7-minimal'
Feb 18, 2015 15:34
apt-cache policy python-2.7 python2.7 libpython2.7-minimal
python2.7:
Installed: 2.7.3-0ubuntu3.6
Candidate: 2.7.3-0ubuntu3.6
Version table:
*** 2.7.3-0ubuntu3.6 0
500 http://archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
100 /var/lib/dpkg/status
2.7.3-0ubuntu3.5 0
500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
2.7.3-0ubuntu3 0
500 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
N: Unable to locate package python-2.7
N: Couldn't find any package by regex 'python-2.7'
Feb 18, 2015 15:31
Update gave:-

$ apt-get update
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
~/Desktop $ su
Password:
# apt-get update
Hit http://archive.canonical.com precise Release.gpg
Get:1 http://security.ubuntu.com precise-security Release.gpg [198 B]
Hit http://archive.canonical.com precise Release
Feb 18, 2015 15:28
apt-cache policy python-2.7 python2.7-libpython2.7-minimal
N: Unable to locate package python-2.7
N: Couldn't find any package by regex 'python-2.7'
N: Unable to locate package python2.7-libpython2.7-minimal
N: Couldn't find any package by regex 'python2.7-libpython2.7-minimal'
Feb 18, 2015 15:24
cat /etc/apt/sources.list
deb http://packages.linuxmint.com/ maya upstream import main
deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ precise partner
# deb http://packages.medibuntu.org/ precise free non-free

# deb http://archive.getdeb.net/ubuntu precise-getdeb apps
Feb 18, 2015 15:20
Sorry which file is that? sourceslist.py is very long and more of a program...
Feb 18, 2015 14:52
Hi... I am OK for the next couple of hours... Was that the one requesting the download?
Feb 18, 2015 14:48
@FaheemMitha - Back in for a few hours. Tried download as requested and got:-

# apt-get download python-2.7 python2.7-libpython2.7-minimal
E: Unable to locate package python-2.7
E: Couldn't find any package by regex 'python-2.7'
E: Unable to locate package python2.7-libpython2.7-minimal
E: Couldn't find any package by regex 'python2.7-libpython2.7-minimal'
Feb 13, 2015 18:26
This is one of my machines but they are all company ones... Many thanks for yourhelp and have a good weekend...
Feb 13, 2015 18:24
Sorry I have to give someone a lift in a couple of minutes. Will you be around mid-next week as I have minor surgery on Monday...
Feb 13, 2015 18:22
No /usr/lib/python2.7 directory
Feb 13, 2015 18:20
Python just gives errors with libraries, eetc...
Feb 13, 2015 18:17
Nothing from the env...
Feb 13, 2015 18:15
Only a .bash_history and a .bash_logout
Feb 13, 2015 18:12
TThere is a bash.bashrc in /etc - is that the one...
Feb 13, 2015 18:10
dpkg -l | grep python
ii libpython2.7 2.7.3-0ubuntu3.6 Shared Python runtime library (version 2.7)
ii python 2.7.3-0ubuntu2.2 interactive high-level object-oriented language (default version)
ii python-all 2.7.3-0ubuntu2.2 package depending on all supported Python runtime versions
iFR python-appindicator 0.4.92-0ubuntu1 Python bindings for libappindicator
Feb 13, 2015 18:07
Where is it?
Feb 13, 2015 18:06
Both directories are empty...
Feb 13, 2015 18:05
dist-packages and site-packages
Feb 13, 2015 18:04
Yes brain fade...
Feb 13, 2015 18:03
In /etc/local/lib there is a python2.7 directory
Feb 13, 2015 17:59
# apt-get -cache policy python2.7
E: Opening configuration file ache - ifstream::ifstream (2: No such file or directory)
Feb 13, 2015 17:57
/usr/local has dirctories all dated in 2012 and a soft link from man->/share/man from last December - arond install time for OS
Feb 13, 2015 17:53
# dpkg -l | grep python2
ii libpython2.7 2.7.3-0ubuntu3.6 Shared Python runtime library (version 2.7)
ii python2.7 2.7.3-0ubuntu3.6 Interactive high-level object-oriented language (version 2.7)
ii python2.7-dbg 2.7.3-0ubuntu3.6 Debug Build of the Python Interpreter (version 2.7)
ii python2.7-dev 2.7.3-0ubuntu3.6 Header files and a static library for Python (v2.7)
Feb 13, 2015 17:51
/usr/bin/python
Feb 13, 2015 17:50
$PYTHONHOME gives a blank line...
Feb 13, 2015 17:50
Someone else installed Python shortly after the OS was installed. |I added python-mysql via the Synaptic Package Manager
Feb 13, 2015 17:47
Seem a lot of messages about libraries, PYTHONHOME and a module named site...
Feb 13, 2015 17:46
# sudo dpkg -i python*.deb
Selecting previously unselected package python-appindicator.
(Reading database ... 183085 files and directories currently installed.)
Preparing to replace python-appindicator 0.4.92-0ubuntu1 (using python-appindicator_0.4.92-0ubuntu1.1_amd64.deb) ...
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
ImportError: No module named site
dpkg: warning: subprocess old pre-removal script returned error exit status 1
Feb 13, 2015 17:44
Thats where I was...