LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-01-2011, 07:29 PM   #16
62chevy
Member
 
Registered: Mar 2002
Location: West (By God) Virginia
Distribution: Debian Squeeze - Sid
Posts: 281

Rep: Reputation: 45

Sid will give you a lot of insight on how Debian and apt work. One word of caution never use apt-get dist-upgrade or aptitude full-upgrade. half your system could get ripped out because something has missing dependencies. If you must see what is being held back with apt-get safe-upgrade or aptitude upgrade then ' aptitude full-upgrade -s ' will let you play but never install or remove anything. Also with Sid you should ' aptitude update && aptitude upgrade ' at least twice a week. Some do it two or three times a day but twice a week should be fine for most people.


Hope you enjoy your new install.

Suggested reading:

man dpkg
man dpkg-reconfigure
man apt-get
man aptitude
 
Old 10-02-2011, 02:16 AM   #17
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
I use
Code:
apt-get dist-upgrade
all the time, and never had problems. Well: no unusual ones.

Quote:
apt-get safe-upgrade or aptitude upgrade
It's the other way around.

Anyway: keeping the system up to date and using the simulate switch: -s; both described by 62chevy, sure helps a lot.
I wouldn't expect too much by running Sid. It still is Debian: stable as a rock.

Last edited by j1alu; 10-02-2011 at 02:18 AM.
 
Old 10-02-2011, 04:14 AM   #18
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Quote:
Originally Posted by 62chevy View Post
One word of caution never use apt-get dist-upgrade or aptitude full-upgrade.
You're perhaps thinking of testing? With Sid you should always do one of the following to upgrade:

Code:
apt-get update && apt-get dist-upgrade
aptitude update && aptitude full-upgrade
For testing it's a combination of that and this:

Code:
apt-get update && apt-get upgrade
aptitude update && aptitude safe-upgrade
This is because packages can vanish from testing for various reasons (usually due to critical bugs in related packages in unstable) a full dist-upgrade might remove a package (or several) that you want, whereas a normal upgrade will hold off upgrading any related packages if it means removing the package you might want. In short, upgrade performs the updates without removing anything, dist-upgrade tries to upgrade every single package on the system even if it means removing stuff.

Despite this it's still a good idea to try and dist-upgrade testing once any issues regarding missing packages have resolved themselves in order to keep it as up to date as possible, or better yet to install the missing package from Sid and then dist-upgrade the whole system.
 
Old 10-02-2011, 12:24 PM   #19
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Quote:
Originally Posted by Caravel View Post
You're perhaps thinking of testing? With Sid you should always do one of the following to upgrade:

Code:
apt-get update && apt-get dist-upgrade
aptitude update && aptitude full-upgrade
For testing it's a combination of that and this:

Code:
apt-get update && apt-get upgrade
aptitude update && aptitude safe-upgrade
This is because packages can vanish from testing for various reasons (usually due to critical bugs in related packages in unstable) a full dist-upgrade might remove a package (or several) that you want, whereas a normal upgrade will hold off upgrading any related packages if it means removing the package you might want. In short, upgrade performs the updates without removing anything, dist-upgrade tries to upgrade every single package on the system even if it means removing stuff.

Despite this it's still a good idea to try and dist-upgrade testing once any issues regarding missing packages have resolved themselves in order to keep it as up to date as possible, or better yet to install the missing package from Sid and then dist-upgrade the whole system.
This is absolutely right.

I prefer apt-get (aptitude has some features that can really make life a lot easier too) and I use dist-upgrade everyday here on my production OS Debian testing.

I do not have to choose to let it proceed. I also have apt-listbugs installed.

For ANY package management tool to work, the person in the chair really needs to read what comes up and think about it. Have I really been screwed using dist-upgrade? Yes, I either didn't read or didn't think about what I read before hitting the Y command. That was not the fault of the tool. That was the fault of an idiot using the tool.
 
Old 10-02-2011, 02:06 PM   #20
62chevy
Member
 
Registered: Mar 2002
Location: West (By God) Virginia
Distribution: Debian Squeeze - Sid
Posts: 281

Rep: Reputation: 45
Quote:
Originally Posted by widget View Post
This is absolutely right.

I prefer apt-get (aptitude has some features that can really make life a lot easier too) and I use dist-upgrade everyday here on my production OS Debian testing.

I do not have to choose to let it proceed. I also have apt-listbugs installed.

For ANY package management tool to work, the person in the chair really needs to read what comes up and think about it. Have I really been screwed using dist-upgrade? Yes, I either didn't read or didn't think about what I read before hitting the Y command. That was not the fault of the tool. That was the fault of an idiot using the tool.

Thanks you made my point for me. Read first act later. I've had half of Gnome ripped out by using ' aptitude full-upgrade ' in Sid so now I only use it with the -s option and check on stuff I'm not sure about.

Right now I have xorg-xserver pinned so nvidia drivers will work correctly. full-upgrade would change that and upgrade leaves it as is.
 
Old 10-02-2011, 05:19 PM   #21
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,887
Blog Entries: 28

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
Ran sid since 2004, more or less daily I do apt-get upgrade && apt-get dist-upgrade -yd

Then if nothing is being removed after the download finishes I do apt-get dist-upgrade.

Just doing apt-get upgrade is a good way to run into problems.

upgrade/safe-upgrade is more for stable.
 
Old 10-03-2011, 05:58 PM   #22
62chevy
Member
 
Registered: Mar 2002
Location: West (By God) Virginia
Distribution: Debian Squeeze - Sid
Posts: 281

Rep: Reputation: 45
Quote:
Originally Posted by craigevil View Post
Ran sid since 2004, more or less daily I do apt-get upgrade && apt-get dist-upgrade -yd

Then if nothing is being removed after the download finishes I do apt-get dist-upgrade.

Just doing apt-get upgrade is a good way to run into problems.

upgrade/safe-upgrade is more for stable.

Okay yes to everything and download only will work then you can install what you want with dpkg -i or just run it again without the -yd.

I get the same results just differently and prefer aptitude over apt-get for no other reason than that is what I'm used to and know best. Old habits die hard even when the Release Notes said apt-get was the preferred way to upgrade Lenny to Squeeze.
 
Old 10-03-2011, 07:47 PM   #23
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Quote:
Originally Posted by 62chevy View Post
Okay yes to everything and download only will work then you can install what you want with dpkg -i or just run it again without the -yd.

I get the same results just differently and prefer aptitude over apt-get for no other reason than that is what I'm used to and know best. Old habits die hard even when the Release Notes said apt-get was the preferred way to upgrade Lenny to Squeeze.
I admit to similar feelings for apt-get. Aptitude, though, now that I am looking into it more, really has some very neat abilities. Now that they have made them more compatible they make a great pair of tools.

One of the reasons I switched away from Ubuntu was the fact that they decided to drop aptitude as a default install. I hadn't even begun to learn what it could do when they announced that "improvement" but did "me too" the bug filed against removing it. Just foolish. Yes you can always install it. This does not give new users a chance to learn about it.

Using those two tools is a lot easier, for me, than using dpkg directly. As far as I am concerned aptitude is worth having if the only thing you ever did with it was keep-all, why and why-not. The options for installing with dependency problems is icing on the cake.

I still prefer apt-get for general package management. Probably because it is what I am used to.

You can, pretty easily, totally screw a perfectly good install with either of them. Just don't pay attention. I know I have done this with both. This was not a tool problem. This was a picnic problem.
 
Old 10-04-2011, 03:29 AM   #24
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
@ widget, are you mistaking aptitude for synaptic? I didn't know Ubuntu had dropped aptitude but I do know they have dropped Synaptic.
 
Old 10-04-2011, 04:00 AM   #25
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Quote:
Originally Posted by 62chevy View Post
Right now I have xorg-xserver pinned so nvidia drivers will work correctly. full-upgrade would change that and upgrade leaves it as is.
Your pinning is probably not helping there at all at the moment, as the same xorg versions are now in both testing and unstable. It went in a few days ago. The safe-upgrades alone are probably what is preventing the upgrade of xorg and removal of the nvidia packages. One approach is to put the xorg packages you have pinned on hold and then dist-upgrade.
 
Old 10-04-2011, 09:51 AM   #26
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
I have a working Nvidia driver with the current version of X in Testing:

Code:
ade@Pc1:~$ X -version

X.Org X Server 1.11.1
Release Date: 2011-09-24
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.1.0-rc4-amd64 x86_64 Debian
Current Operating System: Linux Pc1 3.0.0-4.dmz.2-liquorix-amd64 #1 ZEN SMP PREEMPT Tue Sep 6 01:59:23 CDT 2011 x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz-3.0.0-4.dmz.2-liquorix-amd64 root=UUID=59b0628e-8db5-46e8-bbbe-39ae19e3da5f ro iommu=noaperture nomodeset nouveau.modeset=0
Build Date: 24 September 2011  09:28:42AM
xorg-server 2:1.11.1-1 (Cyril Brulebois <kibi@debian.org>) 
Current version of pixman: 0.22.2
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Went back to using the 'Debian' method to install the driver via smxi/sgfxi.
Might be worth trying if you are having problems.
 
Old 10-04-2011, 09:56 AM   #27
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Quote:
Originally Posted by the trooper View Post
Went back to using the 'Debian' method to install the driver via smxi/sgfxi.
Might be worth trying if you are having problems.
smxi/sgfxi are not the debian method - unless all that has changed recently? Last time I checked, they download the driver from the vendor's website, not from the official repos.

Is the IgnoreABI option in your xorg.conf?

Last edited by cynwulf; 10-04-2011 at 09:57 AM.
 
Old 10-04-2011, 10:00 AM   #28
62chevy
Member
 
Registered: Mar 2002
Location: West (By God) Virginia
Distribution: Debian Squeeze - Sid
Posts: 281

Rep: Reputation: 45
Quote:
Originally Posted by Caravel View Post
Your pinning is probably not helping there at all at the moment, as the same xorg versions are now in both testing and unstable. It went in a few days ago. The safe-upgrades alone are probably what is preventing the upgrade of xorg and removal of the nvidia packages. One approach is to put the xorg packages you have pinned on hold and then dist-upgrade.

That would be one way to do it but I have xserver pinned to a version number knowing full well Testing would get the newer version.

Xorg,Debian and nVidia have been working on the problem and every week it gets a little better so maybe that new driver they released yesterday will be a big improvement. I'll find out tonight.
 
Old 10-04-2011, 10:05 AM   #29
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Quote:
smxi/sgfxi are not the debian method - unless all that has changed recently?
Yeah,I know it sounds odd,but there is an option to install using the driver from the repos in sgfxi.
This is what I'm using now:

Code:
ade@Pc1:~$ dpkg -l | grep nvidia-glx
ii  libgl1-nvidia-glx                           280.13.really.275.28-1           NVIDIA binary OpenGL libraries
ii  nvidia-glx                                  280.13.really.275.28-1           NVIDIA metapackage
Quote:
Is the IgnoreABI option in your xorg.conf?
Good question.....:

Code:
Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
    Option         "Xinerama" "0"
EndSection

Section "Files"
    ModulePath      "/usr/lib/xorg/modules"
    FontPath        "/usr/share/fonts/X11/misc"
    FontPath        "/usr/share/fonts/X11/cyrillic"
    FontPath        "/usr/share/fonts/X11/100dpi/:unscaled"
    FontPath        "/usr/share/fonts/X11/75dpi/:unscaled"
    FontPath        "/usr/share/fonts/X11/Type1"
    FontPath        "/usr/share/fonts/X11/100dpi"
    FontPath        "/usr/share/fonts/X11/75dpi"
    FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
    FontPath        "built-ins"
EndSection

Section "Module"
	Load	"glx"
    Load           "record"
    Load           "dri2"
    Load           "dbe"
    Load           "extmod"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "InputDevice"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/input/mice"
    Option         "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Samsung SMB2330H"
    HorizSync       30.0 - 81.0
    VertRefresh     56.0 - 75.0
EndSection

Section "Device"
    Identifier     "Card0"
	Driver	"nvidia"
	Option      "Coolbits"	"1"
	Option      "AddARGBGLXVisuals"	"true"
	Option      "TripleBuffer"	"false"
    VendorName     "nVidia Corporation"
    BoardName      "G80 [GeForce 8800 GTS]"
	#BusID "PCI:1:0:0"
EndSection

Section "Device"
    Identifier     "Device0"
	Driver	"nvidia"
	Option      "Coolbits"	"1"
	Option      "AddARGBGLXVisuals"	"true"
	Option      "TripleBuffer"	"false"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 8800 GTS"
EndSection

Section "Screen"

	#BusID "PCI:1:0:0"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "metamodes" "1920x1080_60 +0+0; nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
	Option      "Composite"	"enable"
#	Option      "RENDER"	"disable"
EndSection
Apparently not.

Last edited by the trooper; 10-04-2011 at 10:16 AM.
 
Old 10-04-2011, 03:08 PM   #30
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Quote:
Originally Posted by k3lt01 View Post
@ widget, are you mistaking aptitude for synaptic? I didn't know Ubuntu had dropped aptitude but I do know they have dropped Synaptic.
Synaptic is just being dropped. Aptitude has been gone for a cycle or two now.
 
  


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
will the ltmodem drivers work in debian sid (knoppix sid) maximalred Debian 5 05-29-2009 10:44 AM
Sid users - lsymbol getxattr, version Sid : ATTR_1.0 not defined in file libattr.so.1 nx5000 Debian 2 12-19-2006 03:54 AM
install sid... limacette Debian 3 05-24-2004 08:58 AM
debian SID cd will not let me install hotgirl101 Linux - Newbie 2 03-31-2004 08:02 PM
About FTP install (for SID) LQboy Debian 6 08-31-2003 07:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:32 PM.

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