PDA

View Full Version : update impossible from 4.17.0-kali3-amd64



Rams3s
2019-02-17, 12:38
Hello,

after apt-get update && apt-get upgrade && apt-get dist-upgrade && reboot
then apt update && apt -y full-upgrade && reboot

my kali version stay the same:


root@kali:~# uname -r
4.17.0-kali3-amd64
root@kali:~# uname -a
Linux kali 4.17.0-kali3-amd64 #1 SMP Debian 4.17.17-1kali1 (2018-08-21) x86_64 GNU/Linux


My sources.list:


deb http://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main non-free contrib

How to update or change my kali version to the lastest?

Thank you very much!

Mister_X
2019-02-18, 14:43
all I can think of is that apt-get may have failed, which prevented apt-get dist-upgrade from running (and then rebooting).

If it did reboot the first time, there is something wrong, so, reinstalling is the solution.

quarinteen
2019-02-18, 22:17
I have the same issue with fresh installs. I have tried a dozen times and apt seems broken for what ever reason so I just created a post on the same issue. cd to the desktop and run "apt list --upgradeable > upgrade.txt" then open the file from your desktop

Go through and on each line delete everything after kali-rolling for example the line says apt/kali-rolling 8.2. etc remove everything after rolling if the package doesnt have /kali-rolling after it then just remove everything after the package name. do this for each line then start putting spaces between the packages.

then go back to terminal and do apt-get install -y apt/kali-rolling mysql/kali-rolling packagewhatever package whatever && apt-mark auto apt/kali-rolling mysql/kali-rolling packagewhatever package whatever

that will install everything. Then check packages marked for manual by " apt-mark showmanual > manual.txt " DO NOT DO "apt-get autoremove" it will remove everything

I then recommend backing up your image afterwards

I am trying to find an easier way to do this.

Mister_X
2019-02-19, 17:46
Try with 2019.1

I've done installs and never seen anything like this.

quarinteen
2019-03-01, 23:30
i think something was done to apt recently. First change your sources list to https from http but not the http in the URL
deb https://http.kali.org/kali kali-rolling main non-free contrib
deb-src https://http.kali.org/kali kali-rolling main non-free contrib

then do apt-get update

once updated dump the upgradeable stuff into a text file

apt list --upgradeable > up.txt

open the file and then go through the list and delete everything after the / that trails the package name in the list

locate the updates the deal with apt dpkg and unattended-updates

install those seperate

apt-get install -y apt dpkg unattended-updatescetc etc...

Then reboot and do apt-get upgrade. If it installs all the updates then your good. make sure to change the packages you installed alone and mark them from manual to auto with apt-mark auto <package
Name>

if you dont remember what you installed use apt-mark showmanual

quarinteen
2019-03-01, 23:31
oh if apt-get upgrade isnt successful then start installing the important updates manually with apt-get install like you did with apt

Mister_X
2019-03-02, 01:20
http or https points to exactly the same servers. The reason HTTP may not work may be an IDS at your ISP

There is no need whatsoever to split updates. I've done massive dist-upgrades (1.5-2Gb) and never ran into an issue.

and about apt upgrade, it does less than dist-upgrade.

quarinteen
2019-03-03, 01:39
http or https points to exactly the same servers. The reason HTTP may not work may be an IDS at your ISP

There is no need whatsoever to split updates. I've done massive dist-upgrades (1.5-2Gb) and never ran into an issue.

and about apt upgrade, it does less than dist-upgrade.

How long ago did you do a fresh install? if its been a while give it a shot with the new ISO on a fresh install. I am curious if you encounter the same issue. I encountered this on the Kali Linux Light 64 Bit iso and the regular kali 64 bit install.

Mister_X
2019-03-03, 20:07
No issue whatsoever and not long ago. I've done it with a lot of different ISO over the years and never ran into such an issue.

Being the light version is irrelevant, as this is network related and both have the exact same kernel, so same network stack. Same apt/dpkg tools.