-
Senior Member
registered user
apt-get Rolling back changes
Hi;
I did 2-3 installs/upgrades yesterday.
Something I did changed something that broke an application I use a lot.
Is there way to get apt-get to rollback everything it did over the past day
( I don't remember everything it did )
Steve
-
Senior Member
registered user
Re: apt-get Rolling back changes
--You need to be more specific. What broke, exactly?
--The quick-and-dirty thing to find out what was installed is to:
' ls -tl /var/cache/apt/archives |head ' (you can also pipe output to "less" instead of "head" if you have a lot of packages installed on the same day. You don't have to be root for this.)
--Post the results of that command, and maybe we can try apt-get install pkgname/stable or something.
--Usually when upgrade breaks something, Debian fixes it right away. You might try another update/upgrade a day or so after the last one, and see if it got fixed.
--Here is a script I use for updating my boxes (don't forget to chmod +x it) - #BEGIN /root/bin/updt
Code:
#!/bin/sh
apt-get update
apt-get -u upgrade
#debsort
mv -f -v ~/DEBInstalled.list ~/DEBInstalled.list.prev ; \
dpkg -l >~/DEBInstalled.list
updatedb &
##END
--Now whenever you get packages on your system upgraded, you can ' diff ~/DEBInstalled.list.prev ~/DEBInstalled.list ' and see what changed.
--A final note, it is a VERY good idea to start tracking what you are doing to the system. I use a file called localinfo.dat in root's home dir, and track every new package that gets installed, every pkg that gets removed, hardware upgrades, driver updates, etc. Here's an excerpt:
Code:
2003.0715 + Installed pkg (mplayer-686 w32codecs)
- Removed mplayer-686 and compiled from source (not finding codec)
( ./configure --enable-gui --enable-largefiles --enable-vorbis --enable-xmms
--with-win32libdir=/usr/lib/win32
) -- aalib support errored out.
? Installed mplayer-skin--default-1.7.tar.bz2 into
/usr/local/share/mplayer/Skin, but it's still not finding
the win32 dlls.
! This is getting old REALLY fast.
+ Installed mplayer--qt6dlls.tar.bz2, mplayer--qtextras.tar.bz2
+ :) Now it works - but it keeps crashing at the end of QT videos. :(
++ Changed proftpd.conf for better security (ServerIdent.)
2003.0805 - Removed proftpd (conf file changed)
+ Installed pkg vsftpd
+ Restored /etc/ftpusers file (deleted when proftpd went)
+ Updated stopsvcs
+ Installed pkg bittorrent
2003.0817 + Renamed .xinitrc to .xinitrc-manual and updated .bashrc,
since the way it was had broken plain startx
+ VNC on this box works diff than p233 - the ~/.vncrc is used here.
+ Updated NVIDIA driver to 4496.
2003.0821 + Installed mozilla-browser-snapshot with synaptic
+ Installed pkg aptitude
Originally Posted by
beforewisdom
Hi;
I did 2-3 installs/upgrades yesterday.
Something I did changed something that broke an application I use a lot.
Is there way to get apt-get to rollback everything it did over the past day
( I don't remember everything it did )
Steve
-
Senior Member
registered user
Re: apt-get Rolling back changes
Originally Posted by
Dave_Bechtel
--You need to be more specific. What broke, exactly?
Excellent point.
I used apt-get to upgrade icewm from 1.2.7 to 1.2.11. In the process it looked like upgraded some C libraries ( next time I will pay attention ) and prompted me for a bunch of preferences. It looked like most were for icewm, but I am not sure.
After the upgrade when I would go run Visual SlickEdit ( an editor ) I would get Segment Fault messages.
Steve
-
Senior Member
registered user
Re: apt-get Rolling back changes
Originally Posted by
beforewisdom
Originally Posted by
Dave_Bechtel
--You need to be more specific. What broke, exactly?
Excellent point.
I used apt-get to upgrade icewm from 1.2.7 to 1.2.11. In the process it looked like upgraded some C libraries ( next time I will pay attention ) and prompted me for a bunch of preferences. It looked like most were for icewm, but I am not sure.
After the upgrade when I would go run Visual SlickEdit ( an editor ) I would get Segment Fault messages.
Steve
Chances are you hit the limitation of dpkg/apt-get and may not be able to do what you want. I have come across similar scenario before like the following :
I need to install a newer package that needs libc6(the core of the whole GNU tool set and almost everything) which would upgrade from 2.2.5(woody) to 2.3.1(sid/sarge). Once this is done, there is no way it can go back to 2.2.5 as apt-get would remove almost everything(including dpkg/apt-get itself) that use this libc6.
I don't know what your affected packages is but if it is some library(most likely) it is not easy. the only thing I can think of is to do a :
1. dpkg --get-selection > current
2. don't include the source repository that 'upgrade' your affected package
3. dpkg --set-selection < current
4. apt-get dist-upgrade
and hopefully it would restore the whole thing, but I am not sure given the design of dpkg.
-
Senior Member
registered user
Re: apt-get Rolling back changes
--Have you tried seeing if there's a later version of visual slickedit?
Originally Posted by
beforewisdom
Originally Posted by
Dave_Bechtel
--You need to be more specific. What broke, exactly?
Excellent point.
I used apt-get to upgrade icewm from 1.2.7 to 1.2.11. In the process it looked like upgraded some C libraries ( next time I will pay attention ) and prompted me for a bunch of preferences. It looked like most were for icewm, but I am not sure.
After the upgrade when I would go run Visual SlickEdit ( an editor ) I would get Segment Fault messages.
Steve
-
Senior Member
registered user
Re: apt-get Rolling back changes
Originally Posted by
Dave_Bechtel
--Have you tried seeing if there's a later version of visual slickedit?
There is, but I don't want to shell out the money for an upgrade until I can see if I can fix my system and if an upgrade will solve the problem.
Yes, I have done the free of charge editors. Emacs used to be my life.
Steve
-
Senior Member
registered user
Re: apt-get Rolling back changes
Originally Posted by
Dave_Bechtel
--You need to be more specific. What broke, exactly?
--The quick-and-dirty thing to find out what was installed is to:
' ls -tl /var/cache/apt/archives |head ' (you can also pipe output to "less" instead of "head" if you have a lot of packages installed on the same day. You don't have to be root for this.)]
The dates are a bit off, I think because I had soem clock issues that I did not bother to fix.
The libs listed look familiar. apt-get got them for me when I upgraded to icewm 1.2.11 out of unstable( I down graded icewm back to icewm 1.2.7 which I found in test ).
Should dpkg _P these libraries and install the version from test or will I be getting myself into more hot water?
Steve
total 43736
drwxr-xr-x 2 root root 4096 Aug 24 10:08 partial
-rw-r----- 1 root root 0 Aug 24 10:06 lock
-rw-r--r-- 1 root root 299710 Aug 20 10:02 icewm-common_1.2.11-1_i386.deb
-rw-r--r-- 1 root root 397238 Aug 20 10:02 icewm_1.2.11-1_i386.deb
-rw-r--r-- 1 root root 2574446 Aug 19 16:02 libc6-dev_2.3.2-3_i386.deb
-rw-r--r-- 1 root root 3602448 Aug 19 16:02 libc6_2.3.2-3_i386.deb
-rw-r--r-- 1 root root 3784782 Aug 19 16:02 locales_2.3.2-3_all.deb
-
Senior Member
registered user
I found my own answer:
1. get the name of the previous package
2. use an '=' in place of space in the package name
3. put the package name in a normal apt-get install command:
$ apt-get install libc6=2.2
I was able to roll stuff back and get my editor working without paying for an upgrade
Steve
-
Senior Member
registered user
--That's cool; I have to remember that for next time. You should go into ' aptitude ' and put a Hold on the packages that broke before so they don't get upgraded again.
Originally Posted by
beforewisdom
I found my own answer:
1. get the name of the previous package
2. use an '=' in place of space in the package name
3. put the package name in a normal apt-get install command:
$ apt-get install libc6=2.2
I was able to roll stuff back and get my editor working without paying for an upgrade
Steve
Similar Threads
-
By chris-harry in forum The Lounge
Replies: 5
Last Post: 11-30-2004, 05:35 AM
-
By Craig2 in forum General Support
Replies: 0
Last Post: 04-12-2004, 02:22 PM
-
By rfarmer in forum General Support
Replies: 2
Last Post: 01-30-2004, 01:22 AM
-
By beforewisdom in forum Hardware & Booting
Replies: 2
Last Post: 09-18-2003, 02:17 AM
-
By beforewisdom in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 08-24-2003, 09:16 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
New Precision DWDM SFP+ 10G 80km Tunable Transceiver 50GHz C-Temp DWDM-SFP10G-C
$90.00
LOT OF 10 HPE JD092B X130 10G SFP+ LC SR Transceiver
$40.00
LOT OF 20 Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module
$95.00
LOT OF 10 455883-B21 HP 10Gb SR SFP Transceiver 455885-001 456096-001
$59.99
🔥🔥🔥 CISCO SFP-10G-SR V03 10-2415-03 850nm 10GBASE-SR SFP+ Multi Module 🔥🔥🔥
$6.80
GENUINE Cisco SFP-10G-SR V03 SFP+ GBIC Transceiver Module 10-2415-03
$6.80
Genuine Cisco ‎SFP-10G-SR Transceiver Module (10-2415-03)
$5.85
NEW FS SFP-10G-T 10GBASE T SFP+ 30M Transceiver Module (Lot of 1 Unit)
$39.95
Fully Compatibility 10GBase-T Transceiver SFP-10G-T SFP+ to RJ45 Copper 30M 80M
$58.50
New Cisco SFP-10G-LRM 10G SFP+ LRM 1310nm 220m SMF/MMF LC Module
$32.19