[SOLVED] Updatemanager (3.0.3) --allow-downgrades is not understood

New to SolydXK? This is the place to start.
Please check the other subforums to see if there's a more suitable place for your question.
tacos40
Posts: 52
Joined: 14 Jul 2014 14:35
Location: Spain

[SOLVED] Updatemanager (3.0.3) --allow-downgrades is not understood

Postby tacos40 » 06 Aug 2016 20:33

Hello :-)

I write down these notes hoping it'll be somehow helpful for some users... and/or wonderful team of SolydXK maintainers :-)

a) Problem: SolydX updatemanager always working finely (1 year or more)...
...but it's failing lately, since mid July 2016 with message:

Code: Select all

Errors were encountered while processing:
 updatemanager
E: Command line option --allow-downgrades is not understood
b) Workarounds (sudo). I've succeeded with any of them:
b.1) Option 1: Update packages using Synaptic Package Manager
b.2) Option 2: Update with aptitude

Code: Select all

aptitude update 
aptitude safe-upgrade
b.3) Option 3: List packages with updatemanager but install them manually with apt-get

Code: Select all

...
apt-get install ntp
apt-get install openssh-client
...
c) Observations My yet incomplete :? notes:
c.1) UPDATEMANAGER BUG? : line 45 of updatemanager.conf file
containing the --allow-downgrades offending string :

Code: Select all

cat /usr/lib/solydxk/updatemanager/files/updatemanager.conf
c.2) UPDATEMANAGER BUG? : line 52 of updatemanager.postinst file
containing a call to unexistent /usr/lib/solydxk/system/adjust.py :

Code: Select all

cat /var/lib/dpkg/info/updatemanager.postinst
c.3) Addendum: There is also a .pyc file without associated .py

Code: Select all

 
 ls -ltr /usr/lib/solydxk/system/configobj.pyc
The latter is likely irrelevant for the problem above but .pyc presence without .py is risky
and could be useful from time to time... a systematic removal of orphaned .pyc files ..¿? IMHO.

Welcome comments, corrections, etc.

uvchik
Posts: 8
Joined: 06 Jun 2016 19:57

Re: Updatemanager (3.0.3) --allow-downgrades is not understood

Postby uvchik » 11 Oct 2016 13:56

I have the same problem. As a workaround I just use

Code: Select all

sudo apt-get update
sudo apt-get dist-upgrade
Starting the update manager again I get an "Everything is up to date!" ;)

User avatar
Arjen Balfoort
Site Admin
Posts: 9219
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Updatemanager (3.0.3) --allow-downgrades is not understood

Postby Arjen Balfoort » 11 Oct 2016 14:38

I missed this one (was on vacation at the time)!

If you have these kind of errors it's due to an old or corrupt configuration file.
You can safely remove the file to set the update manager back to its defaults:
  1. Close the update manager
  2. Code: Select all

    sudo rm /usr/lib/solydxk/updatemanager/files/updatemanager.conf
  3. Start the update manager


SolydXK needs you!
Development | Testing | Translations

tacos40
Posts: 52
Joined: 14 Jul 2014 14:35
Location: Spain

Re: Updatemanager (3.0.3) --allow-downgrades is not understood

Postby tacos40 » 11 Oct 2016 19:40

Hello :-)

Thank you Schoelje! for your reply

- I had already tried that removal 1-2 months ago... and it did not work.
I decided to uninstall 'updatemanager' as it is not performing its function anymore.
- I have tried to install back 'updatemanager' *today* and it fails... again:

Code: Select all

# apt-get install updatemanager
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  updatemanager
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/75.8 kB of archives.
After this operation, 693 kB of additional disk space will be used.
Selecting previously unselected package updatemanager.
(Reading database ... 219684 files and directories currently installed.)
Preparing to unpack .../updatemanager_3.0.3_all.deb ...
Unpacking updatemanager (3.0.3) ...
Processing triggers for menu (2.1.47) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for mime-support (3.58) ...
Processing triggers for desktop-file-utils (0.22-1) ...
Setting up updatemanager (3.0.3) ...
/var/lib/dpkg/info/updatemanager.postinst: 52: /var/lib/dpkg/info/updatemanager.postinst: /usr/lib/solydxk/system/adjust.py: not found
dpkg: error processing package updatemanager (--configure):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 updatemanager
E: Sub-process /usr/bin/dpkg returned an error code (1)
So /var/lib/dpkg/info/updatemanager.postinst: 52 appears again, as referred in my initial POST
Corruption is deeper, and I would appreciate help identifying the offending package/lib/config file

By the moment, I will purge again 'updatemanager' (I keep updating with aptitude update then safe-upgrade)

Thank you again in advance

User avatar
Zill
Posts: 1850
Joined: 13 Aug 2013 14:28
Location: Lincolnshire, UK

Re: Updatemanager (3.0.3) --allow-downgrades is not understood

Postby Zill » 11 Oct 2016 20:10

tacos40 wrote:

Code: Select all

 ...
/var/lib/dpkg/info/updatemanager.postinst: 52: /var/lib/dpkg/info/updatemanager.postinst: /usr/lib/solydxk/system/adjust.py: not found
Please open a terminal and post the full output of the following command:

Code: Select all

apt policy solydxk-system

tacos40
Posts: 52
Joined: 14 Jul 2014 14:35
Location: Spain

[SOLVED] Updatemanager (3.0.3) --allow-downgrades is not understood

Postby tacos40 » 13 Oct 2016 19:22

Hello!

Thank you Zill... for asking the right question! :-)

- That *solydxk-system* package was not installed: I assume it was somehow erroneously removed in the past :?:
- I immediately re-installed it yesterday... installed automatically some other packages, etc.
- Rebooted, etc, re-installed updatemanager ... and all is running finely now

This is the result today:

Code: Select all

apt-cache policy solydxk-system
solydxk-system:
  Installed: 2.3.6
  Candidate: 2.3.6
  Version table:
 *** 2.3.6 0
        600 http://ftp.nluug.nl/os/Linux/distr/solydxk/repository/ solydxk/main amd64 Packages
        100 /var/lib/dpkg/status
Additionally:

Code: Select all

apt show solydxk-system
Package: solydxk-system                  
New: yes
State: installed
Automatically installed: no
Version: 2.3.6
Priority: optional
Section: admin
Maintainer: Arjen Balfoort <arjenbalfoort@solydxk.com>
Architecture: all
Uncompressed Size: 273 k
Depends: python3, aptitude, util-linux, parted
Recommends: solydk-info | solydx-info, solydx-system-adjustments | solydk-system-adjustments
Conflicts: solydk-grub2-theme, solydk-grub2-theme, solydkbe-grub2-theme, solydkbe-grub2-theme,
           solydkbo-grub2-theme, solydkbo-grub2-theme, solydxbe-grub2-theme, solydxbe-grub2-theme
Replaces: solydk-grub2-theme, solydk-grub2-theme, solydkbe-grub2-theme, solydkbe-grub2-theme,
          solydkbo-grub2-theme, solydkbo-grub2-theme, solydxbe-grub2-theme, solydxbe-grub2-theme
Description: SolidXK System Base Package
 Used by the desktop and other SolydXK tools to gather information and process common system tasks.
- I wonder what is the Debian command to determine where a file (library, binary or config file) comes from? :roll:
- I know there is a query command in Redhat based systems (rpm -qf) returning package where the file comes from:

Code: Select all

rpm -qf /completepath/misteriousfile
- The idea is to apply similar query command to file "/usr/lib/solydxk/system/adjust.py", getting result: solydxk-system :-)
- Maybe there is not such a command...

If someone knows what is the equivalent command... I would appreciate it :mrgreen:

Thank you again Zill: :clap: :clap:

tacos40
Posts: 52
Joined: 14 Jul 2014 14:35
Location: Spain

Re: Updatemanager (3.0.3) --allow-downgrades is not understood

Postby tacos40 » 13 Oct 2016 19:48

An approximation for the command I want is next one:

Code: Select all

 
 dpkg-query --search 'adjust.py'
solydxk-system: /usr/lib/solydxk/system/adjust.py
However: what happens if package is not correctly installed ?
Handy command in these cases would be useful for troubleshooting.

Thank you for additional commands :idea: ;)

User avatar
Zill
Posts: 1850
Joined: 13 Aug 2013 14:28
Location: Lincolnshire, UK

Re: [SOLVED] Updatemanager (3.0.3) --allow-downgrades is not understood

Postby Zill » 13 Oct 2016 19:49

I'm pleased you found the problem. :-)

Would you now please mark the thread as solved to help any other users with a similar query. You need to edit your first post in this thread and add the prefix [Solved] to the title. Only the OP (Original Poster) can do this.
tacos40 wrote:... I wonder what is the Debian command to determine where a file (library, binary or config file) comes from? :roll:
- I know there is a query command in Redhat based systems (rpm -qf) returning package where the file comes from:

Code: Select all

rpm -qf /completepath/misteriousfile
- The idea is to apply similar query command to file "/usr/lib/solydxk/system/adjust.py", getting result: solydxk-system :-)
- Maybe there is not such a command...

If someone knows what is the equivalent command... I would appreciate it :mrgreen:
You can use "dpkg -S <packagename>" to search for a filename from installed packages.

e.g.

Code: Select all

roger@dino:~$ dpkg -S adjust.py
solydxk-system: /usr/lib/solydxk/system/adjust.py


Return to “Newbie Questions”

Who is online

Users browsing this forum: No registered users and 3 guests