Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Whenever I use aptitude, I get the following error:
Code:
The following partially installed packages will be configured:
python3 python3-apt python3-minimal wajig
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Setting up python3-minimal (3.2.3-5) ...
Could not import runpy module
Traceback (most recent call last):
File "/usr/bin/py3compile", line 289, in <module>
main()
File "/usr/bin/py3compile", line 283, in main
process.communicate()
File "/usr/lib/python3.2/subprocess.py", line 809, in communicate
self.stdin.close()
IOError: [Errno 32] Broken pipe
dpkg: error processing python3-minimal (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python3:
python3 depends on python3-minimal (= 3.2.3-5); however:
Package python3-minimal is not configured yet.
dpkg: error processing python3 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-apt:
python3-apt depends on python3 (>= 3.2.3-3~); however:
Package python3 is not configured yet.
python3-apt depends on python3 (<< 3.3); however:
Package python3 is not configured yet.
dpkg: error processing python3-apt (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of wajig:
wajig depends on python3 (>= 3.2); however:
Package python3 is not configured yet.
wajig depends on python3-apt; however:
Package python3-apt is not configured yet.
dpkg: error processing wajig (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python3-minimal
python3
python3-apt
wajig
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up python3-minimal (3.2.3-5) ...
Could not import runpy module
Traceback (most recent call last):
File "/usr/bin/py3compile", line 289, in <module>
main()
File "/usr/bin/py3compile", line 283, in main
process.communicate()
File "/usr/lib/python3.2/subprocess.py", line 809, in communicate
self.stdin.close()
IOError: [Errno 32] Broken pipe
dpkg: error processing python3-minimal (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python3:
python3 depends on python3-minimal (= 3.2.3-5); however:
Package python3-minimal is not configured yet.
dpkg: error processing python3 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-apt:
python3-apt depends on python3 (>= 3.2.3-3~); however:
Package python3 is not configured yet.
python3-apt depends on python3 (<< 3.3); however:
Package python3 is not configured yet.
dpkg: error processing python3-apt (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of wajig:
wajig depends on python3 (>= 3.2); however:
Package python3 is not configured yet.
wajig depends on python3-apt; however:
Package python3-apt is not configured yet.
dpkg: error processing wajig (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python3-minimal
python3
python3-apt
wajig
I tried reinstalling these packages but it didn't do much. Any suggestions as to how I can fix it? It doesn't seem to affect anything.
Now I'm concerned with teh apt-get dist-upgrade portion of this as that will attempt to ugprade your kernel and so forth but that is what is reported as the solution.
ls -a /var/cache/apt/archives/py*
/var/cache/apt/archives/python-libtorrent_0.15.10-1+b1_amd64.deb
/var/cache/apt/archives/python-pygame_1.9.1release+dfsg-7_amd64.deb
/var/cache/apt/archives/python-pyinotify_0.9.3-1.1_all.deb
Nothing obvious there. Would that be clearled by 'sudo aptitude autoclean' or 'sudo apt-get autoclean'?
For python3.3
Code:
Couldn't find any package whose name or description matched "python3.3"
Couldn't find any package whose name or description matched "python3.3"
The following partially installed packages will be configured:
python3 python3-apt python3-minimal wajig
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Setting up python3-minimal (3.2.3-5) ...
Could not import runpy module
Traceback (most recent call last):
File "/usr/bin/py3compile", line 289, in <module>
main()
File "/usr/bin/py3compile", line 283, in main
process.communicate()
File "/usr/lib/python3.2/subprocess.py", line 809, in communicate
self.stdin.close()
IOError: [Errno 32] Broken pipe
dpkg: error processing python3-minimal (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python3:
python3 depends on python3-minimal (= 3.2.3-5); however:
Package python3-minimal is not configured yet.
dpkg: error processing python3 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-apt:
python3-apt depends on python3 (>= 3.2.3-3~); however:
Package python3 is not configured yet.
python3-apt depends on python3 (<< 3.3); however:
Package python3 is not configured yet.
dpkg: error processing python3-apt (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of wajig:
wajig depends on python3 (>= 3.2); however:
Package python3 is not configured yet.
wajig depends on python3-apt; however:
Package python3-apt is not configured yet.
dpkg: error processing wajig (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python3-minimal
python3
python3-apt
wajig
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up python3-minimal (3.2.3-5) ...
Could not import runpy module
Traceback (most recent call last):
File "/usr/bin/py3compile", line 289, in <module>
main()
File "/usr/bin/py3compile", line 283, in main
process.communicate()
File "/usr/lib/python3.2/subprocess.py", line 809, in communicate
self.stdin.close()
IOError: [Errno 32] Broken pipe
dpkg: error processing python3-minimal (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python3:
python3 depends on python3-minimal (= 3.2.3-5); however:
Package python3-minimal is not configured yet.
dpkg: error processing python3 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-apt:
python3-apt depends on python3 (>= 3.2.3-3~); however:
Package python3 is not configured yet.
python3-apt depends on python3 (<< 3.3); however:
Package python3 is not configured yet.
dpkg: error processing python3-apt (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of wajig:
wajig depends on python3 (>= 3.2); however:
Package python3 is not configured yet.
wajig depends on python3-apt; however:
Package python3-apt is not configured yet.
dpkg: error processing wajig (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python3-minimal
python3
python3-apt
wajig
Can I politely request a bump on this, as the computer is still suffering this.
Did you see jdkaye's post? Have you tried downloading the appropriate python3 package and installing it with 'dpkg -i'? I don't use LMDE so I don't know where you would get it from, but if you post your /etc/apt/sources.list I (and others here) should be able to work it out.
I tried to download the package but it reminded me of Linux many years ago, where I kind of had to play guess what's missing. So I added the appropriate line to my /etc/apt/sources.list and use aptitude to install it.
Python3.3 is now installed and at the end of the installation it gave this error:
Code:
Errors were encountered while processing:
python3-minimal
python3.2
python3
python3-apt
wajig
Please bare in mind that I really do not know or understand computers when I ask this, I have no idea what python even does on my computer. Can I just uninstall python3-minimal, python3.2, python3, python3-apt and wajig?
So I added the appropriate line to my /etc/apt/sources.list and use aptitude to install it.
I don't know why you edited your sources.list: This was not suggested by anyone. What did you add to your sources.list?
Quote:
Python3.3 is now installed and at the end of the installation it gave this error:
From the error messages you posted earlier, it looks like python 3.3 will conflict with python3-apt. Please post the full error message and your sources.list file.
Quote:
Please bare in mind that I really do not know or understand computers when I ask this, I have no idea what python even does on my computer. Can I just uninstall python3-minimal, python3.2, python3, python3-apt and wajig?
Python is a scripting language and is used by many packages on your system. In general you can't simply uninstall it.
I don't know why you edited your sources.list: This was not suggested by anyone. What did you add to your sources.list?
I tried installing the single package, it refused to let me install it as it had unmet dependancies and I tried installing about 5-6 of them before I felt like I was chasing my tail. I figured this was due to the advice I initially ignored at the top of this page where I downloaded the .deb file which told me to add it to my /etc/apt/sources.list.
Quote:
Originally Posted by evo2
From the error messages you posted earlier, it looks like python 3.3 will conflict with python3-apt. Please post the full error message and your sources.list file.
The error:
Code:
Processing triggers for man-db ...
Setting up python3-minimal (3.2.3-5) ...
Could not import runpy module
Traceback (most recent call last):
File "/usr/bin/py3compile", line 289, in <module>
main()
File "/usr/bin/py3compile", line 283, in main
process.communicate()
File "/usr/lib/python3.2/subprocess.py", line 809, in communicate
self.stdin.close()
IOError: [Errno 32] Broken pipe
dpkg: error processing python3-minimal (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up python3.2 (3.2.3-2) ...
Traceback (most recent call last):
File "/usr/lib/python3.2/py_compile.py", line 187, in <module>
sys.exit(main())
File "/usr/lib/python3.2/py_compile.py", line 179, in main
compile(filename, doraise=True)
File "/usr/lib/python3.2/py_compile.py", line 111, in compile
with tokenize.open(file) as f:
File "/usr/lib/python3.2/tokenize.py", line 347, in open
encoding, lines = detect_encoding(buffer.readline)
File "/usr/lib/python3.2/tokenize.py", line 335, in detect_encoding
encoding = find_cookie(second)
File "/usr/lib/python3.2/tokenize.py", line 307, in find_cookie
codec = lookup(encoding)
File "/usr/lib/python3.2/encodings/__init__.py", line 98, in search_function
level=0)
EOFError: EOF read where not expected
dpkg: error processing python3.2 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python3:
python3 depends on python3.2 (>= 3.2.3); however:
Package python3.2 is not configured yet.
python3 depends on python3-minimal (= 3.2.3-5); however:
Package python3-minimal is not configured yet.
dpkg: error processing python3 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-apt:
python3-apt depends on python3 (>= 3.2.3-3~); however:
Package python3 is not configured yet.
python3-apt depends on python3 (<< 3.3); however:
Package python3 is not configured yet.
dpkg: error processing python3-apt (--configure):
dependency problems - leaving unconfigured
Setting up python3.3 (3.3.2-4) ...
dpkg: dependency problems prevent configuration of wajig:
wajig depends on python3-apt; however:
Package python3-apt is not configured yet.
dpkg: error processing wajig (--configure):
dependency problems - leaving unconfigured
Processing triggers for menu ...
Errors were encountered while processing:
python3-minimal
python3.2
python3
python3-apt
wajig
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up python3.2 (3.2.3-2) ...
Traceback (most recent call last):
File "/usr/lib/python3.2/py_compile.py", line 187, in <module>
sys.exit(main())
File "/usr/lib/python3.2/py_compile.py", line 179, in main
compile(filename, doraise=True)
File "/usr/lib/python3.2/py_compile.py", line 111, in compile
with tokenize.open(file) as f:
File "/usr/lib/python3.2/tokenize.py", line 347, in open
encoding, lines = detect_encoding(buffer.readline)
File "/usr/lib/python3.2/tokenize.py", line 335, in detect_encoding
encoding = find_cookie(second)
File "/usr/lib/python3.2/tokenize.py", line 307, in find_cookie
codec = lookup(encoding)
File "/usr/lib/python3.2/encodings/__init__.py", line 98, in search_function
level=0)
EOFError: EOF read where not expected
dpkg: error processing python3.2 (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up python3-minimal (3.2.3-5) ...
Could not import runpy module
Traceback (most recent call last):
File "/usr/bin/py3compile", line 289, in <module>
main()
File "/usr/bin/py3compile", line 283, in main
process.communicate()
File "/usr/lib/python3.2/subprocess.py", line 809, in communicate
self.stdin.close()
IOError: [Errno 32] Broken pipe
dpkg: error processing python3-minimal (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python3:
python3 depends on python3.2 (>= 3.2.3); however:
Package python3.2 is not configured yet.
python3 depends on python3-minimal (= 3.2.3-5); however:
Package python3-minimal is not configured yet.
dpkg: error processing python3 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-apt:
python3-apt depends on python3 (>= 3.2.3-3~); however:
Package python3 is not configured yet.
python3-apt depends on python3 (<< 3.3); however:
Package python3 is not configured yet.
dpkg: error processing python3-apt (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of wajig:
wajig depends on python3-apt; however:
Package python3-apt is not configured yet.
dpkg: error processing wajig (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python3.2
python3-minimal
python3
python3-apt
wajig
My sources.list
Code:
deb http://ftp.de.debian.org/debian jessie main
deb http://packages.linuxmint.com/ debian main upstream import romeo
deb-src http://packages.linuxmint.com/ debian main upstream import romeo #Added by software-properties
deb http://www.mirrorservice.org/sites/debian.linuxmint.com/debian/latest testing main contrib non-free
deb http://www.mirrorservice.org/sites/debian.linuxmint.com/debian/latest/security testing/updates main contrib non-free
deb http://www.mirrorservice.org/sites/debian.linuxmint.com/debian/latest/multimedia testing main non-free
Quote:
Originally Posted by evo2
Python is a scripting language and is used by many packages on your system. In general you can't simply uninstall it.
My logic behind that question is that I think I now have Python3.3 installed, so perhaps I could get rid of Python3.2?
I tried installing the single package, it refused to let me install it as it had unmet dependancies and I tried installing about 5-6 of them before I felt like I was chasing my tail. I figured this was due to the advice I initially ignored at the top of this page where I downloaded the .deb file which told me to add it to my /etc/apt/sources.list.
Is it really normal to have that debian jesse line in your sources.list?
Quote:
The error:
Ok the error seems to stem from the fact that python3.2 is not installed (well not configured anyway). So, it seems that to fix this you should try to install it.
Quote:
My logic behind that question is that I think I now have Python3.3 installed, so perhaps I could get rid of Python3.2?
The error message indicates that python3-minimal needs it, however you may not need python3-minimal... or any of python3 since presumably the system is actually using python2.x for most things. If you want to try this solution, then try running the following:
Code:
sudo apt-get remove --purge python3-minimal
(Debian recommends using apt-get over aptitude for non-interactive command line operations: not sure what LMDE recommands). You should get some output showing what packages will be removed, and a "Do you want to continue [Y/n]" prompt. If unsure if you should continue post the output including the list of packages to be removed here.
Is it really normal to have that debian jesse line in your sources.list?
Neither Romeo or Jesse mean anything to me other than being names of Debian, but how that impacts me, or the packages that are installed, I have no idea. I have no idea what happened for me to get into this place and I'm really lost in how to get out. I am not a computer guy. I'm afraid all this technical jargon is completely lost on me.
Quote:
Originally Posted by evo2
Ok the error seems to stem from the fact that python3.2 is not installed (well not configured anyway). So, it seems that to fix this you should try to install it.
I've given that a go.
Code:
sudo apt-get install python3.2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
python3.2-minimal
Suggested packages:
python3.2-doc
The following packages will be upgraded:
python3.2 python3.2-minimal
2 upgraded, 0 newly installed, 0 to remove and 1189 not upgraded.
5 not fully installed or removed.
Need to get 4,470 kB of archives.
After this operation, 175 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.de.debian.org/debian/ jessie/main python3.2 amd64 3.2.4-1 [2,634 kB]
Get:2 http://ftp.de.debian.org/debian/ jessie/main python3.2-minimal amd64 3.2.4-1 [1,836 kB]
Fetched 4,470 kB in 1s (2,337 kB/s)
(Reading database ... 239033 files and directories currently installed.)
Preparing to replace python3.2 3.2.3-2 (using .../python3.2_3.2.4-1_amd64.deb) ...
Unpacking replacement python3.2 ...
Preparing to replace python3.2-minimal 3.2.3-2 (using .../python3.2-minimal_3.2.4-1_amd64.deb) ...
Unpacking replacement python3.2-minimal ...
Processing triggers for gnome-menus ...
Processing triggers for desktop-file-utils ...
Processing triggers for menu ...
Processing triggers for man-db ...
Setting up python3.2-minimal (3.2.4-1) ...
Setting up python3.2 (3.2.4-1) ...
Setting up python3-minimal (3.2.3-5) ...
Setting up python3 (3.2.3-5) ...
running python rtupdate hooks for python3.2...
running python post-rtupdate hooks for python3.2...
Setting up python3-apt (0.8.8.1) ...
Setting up wajig (2.8) ...
Configuration file `/etc/bash_completion.d/wajig'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** wajig (Y/I/N/O/D/Z) [default=N] ?
I typed D to see the differences. I'm not sure which option I want to select. Guidance would be gratefully received as I'm currently stuck on that screen.
The error message indicates that python3-minimal needs it, however you may not need python3-minimal... or any of python3 since presumably the system is actually using python2.x for most things. If you want to try this solution, then try running the following:
Code:
sudo apt-get remove --purge python3-minimal
(Debian recommends using apt-get over aptitude for non-interactive command line operations: not sure what LMDE recommands). You should get some output showing what packages will be removed, and a "Do you want to continue [Y/n]" prompt. If unsure if you should continue post the output including the list of packages to be removed here.
I've tried that command, selecting no just to see the options. The output is printed below.
Code:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
python3* python3-apt* python3-minimal* wajig*
0 upgraded, 0 newly installed, 4 to remove and 1188 not upgraded.
5 not fully installed or removed.
After this operation, 1,121 kB disk space will be freed.
Do you want to continue [Y/n]? n
Abort.
I appreciate your help and have no doubt it must be frustrating to be working with someone who doesn't really have a clue but I am very grateful.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.