LinuxQuestions.org
Review your favorite Linux distribution.
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 06-17-2017, 07:01 AM   #1
kirill242
LQ Newbie
 
Registered: May 2015
Posts: 9

Rep: Reputation: Disabled
Can't Update Debian


running lsb_release -a tells me I'm running jessie 8.0. I would like to upgrade to 8.8. After running aptitude update and then aptitude full-upgrade, it tells me that 0b will be installed.
 
Old 06-17-2017, 07:35 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,930

Rep: Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321
full-upgrade is probably invalid, try apt-get upgrade
 
Old 06-17-2017, 07:43 AM   #3
kirill242
LQ Newbie
 
Registered: May 2015
Posts: 9

Original Poster
Rep: Reputation: Disabled
this is what i get when i run apt-get upgrade:
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.
 
Old 06-17-2017, 07:49 AM   #4
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
There's a certain magic for the sources.list. Which is probably better advertised in #debian on irc.freenode.org. But it looks something like this:

FILE: /etc/apt/sources.list
Code:
deb http://security.debian.org        jessie/updates  main contrib non-free
deb http://httpredir.debian.org/debian      jessie          main contrib non-free
deb http://httpredir.debian.org/debian      jessie-updates  main contrib non-free
deb-src http://httpredir.debian.org/debian  jessie          main contrib non-free
deb-src http://httpredir.debian.org/debian  jessie-updates  main contrib non-free
Where by default without customization it probably looks like this:

Code:
deb http://httpredir.debian.org/debian      jessie          main
 
1 members found this post helpful.
Old 06-17-2017, 09:24 AM   #5
dejank
Member
 
Registered: May 2016
Location: Belgrade, Serbia
Distribution: Debian
Posts: 229

Rep: Reputation: Disabled
Quote:
full-upgrade is probably invalid, try apt-get upgrade
He was using aptitude full-upgrade, which certainly is not invalid. It is same as apt-get dist-upgrade. Anyway, if OP ran regular updates and upgrades, he should be on 8.8 now. What do you get from this:

Code:
cat /etc/*release
 
Old 06-17-2017, 09:57 AM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Code:
sudo apt-get dist-upgrade
perhaps?
 
Old 06-17-2017, 10:08 AM   #7
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
post output from 'apt-cache policy' and 'aptitude update'
 
Old 06-17-2017, 11:33 AM   #8
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
$ sudo apt-get update
$ sudo apt-get dist-upgrade

or

$ sudo dselect update
$ sudo dselect install

or

$ sudo aptitude update
$ sudo aptitude install

Various roads to take. With sudo, or as root. Some methods older, some newer.

$ lsb_release -a

$ cat /etc/issue
(MOTD for telnet or some such, doesn't really update/upgrade with releases.)

YMMV
 
Old 06-30-2017, 08:58 AM   #9
sudowtf
Member
 
Registered: Nov 2013
Posts: 206

Rep: Reputation: 46
Quote:
Originally Posted by Shadow_7 View Post
There's a certain magic for the sources.list.
Agree with Shadow_7's post #4, i've had similar for a couple years and used
Code:
sudo aptitude update ; sudo aptitude full-upgrade && sudo aptitude autoclean
weekly to stay up to date.

The only difference being http://ftp.debian... which is probably obsolete.
 
Old 06-30-2017, 10:04 AM   #10
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by pan64 View Post
full-upgrade is probably invalid, try apt-get upgrade
Just for info, the apt-get command currently can use full-upgrade as an alias for dist-upgrade.
 
Old 06-30-2017, 10:09 AM   #11
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Just a usage note for all those who might wonder what the difference is between apt-get upgrade and apt-get dist-upgrade.

Ignore the names. The only difference is that dist-upgrade handles changing dependencies of new versions of packages using a conflict resolution system (it attempts to upgrade the more important packages at the expense of less important ones if necessary). It may remove some packages as a result.

So, you're always safer with apt-get upgrade (after an apt-get update of course so that the latest repository information is downloaded). You should only use dist-upgrade as a possible means of resolving dependency conflicts if they arise.
 
1 members found this post helpful.
Old 06-30-2017, 11:39 AM   #12
dejank
Member
 
Registered: May 2016
Location: Belgrade, Serbia
Distribution: Debian
Posts: 229

Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
Just a usage note for all those who might wonder what the difference is between apt-get upgrade and apt-get dist-upgrade.

Ignore the names. The only difference is that dist-upgrade handles changing dependencies of new versions of packages using a conflict resolution system (it attempts to upgrade the more important packages at the expense of less important ones if necessary). It may remove some packages as a result.

So, you're always safer with apt-get upgrade (after an apt-get update of course so that the latest repository information is downloaded). You should only use dist-upgrade as a possible means of resolving dependency conflicts if they arise.
Or, install new packages, which is what you get more often when you use it, specially on debian testing/ubuntu/mint where change of packages are more often. And that part with you are always safer with apt-get upgrade is not entirely true. Because some of those updates require new packages for security reasons and new kernels also require apt-get dist-upgrade.
 
Old 06-30-2017, 11:57 AM   #13
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by dejank View Post
Or, install new packages
True. I have never seen this on Mint, however, except during version number changes where it can be done in a more organised and controlled manner through Mint's update manager.

Quote:
Originally Posted by dejank View Post
And that part with you are always safer with apt-get upgrade is not entirely true.
Fair enough. Replace "always" with "usually".

Quote:
Originally Posted by dejank View Post
Because some of those updates require new packages for security reasons and new kernels also require apt-get dist-upgrade.
Once more, fair enough (although I have never seen the former).

Thanks, dejank, for providing some useful nuance to my black and white post.
 
  


Reply

Tags
debian



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
How to automate update of security issue from debian announce list on Debian Sid? s.verma Debian 6 12-19-2015 11:34 PM
After update Debian Sid/unstable says Debian 8 at bootup EDDY1 Debian 3 12-14-2014 04:30 PM
[SOLVED] Debian update manager states updates available but won't update EDDY1 Debian 15 06-30-2011 11:07 PM
how can i install debian 5.06 in my pc i have downloaded debian-update-5.0.6-i386-DVD siddtanu Debian 2 10-21-2010 02:56 PM
Problem while apt-get update on debian etch, cannot reach security.debian.org sarajevo Debian 4 06-08-2008 11:59 AM

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

All times are GMT -5. The time now is 08:11 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