LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-07-2012, 08:45 AM   #1
r00ster
Member
 
Registered: May 2007
Location: boundary beach, bc
Distribution: 3.2.0-4-686-pae #1 SMP Debian 3.2.60-1+deb7u3 i686 GNU/Linux
Posts: 224

Rep: Reputation: 15
update & upgrade issue


I've been using linux for a while, but this is definitely a newbie type query.

I recently installed Squeeze and have had nothing but trouble dealing with the weird of it. I think I am close to losing my mind.

I've never had trouble doing the update - upgrade thing; formerly with apt-get and now with aptitude. The P/O for 'upgrade' followed by a check on 'update' ... at least as I remember it, used to show no new packages available. Conclusion: the updates got installed.

Now, each time I run 'update', the list of available updates just gets longer and repeating what was listed before. It seems to me the upgrades aren't 'installing'. Here's a copy of the attempt I made today after receiving a notice to update, followed by my 'sources.list' in case it's configured wrong. If I do need to edit the 'sources.list', I'll need more help because none of my pre-Squeeze methods work. E.g.,
# nano: screen too small.
# kwrite: Unknown id: kwrite cannot connect to Xserver
# xedit: no protocol specified Error: Can't open display: :0
# vim: command not found
$ kdesu: command not found
$ gksu: command not found (a longshot, I know)

Code:
# aptitude update
Ign cdrom://[Debian GNU/Linux 6.0.4 _Squeeze_ - Official i386 kde-CD Binary-1 20120128-12:53] squeeze Release.gpg
Ign cdrom://[Debian GNU/Linux 6.0.4 _Squeeze_ - Official i386 kde-CD Binary-1 20120128-12:53]/ squeeze/main Translation-en
Ign cdrom://[Debian GNU/Linux 6.0.4 _Squeeze_ - Official i386 kde-CD Binary-1 20120128-12:53]/ squeeze/main Translation-en_CA
Ign cdrom://[Debian GNU/Linux 6.0.4 _Squeeze_ - Official i386 kde-CD Binary-1 20120128-12:53] squeeze Release
Ign cdrom://[Debian GNU/Linux 6.0.4 _Squeeze_ - Official i386 kde-CD Binary-1 20120128-12:53] squeeze/main i386 Packages/DiffIndex
Get:1 http://backports.debian.org squeeze-backports Release.gpg [836 B]            
Ign http://backports.debian.org/debian-backports/ squeeze-backports/main Translation-en
Ign http://backports.debian.org/debian-backports/ squeeze-backports/main Translation-en_CA
Get:2 http://backports.debian.org squeeze-backports Release [77.6 kB]              
Hit http://security.debian.org squeeze/updates Release.gpg                         
Ign http://security.debian.org/ squeeze/updates/main Translation-en                
Ign http://security.debian.org/ squeeze/updates/main Translation-en_CA             
Hit http://security.debian.org squeeze/updates Release                             
Hit http://debian.yorku.ca squeeze Release.gpg                        
Ign http://debian.yorku.ca/debian/ squeeze/main Translation-en        
Hit http://backports.debian.org squeeze-backports/main i386 Packages/DiffIndex     
Ign http://debian.yorku.ca/debian/ squeeze/main Translation-en_CA                  
Hit http://debian.yorku.ca squeeze-updates Release.gpg              
Ign http://debian.yorku.ca/debian/ squeeze-updates/main Translation-en
Ign http://debian.yorku.ca/debian/ squeeze-updates/main Translation-en_CA
Hit http://debian.yorku.ca squeeze Release                          
Hit http://mozilla.debian.net squeeze-backports Release.gpg         
Ign http://mozilla.debian.net/ squeeze-backports/iceweasel-release Translation-en
Ign http://mozilla.debian.net/ squeeze-backports/iceweasel-release Translation-en_CA
Hit http://security.debian.org squeeze/updates/main Sources                        
Hit http://debian.yorku.ca squeeze-updates Release                   
Hit http://mozilla.debian.net squeeze-backports Release                            
Hit http://security.debian.org squeeze/updates/main i386 Packages    
Hit http://debian.yorku.ca squeeze/main Sources                     
Hit http://debian.yorku.ca squeeze/main i386 Packages
Hit http://debian.yorku.ca squeeze-updates/main Sources/DiffIndex
Hit http://debian.yorku.ca squeeze-updates/main i386 Packages/DiffIndex
Ign http://mozilla.debian.net squeeze-backports/iceweasel-release i386 Packages
Hit http://debian.yorku.ca squeeze-updates/main i386 Packages
Hit http://mozilla.debian.net squeeze-backports/iceweasel-release i386 Packages
Fetched 78.5 kB in 1s (66.7 kB/s)
                            
# aptitude upgrade
Resolving dependencies...                
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Code:
# cat /etc/apt/sources.list
# 

# deb cdrom:[Debian GNU/Linux 6.0.4 _Squeeze_ - Official i386 kde-CD Binary-1 20120128-12:53]/ squeeze main

# deb cdrom:[Debian GNU/Linux 6.0.4 _Squeeze_ - Official i386 kde-CD Binary-1 20120128-12:53]/ squeeze main


deb http://debian.yorku.ca/debian/ squeeze main
deb-src http://debian.yorku.ca/debian/ squeeze main

deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main

# squeeze-updates, previously known as 'volatile'
deb http://debian.yorku.ca/debian/ squeeze-updates main
deb-src http://debian.yorku.ca/debian/ squeeze-updates main

# to update iceweasel for gmail browser requirements - per:http://mozilla.debian.net/
deb http://backports.debian.org/debian-backports squeeze-backports main
deb http://mozilla.debian.net/ squeeze-backports iceweasel-release
r.

Last edited by r00ster; 05-07-2012 at 08:59 AM.
 
Old 05-07-2012, 11:27 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
Forget aptitude.

#su

#apt-get clean && apt-get -f install && apt-get update && apt-get upgrade

#apt-get install synaptic vim

use synaptic or other package managers to update /install things not available
 
Old 05-08-2012, 04:52 AM   #3
r00ster
Member
 
Registered: May 2007
Location: boundary beach, bc
Distribution: 3.2.0-4-686-pae #1 SMP Debian 3.2.60-1+deb7u3 i686 GNU/Linux
Posts: 224

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by amani View Post
Forget aptitude.

#su

#apt-get clean && apt-get -f install && apt-get update && apt-get upgrade

#apt-get install synaptic vim

use synaptic or other package managers to update /install things not available
amani;

Sounds drastic! I'd appreciate feedback on what I posted; i.e., is my system being updated/upgraded? I'd like to think there is a simple answer based on the info I provided. A little help understanding what the P/O means would be a big help to me.

r.
 
Old 05-08-2012, 05:24 AM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
From what you have posted your system is up to date.
 
Old 05-08-2012, 06:46 AM   #5
r00ster
Member
 
Registered: May 2007
Location: boundary beach, bc
Distribution: 3.2.0-4-686-pae #1 SMP Debian 3.2.60-1+deb7u3 i686 GNU/Linux
Posts: 224

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by 273 View Post
From what you have posted your system is up to date.
That's what I hoped. I guess I should ignore the persistent notification that 2 new updates are available and recommended. It's very confusing to see:
Code:
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
... when I'm responding to such notifications. Is it that I am misunderstanding the difference between 'packages' and 'updates'?

r.
 
Old 05-08-2012, 06:55 AM   #6
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
It looks like an update is being held back, perhaps because it would remove an existing package or install a new package as a dependency.
I use apt-get rather than aptitude and it usually lists the held back packages, the install of which can often be done by issuing apt-get dist-upgrade. I'm not sure whether there is similar for aptitude.
 
Old 05-08-2012, 10:34 AM   #7
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,886
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
aptitude update
aptitude upgrade
aptitude full-upgrade

or with apt-get
apt-get update
apt-get upgrade
apt-get dist-upgrade

Quote:
update
update is used to resynchronize the package index files from their sources. The indexes of available packages are fetched from the location(s) specified in /etc/apt/sources.list. For example, when using a Debian archive,this command retrieves and scans the Packages.gz files, so that information about new and updated packages is available. An update should always be performed before an upgrade or dist-upgrade. Please be aware that the overall progress meter will be incorrect as the size of the package files cannot be known in advance.
Quote:
upgrade
upgrade is used to install the newest versions of all packages currently installed on the system from the sources enumerated in /etc/apt/sources.list. Packages currently installed with new versions available are retrieved and upgraded; under no circumstances are currently installed packages removed, or packages not already installed retrieved and installed. New versions of currently installed packages that cannot be
upgraded without changing the install status of another package will be left at their current version.
An update must be performed first so that apt-get knows that new versions of packages are available.
Quote:
dist-upgrade
dist-upgrade in addition to performing the function of upgrade, also intelligently handles changing dependencies with new versions of packages; apt-get has a "smart" conflict resolution system, and it will attempt to upgrade the most important packages at the expense of less important ones if necessary. So,dist-upgrade command may remove some packages. The /etc/apt/sources.list file contains a list of locations from which to retrieve desired package files. See also apt_preferences(5) for a mechanism for overriding the general settings for individual packages.
 
1 members found this post helpful.
Old 05-09-2012, 02:07 AM   #8
r00ster
Member
 
Registered: May 2007
Location: boundary beach, bc
Distribution: 3.2.0-4-686-pae #1 SMP Debian 3.2.60-1+deb7u3 i686 GNU/Linux
Posts: 224

Original Poster
Rep: Reputation: 15
craig;

I took another shot using 'sudo aptitude', 'update', 'upgrade' and 'full-upgrade'.

To the best of my very limited understanding, there is some issue about screen size which probably isn't a problem.

FYI I'm still using a Dell CRT 16 in. monitor.

Code:
~$ sudo aptitude full-upgrade
The following NEW packages will be installed:
  libmozjs12d{a} libvpx1{a} xulrunner-12.0{ab} 
The following packages will be upgraded:
  iceweasel 
1 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 15.8 MB of archives. After unpacking 29.3 MB will be used.
The following packages have unmet dependencies:
  xulrunner-12.0: Depends: libcairo2 (>= 1.10.2-1.1~) but 1.8.10-6 is installed.
                  Depends: libnss3-1d (>= 3.13.2) but 3.12.8-1+squeeze4 is installed.
The following actions will resolve these dependencies:

     Remove the following packages:                       
1)     iceweasel                                          

     Keep the following packages at their current version:
2)     xulrunner-12.0 [Not Installed]                     



Accept this solution? [Y/n/q/?] y
The following packages will be REMOVED:
  iceweasel{a} 
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 4,071 kB will be freed.
Do you want to continue? [Y/n/?] y
(Reading database ... 84398 files and directories currently installed.)
Removing iceweasel ...
Removing 'diversion of /usr/bin/firefox to /usr/bin/firefox.real by iceweasel'
Processing triggers for hicolor-icon-theme ...
Processing triggers for man-db ...
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend requires a screen at least 13 lines tall and 31 columns wide.)
debconf: falling back to frontend: Readline
Processing triggers for menu ...
                                         
Current status: 0 updates [-1].
Unless this indicates I need to adjust something, I'd consider the matter [Solved]

r.
 
Old 05-09-2012, 10:11 AM   #9
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,886
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
You can install Iceweasel 12 from backports.

Debian Mozilla team APT archive - http://mozilla.debian.net/
Quote:
Make sure you have these two lines in your sources.list
deb http://backports.debian.org/debian-backports squeeze-backports main
deb http://mozilla.debian.net/ squeeze-backports iceweasel-release

then you can install it with the following commands:

$ apt-get update
$ apt-get install -t squeeze-backports iceweasel
A suggested sources.list this will give you pretty much any package you will need.
Quote:
#Stable
deb http://http.us.debian.org/debian/ squeeze main contrib non-free
#Stable Sources
#deb-src http://http.us.debian.org/debian/ squeeze main contrib non-free

#Security Updates http://www.debian.org/security/
deb http://security.debian.org/ squeeze/updates main contrib non-free

# Squeeze-updates
deb http://mirrors.kernel.org/debian/ squeeze-updates main contrib non-free

# Debian Stable Backports
# For information visit - http://backports.debian.org/
deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free

# Mozilla Debian repo http://mozilla.debian.net
deb http://mozilla.debian.net/ squeeze-backports iceweasel-release

# Debian Multimedia Packages - http://debian-multimedia.org/
deb http://www.debian-multimedia.org squeeze main non-free
 
Old 05-10-2012, 11:59 AM   #10
r00ster
Member
 
Registered: May 2007
Location: boundary beach, bc
Distribution: 3.2.0-4-686-pae #1 SMP Debian 3.2.60-1+deb7u3 i686 GNU/Linux
Posts: 224

Original Poster
Rep: Reputation: 15
Craig;

I drafted an amended 'sources.list' (below) as per your suggestions.
If it isn't too messed up, I'll edit it proper.

BTW: I found out why 'kdesu' wouldn't call up text editors in Squeeze. The
new protocol is for 'kdesudo'. Works like a charm.

Code:
# 

# deb cdrom:[Debian GNU/Linux 6.0.4 _Squeeze_ - Official i386 kde-CD Binary-1 20120128-12:53]/ squeeze main

# deb cdrom:[Debian GNU/Linux 6.0.4 _Squeeze_ - Official i386 kde-CD Binary-1 20120128-12:53]/ squeeze main


deb http://debian.yorku.ca/debian/ squeeze main
#Stable 
deb http://http.us.debian.org/debian/ squeeze main contrib non-free
deb-src http://debian.yorku.ca/debian/ squeeze main

#Stable Sources 
#deb-src http://http.us.debian.org/debian/ squeeze main contrib non-free

#Security Updates http://www.debian.org/security/ 
deb http://security.debian.org/ squeeze/updates main
#deb-src http://security.debian.org/ squeeze/updates main
deb http://security.debian.org/ squeeze/updates main contrib non-free

# Squeeze-updates 
# squeeze-updates, previously known as 'volatile'
deb http://debian.yorku.ca/debian/ squeeze-updates main
deb http://mirrors.kernel.org/debian/ squeeze-updates main contrib non-free

deb-src http://debian.yorku.ca/debian/ squeeze-updates main

# to update iceweasel for gmail browser requirements - per:http://mozilla.debian.net/
deb http://backports.debian.org/debian-backports squeeze-backports main
deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free
deb http://mozilla.debian.net/ squeeze-backports iceweasel-release

# Debian Multimedia Packages - http://debian-multimedia.org/
 deb http://www.debian-multimedia.org squeeze main non-free
 
Old 05-10-2012, 12:21 PM   #11
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,886
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
Get rid of the duplicates, they won't hurt but it will make apt-get update take longer. I would also comment # the deb-src lines you do not need them unless you plan on compiling or building Debian packages.

Also to use kdesu do this as root:
Code:
ln -s /usr/lib/kde4/libexec/kdesu /usr/bin/kdesu
I use it all the time, no silly sudo on my system.
 
Old 05-13-2012, 12:46 AM   #12
r00ster
Member
 
Registered: May 2007
Location: boundary beach, bc
Distribution: 3.2.0-4-686-pae #1 SMP Debian 3.2.60-1+deb7u3 i686 GNU/Linux
Posts: 224

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by craigevil View Post
Get rid of the duplicates, they won't hurt but it will make apt-get update take longer. I would also comment # the deb-src lines you do not need them unless you plan on compiling or building Debian packages.
Done.
Quote:
Also to use kdesu do this as root:
Code:
ln -s /usr/lib/kde4/libexec/kdesu /usr/bin/kdesu
I use it all the time, no silly sudo on my system.
Seems to be strong opinions pro-and-con on 'sudo'. I just got through taking advice to
start using it instead of 'su'.
[URL="http://www.linuxquestions.org/questions/linux-desktop-74/squeeze-kde-plasma-dt-cant-create-folder-file-942352/#post4666907"[/URL]

r.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Update & Upgrade johnsonkv91 Debian 1 03-12-2012 02:51 AM
Issue with yum update while doing Redhat upgrade from 5.2 to 5.6 vinayagam Linux - Server 1 08-18-2011 06:49 AM
ESX3.5i to vSphere Upgrade using Update Manager... issue ThunderCat Linux - Virtualization and Cloud 1 08-03-2010 04:39 PM
[SOLVED] Synaptic package manager error when trying to upgrade & update MACD2010 Linux - Newbie 2 01-26-2010 05:40 AM
sudo apt-get update && sudo apt-get upgrade hallve_revera Linux - Newbie 6 01-10-2009 09:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration