UM "there are updates available" but it's not true

Post your bugs here.
User avatar
zerozero
Posts: 5373
Joined: 10 Feb 2013 23:37
Location: West Midlands, England
Contact:

UM "there are updates available" but it's not true

Postby zerozero » 06 Apr 2014 13:58

Since last night (when i decided to D-U my main system >> http://forums.solydxk.nl/viewtopic.php? ... =20#p31676 - a bumpy update that can be part of the following problem) UM still reports (with the icon and the mouse-over dialogue that there are updates available
snapshot223.png
snapshot223.png (16.94 KiB) Viewed 3653 times
but APT doesn't agree :mrgreen:

Code: Select all

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
full output here

Code: Select all

zerozero@home ~ $ sudo apt-get update && sudo apt-get dist-upgrade
Ign http://dl.google.com stable InRelease
Hit http://ftp.debian.org unstable InRelease                   
Hit http://dl.google.com stable Release.gpg                
Hit http://ftp.debian.org unstable/main amd64 Packages/DiffIndex            
Hit http://download.virtualbox.org wheezy InRelease             
Hit http://dl.google.com stable Release                     
Hit http://ftp.debian.org unstable/contrib amd64 Packages/DiffIndex              
Hit http://dl.google.com stable/main amd64 Packages     
Hit http://ftp.debian.org unstable/non-free amd64 Packages/DiffIndex           
Hit http://dl.google.com stable/main i386 Packages                           
Ign http://download.opensuse.org  InRelease                    
Hit http://download.virtualbox.org wheezy/contrib amd64 Packages             
Hit http://ftp.debian.org unstable/main i386 Packages/DiffIndex   
Hit http://packages.solydxk.com solydxk InRelease           
Hit http://community.solydxk.com solydxk InRelease     
Hit http://debian.solydxk.com testing InRelease                  
Ign http://debian.solydxk.com testing InRelease            
Hit http://ftp.debian.org unstable/contrib i386 Packages/DiffIndex     
Hit http://ftp.debian.org unstable/non-free i386 Packages/DiffIndex      
Hit http://ftp.debian.org unstable/contrib Translation-en/DiffIndex  
Hit http://ftp.debian.org unstable/main Translation-en/DiffIndex         
Hit http://download.virtualbox.org wheezy/contrib i386 Packages  
Hit http://ftp.debian.org unstable/non-free Translation-en/DiffIndex  
Hit http://download.opensuse.org  Release.gpg                        
Hit http://debian.solydxk.com testing/updates InRelease       
Hit http://packages.solydxk.com solydxk/main Sources            
Hit http://community.solydxk.com solydxk/main Sources              
Hit http://download.opensuse.org  Release   
Hit http://debian.solydxk.com testing Release.gpg                
Hit http://packages.solydxk.com solydxk/upstream Sources                                                         
Hit http://community.solydxk.com solydxk/main amd64 Packages                                                     
Ign http://dl.google.com stable/main Translation-en_GB                                                           
Hit http://debian.solydxk.com testing/main Sources/DiffIndex                                                     
Hit http://packages.solydxk.com solydxk/import Sources                                                           
Hit http://community.solydxk.com solydxk/main i386 Packages                                                      
Hit http://debian.solydxk.com testing/contrib Sources/DiffIndex                                                  
Ign http://dl.google.com stable/main Translation-en                                                              
Hit http://download.opensuse.org  Packages                                                                       
Hit http://packages.solydxk.com solydxk/kdenext Sources                                                          
Hit http://debian.solydxk.com testing/non-free Sources/DiffIndex                           
Hit http://packages.solydxk.com solydxk/main amd64 Packages                                
Hit http://debian.solydxk.com testing/main amd64 Packages/DiffIndex                        
Hit http://debian.solydxk.com testing/contrib amd64 Packages/DiffIndex                     
Hit http://debian.solydxk.com testing/non-free amd64 Packages/DiffIndex                    
Hit http://packages.solydxk.com solydxk/upstream amd64 Packages                            
Hit http://debian.solydxk.com testing/main i386 Packages/DiffIndex                         
Hit http://packages.solydxk.com solydxk/import amd64 Packages                              
Hit http://debian.solydxk.com testing/contrib i386 Packages/DiffIndex                      
Ign http://download.virtualbox.org wheezy/contrib Translation-en_GB                        
Hit http://packages.solydxk.com solydxk/kdenext amd64 Packages                             
Ign http://download.virtualbox.org wheezy/contrib Translation-en                           
Hit http://debian.solydxk.com testing/non-free i386 Packages/DiffIndex                     
Ign http://download.opensuse.org  Translation-en_GB                                        
Hit http://packages.solydxk.com solydxk/main i386 Packages           
Ign http://download.opensuse.org  Translation-en                     
Hit http://debian.solydxk.com testing/contrib Translation-en/DiffIndex
Hit http://packages.solydxk.com solydxk/upstream i386 Packages       
Hit http://debian.solydxk.com testing/main Translation-en/DiffIndex
Hit http://packages.solydxk.com solydxk/import i386 Packages
Hit http://debian.solydxk.com testing/non-free Translation-en/DiffIndex
Hit http://packages.solydxk.com solydxk/kdenext i386 Packages
Ign http://community.solydxk.com solydxk/main Translation-en_GB
Hit http://debian.solydxk.com testing/updates/main Sources
Ign http://community.solydxk.com solydxk/main Translation-en
Hit http://debian.solydxk.com testing/updates/contrib Sources
Hit http://debian.solydxk.com testing/updates/non-free Sources
Hit http://debian.solydxk.com testing/updates/main amd64 Packages
Hit http://debian.solydxk.com testing/updates/contrib amd64 Packages
Hit http://debian.solydxk.com testing/updates/non-free amd64 Packages
Hit http://debian.solydxk.com testing/updates/main i386 Packages
Hit http://debian.solydxk.com testing/updates/contrib i386 Packages
Hit http://debian.solydxk.com testing/updates/non-free i386 Packages
Hit http://debian.solydxk.com testing/updates/contrib Translation-en
Hit http://debian.solydxk.com testing/updates/main Translation-en
Hit http://debian.solydxk.com testing/updates/non-free Translation-en
Hit http://debian.solydxk.com testing Release
Hit http://debian.solydxk.com testing/main Sources
Hit http://debian.solydxk.com testing/non-free Sources
Hit http://debian.solydxk.com testing/main amd64 Packages
Hit http://debian.solydxk.com testing/non-free amd64 Packages
Hit http://debian.solydxk.com testing/main i386 Packages
Hit http://debian.solydxk.com testing/non-free i386 Packages
Ign http://packages.solydxk.com solydxk/import Translation-en_GB
Ign http://packages.solydxk.com solydxk/import Translation-en
Ign http://packages.solydxk.com solydxk/kdenext Translation-en_GB
Ign http://packages.solydxk.com solydxk/kdenext Translation-en
Ign http://packages.solydxk.com solydxk/main Translation-en_GB
Ign http://packages.solydxk.com solydxk/main Translation-en
Ign http://packages.solydxk.com solydxk/upstream Translation-en_GB
Ign http://packages.solydxk.com solydxk/upstream Translation-en
Ign http://debian.solydxk.com testing/main Translation-en_GB
Ign http://debian.solydxk.com testing/main Translation-en
Ign http://debian.solydxk.com testing/non-free Translation-en_GB
Ign http://debian.solydxk.com testing/non-free Translation-en
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libboost-signals1.54.0 libdb5.1:i386 liblivemedia17 liblsmash0 libopenimageio1.2 libprotobuf7 libquvi-scripts libquvi7 libraw9
  libserf1 libt1-5 libtotem-plparser17 libvala-0.20-0 libx264-140 libxcb-sync0 python-jinja2 python-psutil valac-0.20
  valac-0.20-vapi
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
zerozero@home ~ $
my sources.list and preferences file are (which ensures that sid packages are not upgraded/installed unless i say so)

Code: Select all

zerozero@home ~ $ inxi -r; cat /etc/apt/preferences
Repos:     Active apt sources in file: /etc/apt/sources.list
           deb http://packages.solydxk.com/testing/ solydxk main upstream import kdenext
           deb http://community.solydxk.com/testing/ solydxk main
           deb http://debian.solydxk.com/testing/ testing main contrib non-free
           deb http://debian.solydxk.com/testing/multimedia/ testing main non-free
           deb http://debian.solydxk.com/security/ testing/updates main contrib non-free
           deb-src http://packages.solydxk.com/testing/ solydxk main upstream import kdenext
           deb-src http://community.solydxk.com/testing/ solydxk main
           deb-src http://debian.solydxk.com/testing/ testing main contrib non-free
           deb-src http://debian.solydxk.com/testing/multimedia/ testing main non-free
           deb-src http://debian.solydxk.com/security/ testing/updates main contrib non-free
           deb http://download.virtualbox.org/virtualbox/debian/ wheezy contrib
           Active apt sources in file: /etc/apt/sources.list.d/google-talkplugin.list
           deb http://dl.google.com/linux/talkplugin/deb/ stable main
           Active apt sources in file: /etc/apt/sources.list.d/sid.list
           deb http://ftp.debian.org/debian unstable main contrib non-free
           Active apt sources in file: /etc/apt/sources.list.d/snapper.list
           deb http://download.opensuse.org/repositories/filesystems:snapper/Debian_7.0/ /
Package: *
Pin: release a=unstable
Pin-Priority: 50
zerozero@home ~ $ 
attached also the updatemanager log from earlier this afternoon
updatemanager.log
(31.11 KiB) Downloaded 59 times
and the terminal output from running updatemanager at a later date (and after exiting it from the panel)
UM-terminal-output.txt
(18 KiB) Downloaded 54 times
bliss of ignorance

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

Re: UM "there are updates available" but it's not true

Postby Arjen Balfoort » 06 Apr 2014 14:47

What do these commands return:

Code: Select all

aptitude search '~U'
apt-show-versions -u


SolydXK needs you!
Development | Testing | Translations

User avatar
zerozero
Posts: 5373
Joined: 10 Feb 2013 23:37
Location: West Midlands, England
Contact:

Re: UM "there are updates available" but it's not true

Postby zerozero » 06 Apr 2014 15:06

it's apt-show-versions causing it (good catch ;) )

Code: Select all

zerozero@home ~ $ apt-show-versions -u
cpp-4.4:amd64/unstable *manually* upgradeable from 4.4.7-6 to 4.4.7-8
gcc-4.4:amd64/unstable *manually* upgradeable from 4.4.7-6 to 4.4.7-8
gcc-4.4-base:amd64/unstable *manually* upgradeable from 4.4.7-6 to 4.4.7-8
libruby1.8:amd64/unstable *manually* upgradeable from 1.8.7.358-9 to 1.8.7.358-10
these 4 libs don't exist in testing now

Code: Select all

zerozero@home ~ $ apt policy cpp-4.4:amd64 gcc-4.4:amd64 gcc-4.4-base:amd64 libruby1.8:amd64
cpp-4.4:
  Installed: 4.4.7-6
  Candidate: 4.4.7-6
  Version table:
     4.4.7-8 0
         50 http://ftp.debian.org/debian/ unstable/main amd64 Packages
 *** 4.4.7-6 0
        100 /var/lib/dpkg/status
gcc-4.4:
  Installed: 4.4.7-6
  Candidate: 4.4.7-6
  Version table:
     4.4.7-8 0
         50 http://ftp.debian.org/debian/ unstable/main amd64 Packages
 *** 4.4.7-6 0
        100 /var/lib/dpkg/status
gcc-4.4-base:
  Installed: 4.4.7-6
  Candidate: 4.4.7-6
  Version table:
     4.4.7-8 0
         50 http://ftp.debian.org/debian/ unstable/main amd64 Packages
 *** 4.4.7-6 0
        100 /var/lib/dpkg/status
libruby1.8:
  Installed: 1.8.7.358-9
  Candidate: 1.8.7.358-9
  Version table:
     1.8.7.358-10 0
         50 http://ftp.debian.org/debian/ unstable/main amd64 Packages
 *** 1.8.7.358-9 0
        100 /var/lib/dpkg/status
and according to the pinning APT won't update them.
bliss of ignorance

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

Re: UM "there are updates available" but it's not true

Postby Arjen Balfoort » 06 Apr 2014 18:19



SolydXK needs you!
Development | Testing | Translations

User avatar
zerozero
Posts: 5373
Joined: 10 Feb 2013 23:37
Location: West Midlands, England
Contact:

Re: UM "there are updates available" but it's not true

Postby zerozero » 06 Apr 2014 20:06

snapshot224.png
from my point of view i would consider this "bug" solved
v.2.0.1 identifies the packages but doesn't upgrade them

Code: Select all

Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Command to execute: apt-get --assume-no dist-upgrade
Creating: /usr/lib/solydxk/updatemanager/.uminstall
Terminal execute command: apt-get -y --force-yes dist-upgrade
INFO      Lined added: Reading package lists... Done (col=0, row=124)
INFO      Lined added: B (col=0, row=124)
INFO      Lined added: Building dependency tree (col=0, row=126)
INFO      Lined added: Reading state information... Done (col=0, row=126)
INFO      Lined added: Calculating upgrade... Done (col=0, row=127)
INFO      Command finished (pid=18271, nid=uminstall)
Deleting: /usr/lib/solydxk/updatemanager/.uminstall
UmRefresh refresh count #: 3
Command to execute: aptitude search '~U' | awk '{print $2}'
Command to execute: apt-show-versions -u
Command to execute: apt-show-versions -u
INFO      Lined added: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. (col=0, row=128)
Command to execute: aptitude search '~U' | awk '{print $2}'
Done refreshing
Command to execute: apt-show-versions -u
Create list store eval string: Gtk.ListStore(str, str, str, int, int)
First item is column name (multi-column list): Package
First item is column name (multi-column list): Current version
First item is column name (multi-column list): New version
Create column names: ['Package', 'Current version', 'New version']
First item is column name: skip first item
Create column: Gtk.TreeViewColumn("Package", Gtk.CellRendererText(), text=0, weight=3, size=4)
Column added: Package
Create column: Gtk.TreeViewColumn("Current version", Gtk.CellRendererText(), text=1, weight=3, size=4)
Column added: Current version
Create column: Gtk.TreeViewColumn("New version", Gtk.CellRendererText(), text=2, weight=3, size=4)
Column added: New version
show URL: http://packages.solydxk.com/umfiles/tst/update-pack.html
Command to execute: apt-get --assume-no upgrade
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[this is the output from the moment UM shows me the 4 libs to upgrade, i hit install and it comes back to the same screen]

===
unless this wasn't your expect result, it's fine for me.
whoever comes across similar situations has to have a special APT configuration and knows why (or at least should :lol: ) this is happening.
bliss of ignorance

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

Re: UM "there are updates available" but it's not true

Postby Arjen Balfoort » 07 Apr 2014 06:04

Added to the testing repository.


SolydXK needs you!
Development | Testing | Translations

User avatar
stelios
Posts: 128
Joined: 28 Feb 2013 21:31
Location: Athens

Re: UM "there are updates available" but it's not true

Postby stelios » 08 Apr 2014 01:34

zerozero wrote:Stelios
regarding this UM question, i'm in a similar situation (see this topic http://forums.solydxk.nl/viewtopic.php?f=13&t=3411);
UM reports 4 (in my case) upgradeable packages but in reality it doesn't upgrade them.
this is the result of the

Code: Select all

apt-show-versions -u
output but this command can't overwrite pin-preferences (or any other mechanism in use like, eventually, apt-mark)

in my particular situation, the 4 lib that are shown as "upgradeable" don't exist in testing and apt-show-versions sees the newest version in my enabled sid repo (hence they appear in UM) but apt policy shows that the now obsolete testing version is still the "version candidate" (so it matches what my pinning wants)

i got the 3 updates (gdebi, gdebi-kde flash) through UM, it installed them without problem (even though before it had those 4 libs as upgradeable) and after that it came back to show again the 4.
I am answering here to keep the other topic clean, since this is not really much related to testing the new UP. But yes, that is what i understood, the hard way :lol: The command apt-show-versions -u lists the upgradeable packages according to version and origin of the installed packages, ignoring pin priority.

So when i do a dist-upgrade, i see no upgradeable packages. When i do a dist-upgrade targeting unstable, i get a multitude of upgradeable packages. When i do a apt-show-versions -u, the packages marked as installed from unstable with a new version uploaded there, will show up as upgradeable, regardless of the pin priority, simply because of their origin. They will not be installed, because, in the end, dist-upgrade will respect pin priority, but they will show up in UM.

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

Re: UM "there are updates available" but it's not true

Postby Arjen Balfoort » 08 Apr 2014 07:27

I've been looking for a solution on this for a long time.

The best way would be to run dist-upgrade and extract the upgradable packages from the output.
However, depending on the regional settings, the language, and the format might differ which might result in an error, and make UM useless.

I tried to set the LANG environment for a single command like so:

Code: Select all

sudo env LANG=nl_NL.UTF-8 bash -c 'locale; echo; apt-get dist-upgrade --assume-no; echo; locale'
Which theoretically runs bash in the set language (in this case: Dutch). The locale is set to nl_NL, but dist-upgrade is still running in en_US.

So, that seems a dead end.


SolydXK needs you!
Development | Testing | Translations

User avatar
grizzler
Posts: 2180
Joined: 04 Mar 2013 15:45
Location: The Hague, NL

Re: UM "there are updates available" but it's not true

Postby grizzler » 08 Apr 2014 12:39

Are you sure it's a dead end?

I have been told (repeatedly ;) ) that I should use LANG=C before any terminal command if I want that command to produce an English text, so that's what I've been doing. If I put

Code: Select all

LANG=nl_NL.utf8
apt-get dist-upgrade --assume-no
in a script and run that script with sudo, the resulting text is in Dutch. If I replace the first line with LANG=C, it's in English.

So in a script, this does seem to work (I know it's different with both commands on a single line in a terminal - I used to know the reason as well...).
Frank

SolydX EE 64 - tracking Debian Testing

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

Re: UM "there are updates available" but it's not true

Postby Arjen Balfoort » 08 Apr 2014 12:45

grizzler wrote:Are you sure it's a dead end?

I have been told (repeatedly ;) ) that I should use LANG=C before any terminal command if I want that command to produce an English text, so that's what I've been doing. If I put

Code: Select all

LANG=nl_NL.utf8
apt-get dist-upgrade --assume-no
in a script and run that script with sudo, the resulting text is in Dutch. If I replace the first line with LANG=C, it's in English.

So in a script, this does seem to work (I know it's different with both commands on a single line in a terminal - I used to know the reason as well...).
Okay....I'll try that out later tonight.
Thanks!


SolydXK needs you!
Development | Testing | Translations

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

Re: UM "there are updates available" but it's not true

Postby Arjen Balfoort » 08 Apr 2014 14:26

I created this bash:

Code: Select all

#!/bin/bash
LANG=nl_NL.UTF-8
apt-get dist-upgrade --assume-no
echo "LANG=$LANG"
and ran:

Code: Select all

chmod +x lang-test.sh
sudo lang-test.sh
with this output:

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
LANG=nl_NL.UTF-8
Still no change, I'm afraid.


SolydXK needs you!
Development | Testing | Translations

User avatar
grizzler
Posts: 2180
Joined: 04 Mar 2013 15:45
Location: The Hague, NL

Re: UM "there are updates available" but it's not true

Postby grizzler » 08 Apr 2014 14:43

And if you try LANG=nl_NL.utf8 instead of nl_NL.UTF-8?
Frank

SolydX EE 64 - tracking Debian Testing

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

Re: UM "there are updates available" but it's not true

Postby Arjen Balfoort » 08 Apr 2014 15:04

grizzler wrote:And if you try LANG=nl_NL.utf8 instead of nl_NL.UTF-8?
I tried several:

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
LANG=nl_NL.UTF-8

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
LANG=nl_NL.utf-8

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
LANG=nl_NL.utf8

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
LANG=nl_NL

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
LANG=nl


SolydXK needs you!
Development | Testing | Translations

User avatar
grizzler
Posts: 2180
Joined: 04 Mar 2013 15:45
Location: The Hague, NL

Re: UM "there are updates available" but it's not true

Postby grizzler » 08 Apr 2014 15:13

Odd. No idea what's wrong here, I'm afraid.
Frank

SolydX EE 64 - tracking Debian Testing

User avatar
grizzler
Posts: 2180
Joined: 04 Mar 2013 15:45
Location: The Hague, NL

Re: UM "there are updates available" but it's not true

Postby grizzler » 08 Apr 2014 16:07

Wait a minute... Do you have the Dutch locale enabled at all? I automatically assumed you were using an NL system, but are you?

I just ran a few tests with other locales like de_DE.utf8 and found that they don't work because I don't have those locales enabled.
Frank

SolydX EE 64 - tracking Debian Testing

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

Re: UM "there are updates available" but it's not true

Postby Arjen Balfoort » 08 Apr 2014 16:39

That might probably be it.
However, if that is needed to temporary change the language for the execution of a bash file, I'll have just another problem. I'll need to enable en_US on each non en_US machine, set the LANG environment variable to en_US, and turn it back to what it was after executing the command. That sounds like asking for trouble.
Perhaps we should live with the fact that in some cases the updatable packages list is not entirely true.


SolydXK needs you!
Development | Testing | Translations

User avatar
stelios
Posts: 128
Joined: 28 Feb 2013 21:31
Location: Athens

Re: UM "there are updates available" but it's not true

Postby stelios » 08 Apr 2014 16:42

I don't know if this helps, but i use export LC_ALL=C in terminal to change the output to English

For example

Code: Select all

stelios@SolydK ~ $ apt dist-upgrade
[sudo] password for stelios: 
Ανάγνωση Λιστών Πακέτων... Ολοκληρώθηκε
Κατασκευή Δένδρου Εξαρτήσεων                  
Ανάγνωση περιγραφής της τρέχουσας κατάσταση... Ολοκληρώθηκε
Υπολογισμός της αναβάθμισης... Ετοιμο
0 αναβαθμίστηκαν, 0 νέο εγκατεστημένα, 0 θα αφαιρεθούν και 0 δεν αναβαθμίζονται.
and

Code: Select all

stelios@SolydK ~ $ export LC_ALL=C
stelios@SolydK ~ $ apt dist-upgrade
[sudo] password for stelios: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 
So that could make the output of dist-upgrade consistent, no matter the language used by the system

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

Re: UM "there are updates available" but it's not true

Postby Arjen Balfoort » 08 Apr 2014 16:51

Okay, I'll have to prepare a VM for that.
I'll get back as soon as I tested it.


SolydXK needs you!
Development | Testing | Translations

User avatar
grizzler
Posts: 2180
Joined: 04 Mar 2013 15:45
Location: The Hague, NL

Re: UM "there are updates available" but it's not true

Postby grizzler » 08 Apr 2014 16:55

That's more or less what I meant originally. Using C (LANG=C, LC_ALL=C) to force English should work on any system because that's a default that's always available. Check locale -a on your system. You should see C listed.

Edit: not sure about the export LC_ALL=C because that might screw up non English locales. You don't need to export the C locale, you just need it for the running process.
Edit again: never mind. That only goes 'down', not 'up'. Still, export shouldn't be necessary inside a script.
Frank

SolydX EE 64 - tracking Debian Testing

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

Re: UM "there are updates available" but it's not true

Postby Arjen Balfoort » 08 Apr 2014 17:35

That's it!

Code: Select all

solydxk solydxk # env LANG=C bash -c 'apt-get dist-upgrade --assume-no'
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

solydxk solydxk # locale
LANG=nl_NL.UTF-8
LANGUAGE=
LC_CTYPE="nl_NL.UTF-8"
LC_NUMERIC="nl_NL.UTF-8"
LC_TIME="nl_NL.UTF-8"
LC_COLLATE="nl_NL.UTF-8"
LC_MONETARY="nl_NL.UTF-8"
LC_MESSAGES="nl_NL.UTF-8"
LC_PAPER="nl_NL.UTF-8"
LC_NAME="nl_NL.UTF-8"
LC_ADDRESS="nl_NL.UTF-8"
LC_TELEPHONE="nl_NL.UTF-8"
LC_MEASUREMENT="nl_NL.UTF-8"
LC_IDENTIFICATION="nl_NL.UTF-8"
LC_ALL=
Now I can adapt UM.

Thank you very much, gentlemen!


SolydXK needs you!
Development | Testing | Translations


Return to “Bug Control”

Who is online

Users browsing this forum: No registered users and 2 guests