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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
05-07-2012, 08:45 AM
|
#1
|
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:
|
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.
|
|
|
05-07-2012, 11:27 AM
|
#2
|
Senior Member
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766
Rep: 
|
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
|
|
|
05-08-2012, 04:52 AM
|
#3
|
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:
|
Quote:
Originally Posted by amani
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.
|
|
|
05-08-2012, 05:24 AM
|
#4
|
LQ Addict
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
|
From what you have posted your system is up to date.
|
|
|
05-08-2012, 06:46 AM
|
#5
|
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:
|
Quote:
Originally Posted by 273
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.
|
|
|
05-08-2012, 06:55 AM
|
#6
|
LQ Addict
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
|
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.
|
|
|
05-08-2012, 10:34 AM
|
#7
|
Senior Member
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,915
|
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.
|
05-09-2012, 02:07 AM
|
#8
|
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:
|
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.
|
|
|
05-09-2012, 10:11 AM
|
#9
|
Senior Member
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,915
|
You can install Iceweasel 12 from backports.
Debian Mozilla team APT archive - http://mozilla.debian.net/
A suggested sources.list this will give you pretty much any package you will need.
|
|
|
05-10-2012, 11:59 AM
|
#10
|
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:
|
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
|
|
|
05-10-2012, 12:21 PM
|
#11
|
Senior Member
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,915
|
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. 
|
|
|
05-13-2012, 12:46 AM
|
#12
|
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:
|
Quote:
Originally Posted by craigevil
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.
|
|
|
All times are GMT -5. The time now is 04:46 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|