Re: Broken Zope, Python, xbase-clients, etc
yHi Russell I removed all zope files and updated the status file. Then I was able to install zope. Am now running apt-get dselect-upgrade, to see if I can get my xwindows to install and run. Thanks for the extensive, patient help. I greatly appreciate it! Regards, Russ On Wed, 10 Sep 2003, Russell Shaw wrote: Russ Cook wrote: Thanks for the continued help. Attached are the results of 'whereis python' and 'ls -l /usr/bin/python'. The symlink points to python2.3. And yet, the zope pre-removal script encounters errors in python1.5, which makes me think it is explicitly seeking and calling routines from the earlier version. More thoughts? Interesting. I'd try apt-get remove python1.5 if nothing important depends on it. Before a package is removed, its preremoval script is run. After removal, the postremoval script is run. These scripts are in /var/lib/dpkg/info. You could inspect the script and, run it, but i don't know how messy or disruptive that would be. fsck the partition apt-get remove --force-remove-reinstreq --force-depends zope (IIRC that was already tried) If that doesn't work, i'd manually delete all the zope files and directories, shown with dpkg -L zope. Edit /var/lib/dpkg/status so that zope looks like an uninstalled package. apt-get install zope Make a backup of /var/lib/dpkg/status and anything else important. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Broken Zope, Python, xbase-clients, etc
On Tue, Sep 09, 2003 at 03:08:11PM +1000, Russell Shaw wrote: The other way is the debian alternatives system. You can have multiple versions of a tool, such as gcc-2.95.4, gcc-3.3, etc, but one gets called by the generic name of gcc. man update-alternatives rm /usr/bin/python rm /usr/share/man/man1/python.1.gz ln -s /etc/alternatives/pythonbin /usr/bin/python ln -s /etc/alternatives/pythonman.1.gz /usr/share/man/man1/python.1.gz update-alternatives --install /usr/bin/python pythonbin /usr/bin/python2.2 20 \ --slave /usr/share/man/man1/python.1.gz pythonman.1.gz /usr/share/man/man1/python2.2.1.gz That won't be preserved across package upgrades. Cheers, -- Colin Watson [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Broken Zope, Python, xbase-clients, etc
Thanks for the continued help. Attached are the results of 'whereis python' and 'ls -l /usr/bin/python'. The symlink points to python2.3. And yet, the zope pre-removal script encounters errors in python1.5, which makes me think it is explicitly seeking and calling routines from the earlier version. More thoughts? Thanks much, Russ On Tue, 9 Sep 2003, Russell Shaw wrote: Russ Cook wrote: Hi Russell, I ran apt-get update, then apt-get install python. I did not specify a version. The system stated I am already at the latest version. I then ran apt-get install --reinstall --fix-broken zope. The log looks the same. If you still have a log of the session I sent previously, please notice that the python routines which are run seem to be from /usr/lib/python1.5, even though python2.3 is installed. Does Zope explicitly look for version 1.5? I'm really at a loss as to what is going on here. On my system: whereis python python: /usr/bin/python /usr/bin/python2.2 /usr/bin/python2.1 /etc/python2.1 /etc/python2.2 /usr/lib/python2.1 /usr/lib/python2.2 /usr/include/python2.1 /usr/include/python2.2 /usr/share/man/man1/python.1.gz ls -l /usr/bin/python /usr/bin/python - python2.2 Your system may have: /usr/bin/python - python1.5 If so, symlink it to point to python2.2. The other way is the debian alternatives system. You can have multiple versions of a tool, such as gcc-2.95.4, gcc-3.3, etc, but one gets called by the generic name of gcc. man update-alternatives rm /usr/bin/python rm /usr/share/man/man1/python.1.gz ln -s /etc/alternatives/pythonbin /usr/bin/python ln -s /etc/alternatives/pythonman.1.gz /usr/share/man/man1/python.1.gz update-alternatives --install /usr/bin/python pythonbin /usr/bin/python2.2 20 \ --slave /usr/share/man/man1/python.1.gz pythonman.1.gz /usr/share/man/man1/python2.2.1.gz Now check. ls -l /usr/bin/python /usr/bin/python - /etc/alternatives/pythonbin ls -l /etc/alternatives/pythonbin /etc/alternatives/pythonbin - /usr/bin/python2.2 ls -l /usr/share/man/man1/python.1.gz /usr/share/man/man1/python.1.gz - /etc/alternatives/pythonman.1.gz ls -l /etc/alternatives/pythonman.1.gz /etc/alternatives/pythonman.1.gz - /usr/share/man/man1/python2.2.1.gz -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] Script started on Tue 09 Sep 2003 10:57:13 AM CDT [EMAIL PROTECTED]:~$ whereis python python: /usr/bin/python2.3 /usr/bin/python2.2 /usr/bin/python2.1 /usr/bin/python1.5 /usr/bin/python /usr/bin/python2.0 /etc/python2.1 /etc/python1.5 /etc/python2.3 /etc/python2.2 /usr/lib/python2.2 /usr/lib/python1.5 /usr/lib/python2.1 /usr/lib/python2.3 /usr/lib/python2.0 /usr/local/lib/python2.0 /usr/local/lib/python1.5 /usr/local/lib/python2.1 /usr/local/lib/python2.2 /usr/local/lib/python2.3 /usr/include/python2.2 /usr/include/python2.3 /usr/include/python1.5 /usr/share/man/man1/python.1.gz [EMAIL PROTECTED]:~$ ls -l /usr/bin/python [0mlrwxrwxrwx1 root root9 2003-09-05 18:52 [01;36m/usr/bin/python[0m - [0mpython2.3[0m [EMAIL PROTECTED]:~$ Script done on Tue 09 Sep 2003 10:57:59 AM CDT
Re: Broken Zope, Python, xbase-clients, etc
Russ Cook wrote: Thanks for the continued help. Attached are the results of 'whereis python' and 'ls -l /usr/bin/python'. The symlink points to python2.3. And yet, the zope pre-removal script encounters errors in python1.5, which makes me think it is explicitly seeking and calling routines from the earlier version. More thoughts? Interesting. I'd try apt-get remove python1.5 if nothing important depends on it. Before a package is removed, its preremoval script is run. After removal, the postremoval script is run. These scripts are in /var/lib/dpkg/info. You could inspect the script and, run it, but i don't know how messy or disruptive that would be. fsck the partition apt-get remove --force-remove-reinstreq --force-depends zope (IIRC that was already tried) If that doesn't work, i'd manually delete all the zope files and directories, shown with dpkg -L zope. Edit /var/lib/dpkg/status so that zope looks like an uninstalled package. apt-get install zope Make a backup of /var/lib/dpkg/status and anything else important. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Broken Zope, Python, xbase-clients, etc
Hi Russell, From your email, should I assume that Zope requires a version of Python between 2.1-3 and 2.2? A listing of /usr/lib shows python1.5, python2.0, python2.1, python2.2, and python2.3. Must I downgrade and force the system to install python2.1 for the Zope scripts to work? On Mon, 8 Sep 2003, Russell Shaw wrote: Russ Cook wrote: Hi Russell, Thanks for the continued help. I tried the command you suggested, and the result is in the attached script file. Still no luck. On Sun, 7 Sep 2003, Russell Shaw wrote: Russ Cook wrote: Russell, The sources.list file was OK, but it referenced a local mirror for apt-move, which wasn't valid yet. I corrected that, and ran 'apt-get update' again, and then ran apt-get install -t testing zope, as you recommend. Attached is that script file. The errors are essentially the same. Can you or anyone else offer more suggestions? I would be very grateful. (Reading database ... 64003 files and directories currently installed.)^M Preparing to replace zope 2.3.3-1 (using .../zope_2.6.1-10_i386.deb) ...^M dpkg: warning - old pre-removal script returned error exit status 1^M dpkg - trying script from the new package instead ...^M invoke-rc.d: initscript zope, action stop failed.^M dpkg: error processing /var/cache/apt/archives/zope_2.6.1-10_i386.deb (--unpack):^M subprocess new pre-removal script returned error exit status 1^M dpkg -r --force-remove-reinstreq --force-depends zope apt-get install zope Removing zope ... dpkg: error processing zope (--remove): subprocess pre-removal script returned error exit status 1 /usr/lib/python1.5/py_compile.py:54: DeprecationWarning: strop functions are obsolete; use string methods codestring = string.replace(codestring,\r\n,\n) Zope assumes a later version of python: stable: http://packages.debian.org/stable/web/zope.html [depends] python (= 2.1.3-1) An interactive object-oriented scripting language (default version) [depends] python ( 2.2) An interactive object-oriented scripting language (default version) testing: http://packages.debian.org/testing/web/zope.html [depends] python2.1 (= 2.1.3-1) An interactive high-level object-oriented language (version 2.1) So, apt-get update apt-get install appropriate python (this should auto-deinstall 1.5) apt-get install --reinstall [--fix-broken] zope -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Broken Zope, Python, xbase-clients, etc
Hi Russell, I ran apt-get update, then apt-get install python. I did not specify a version. The system stated I am already at the latest version. I then ran apt-get install --reinstall --fix-broken zope. The log looks the same. If you still have a log of the session I sent previously, please notice that the python routines which are run seem to be from /usr/lib/python1.5, even though python2.3 is installed. Does Zope explicitly look for version 1.5? I'm really at a loss as to what is going on here. Regards, Russ On Mon, 8 Sep 2003, Russell Shaw wrote: Russ Cook wrote: Hi Russell, Thanks for the continued help. I tried the command you suggested, and the result is in the attached script file. Still no luck. On Sun, 7 Sep 2003, Russell Shaw wrote: Russ Cook wrote: Russell, The sources.list file was OK, but it referenced a local mirror for apt-move, which wasn't valid yet. I corrected that, and ran 'apt-get update' again, and then ran apt-get install -t testing zope, as you recommend. Attached is that script file. The errors are essentially the same. Can you or anyone else offer more suggestions? I would be very grateful. (Reading database ... 64003 files and directories currently installed.)^M Preparing to replace zope 2.3.3-1 (using .../zope_2.6.1-10_i386.deb) ...^M dpkg: warning - old pre-removal script returned error exit status 1^M dpkg - trying script from the new package instead ...^M invoke-rc.d: initscript zope, action stop failed.^M dpkg: error processing /var/cache/apt/archives/zope_2.6.1-10_i386.deb (--unpack):^M subprocess new pre-removal script returned error exit status 1^M dpkg -r --force-remove-reinstreq --force-depends zope apt-get install zope Removing zope ... dpkg: error processing zope (--remove): subprocess pre-removal script returned error exit status 1 /usr/lib/python1.5/py_compile.py:54: DeprecationWarning: strop functions are obsolete; use string methods codestring = string.replace(codestring,\r\n,\n) Zope assumes a later version of python: stable: http://packages.debian.org/stable/web/zope.html [depends] python (= 2.1.3-1) An interactive object-oriented scripting language (default version) [depends] python ( 2.2) An interactive object-oriented scripting language (default version) testing: http://packages.debian.org/testing/web/zope.html [depends] python2.1 (= 2.1.3-1) An interactive high-level object-oriented language (version 2.1) So, apt-get update apt-get install appropriate python (this should auto-deinstall 1.5) apt-get install --reinstall [--fix-broken] zope -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Broken Zope, Python, xbase-clients, etc
Russ Cook wrote: Hi Russell, I ran apt-get update, then apt-get install python. I did not specify a version. The system stated I am already at the latest version. I then ran apt-get install --reinstall --fix-broken zope. The log looks the same. If you still have a log of the session I sent previously, please notice that the python routines which are run seem to be from /usr/lib/python1.5, even though python2.3 is installed. Does Zope explicitly look for version 1.5? I'm really at a loss as to what is going on here. On my system: whereis python python: /usr/bin/python /usr/bin/python2.2 /usr/bin/python2.1 /etc/python2.1 /etc/python2.2 /usr/lib/python2.1 /usr/lib/python2.2 /usr/include/python2.1 /usr/include/python2.2 /usr/share/man/man1/python.1.gz ls -l /usr/bin/python /usr/bin/python - python2.2 Your system may have: /usr/bin/python - python1.5 If so, symlink it to point to python2.2. The other way is the debian alternatives system. You can have multiple versions of a tool, such as gcc-2.95.4, gcc-3.3, etc, but one gets called by the generic name of gcc. man update-alternatives rm /usr/bin/python rm /usr/share/man/man1/python.1.gz ln -s /etc/alternatives/pythonbin /usr/bin/python ln -s /etc/alternatives/pythonman.1.gz /usr/share/man/man1/python.1.gz update-alternatives --install /usr/bin/python pythonbin /usr/bin/python2.2 20 \ --slave /usr/share/man/man1/python.1.gz pythonman.1.gz /usr/share/man/man1/python2.2.1.gz Now check. ls -l /usr/bin/python /usr/bin/python - /etc/alternatives/pythonbin ls -l /etc/alternatives/pythonbin /etc/alternatives/pythonbin - /usr/bin/python2.2 ls -l /usr/share/man/man1/python.1.gz /usr/share/man/man1/python.1.gz - /etc/alternatives/pythonman.1.gz ls -l /etc/alternatives/pythonman.1.gz /etc/alternatives/pythonman.1.gz - /usr/share/man/man1/python2.2.1.gz -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Broken Zope, Python, xbase-clients, etc
Hi Russell, Thanks for the continued help. I tried the command you suggested, and the result is in the attached script file. Still no luck. On Sun, 7 Sep 2003, Russell Shaw wrote: Russ Cook wrote: Russell, The sources.list file was OK, but it referenced a local mirror for apt-move, which wasn't valid yet. I corrected that, and ran 'apt-get update' again, and then ran apt-get install -t testing zope, as you recommend. Attached is that script file. The errors are essentially the same. Can you or anyone else offer more suggestions? I would be very grateful. (Reading database ... 64003 files and directories currently installed.)^M Preparing to replace zope 2.3.3-1 (using .../zope_2.6.1-10_i386.deb) ...^M dpkg: warning - old pre-removal script returned error exit status 1^M dpkg - trying script from the new package instead ...^M invoke-rc.d: initscript zope, action stop failed.^M dpkg: error processing /var/cache/apt/archives/zope_2.6.1-10_i386.deb (--unpack):^M subprocess new pre-removal script returned error exit status 1^M dpkg -r --force-remove-reinstreq --force-depends zope apt-get install zope -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] zope_script.gz Description: Binary data
Re: Broken Zope, Python, xbase-clients, etc
Russ Cook wrote: Hi Russell, Thanks for the continued help. I tried the command you suggested, and the result is in the attached script file. Still no luck. On Sun, 7 Sep 2003, Russell Shaw wrote: Russ Cook wrote: Russell, The sources.list file was OK, but it referenced a local mirror for apt-move, which wasn't valid yet. I corrected that, and ran 'apt-get update' again, and then ran apt-get install -t testing zope, as you recommend. Attached is that script file. The errors are essentially the same. Can you or anyone else offer more suggestions? I would be very grateful. (Reading database ... 64003 files and directories currently installed.)^M Preparing to replace zope 2.3.3-1 (using .../zope_2.6.1-10_i386.deb) ...^M dpkg: warning - old pre-removal script returned error exit status 1^M dpkg - trying script from the new package instead ...^M invoke-rc.d: initscript zope, action stop failed.^M dpkg: error processing /var/cache/apt/archives/zope_2.6.1-10_i386.deb (--unpack):^M subprocess new pre-removal script returned error exit status 1^M dpkg -r --force-remove-reinstreq --force-depends zope apt-get install zope Removing zope ... dpkg: error processing zope (--remove): subprocess pre-removal script returned error exit status 1 /usr/lib/python1.5/py_compile.py:54: DeprecationWarning: strop functions are obsolete; use string methods codestring = string.replace(codestring,\r\n,\n) Zope assumes a later version of python: stable: http://packages.debian.org/stable/web/zope.html [depends] python (= 2.1.3-1) An interactive object-oriented scripting language (default version) [depends] python ( 2.2) An interactive object-oriented scripting language (default version) testing: http://packages.debian.org/testing/web/zope.html [depends] python2.1 (= 2.1.3-1) An interactive high-level object-oriented language (version 2.1) So, apt-get update apt-get install appropriate python (this should auto-deinstall 1.5) apt-get install --reinstall [--fix-broken] zope -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Broken Zope, Python, xbase-clients, etc
Russ Cook wrote: Please help. I tried to upgrade my system, after a long period of stable operation. During the upgrade attempt, use apt-get dselect-upgrade, Zope failed to upgrade, due to pre remove script failure. Zope is currently installed at 2.3.3-1 level, trying to upgrade to 2.6.1-10. It is trying to run python-base, which apparently is no longer available, and not on my system. I did reinstall python1.5_1.5.2-27_i386.deb and python1.5-dev_1.5.2-27_i386.deb, from ftp.debian.org/debian/pool/main/p/python1.5. Additional problems are that startx no longer exists on my system, and I can't run X. I don't know if this is directly related, but dselect and apt-get fail during all attempts to upgrade due to zope and python script errors. I am not a sophisticated user, and apparently have done myself damage. Can anyone offer some steps for me to try to restore my system? I will be happy to provide a copy of 'dpkg -l' or any logs to anyone willing to help. First, make sure you have lines for testing in sources.list. Then: apt-get update apt-cache search zope|sort for a list of zope things. apt-get install -t testing zope if it stalls on any dependencies, then apt-get them too. When that is complete, you can apt-get the X system. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Broken Zope, Python, xbase-clients, etc
Russ Cook wrote: Russell, I did as you suggested, but it made no difference in the errors I received. I scripted the output of apt-get, which I have compressed and attached. Can you make sense of this? The errors seem to occur in /usr/lib/python1.5/* and /usr/lib/zope/lib/python/* Thanks for any additional suggestions. It looks like you don't have a valid line in sources.list: W: Couldn't stat source package list file: testing/main Packages (/var/lib/apt/lists/_mirrors_debian_dists_testing_main_binary-i386_Packages) - stat (2 No such file or directory) W: Couldn't stat source package list file: testing/contrib Packages (/var/lib/apt/lists/_mirrors_debian_dists_testing_contrib_binary-i386_Packages) - stat (2 No such file or directory) W: Couldn't stat source package list file: testing/non-free Packages (/var/lib/apt/lists/_mirrors_debian_dists_testing_non-free_binary-i386_Packages) - stat (2 No such file or directory) Preconfiguring packages ... Fix that, then apt-get update. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Broken Zope, Python, xbase-clients, etc
Russell, The sources.list file was OK, but it referenced a local mirror for apt-move, which wasn't valid yet. I corrected that, and ran 'apt-get update' again, and then ran apt-get install -t testing zope, as you recommend. Attached is that script file. The errors are essentially the same. Can you or anyone else offer more suggestions? I would be very grateful. Thanks much, Russ On Sun, 7 Sep 2003, Russell Shaw wrote: Russ Cook wrote: Russell, I did as you suggested, but it made no difference in the errors I received. I scripted the output of apt-get, which I have compressed and attached. Can you make sense of this? The errors seem to occur in /usr/lib/python1.5/* and /usr/lib/zope/lib/python/* Thanks for any additional suggestions. It looks like you don't have a valid line in sources.list: W: Couldn't stat source package list file: testing/main Packages (/var/lib/apt/lists/_mirrors_debian_dists_testing_main_binary-i386_Packages) - stat (2 No such file or directory) W: Couldn't stat source package list file: testing/contrib Packages (/var/lib/apt/lists/_mirrors_debian_dists_testing_contrib_binary-i386_Packages) - stat (2 No such file or directory) W: Couldn't stat source package list file: testing/non-free Packages (/var/lib/apt/lists/_mirrors_debian_dists_testing_non-free_binary-i386_Packages) - stat (2 No such file or directory) Preconfiguring packages ... Fix that, then apt-get update. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] apt-get-script.gz Description: Binary data
Re: Broken Zope, Python, xbase-clients, etc
Russ Cook wrote: Russell, The sources.list file was OK, but it referenced a local mirror for apt-move, which wasn't valid yet. I corrected that, and ran 'apt-get update' again, and then ran apt-get install -t testing zope, as you recommend. Attached is that script file. The errors are essentially the same. Can you or anyone else offer more suggestions? I would be very grateful. (Reading database ... 64003 files and directories currently installed.)^M Preparing to replace zope 2.3.3-1 (using .../zope_2.6.1-10_i386.deb) ...^M dpkg: warning - old pre-removal script returned error exit status 1^M dpkg - trying script from the new package instead ...^M invoke-rc.d: initscript zope, action stop failed.^M dpkg: error processing /var/cache/apt/archives/zope_2.6.1-10_i386.deb (--unpack):^M subprocess new pre-removal script returned error exit status 1^M dpkg -r --force-remove-reinstreq --force-depends zope apt-get install zope -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]