-
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
![Quote](images/misc/quote_icon.png)
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
![Quote](images/misc/quote_icon.png)
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
![Quote](images/misc/quote_icon.png)
Originally Posted by
beforewisdom
![Quote](images/misc/quote_icon.png)
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?
![Quote](images/misc/quote_icon.png)
Originally Posted by
beforewisdom
![Quote](images/misc/quote_icon.png)
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
![Quote](images/misc/quote_icon.png)
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
![Quote](images/misc/quote_icon.png)
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 ![Smile](images/smilies/icon_smile.gif)
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.
![Quote](images/misc/quote_icon.png)
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
![IBM System X3250 M3 Server 8GB RAM Intel Xeon x3440 2.53ghz (NO HDD) picture](/store/img/M~sAAOSwFVlkVr-r/s-l225//IBM-System-X3250-M3-Server-8GB-RAM-Intel-Xeon-x344.jpg)
IBM System X3250 M3 Server 8GB RAM Intel Xeon x3440 2.53ghz (NO HDD)
$41.99
![IBM EServer Xseries 220 Desktop Computer Intel Pentium 3 1GHz 512MB Ram No HDD picture](/store/img/u88AAOSw9sxmltD4/s-l225//IBM-EServer-Xseries-220-Desktop-Computer-Intel-Pen.jpg)
IBM EServer Xseries 220 Desktop Computer Intel Pentium 3 1GHz 512MB Ram No HDD
$224.99
![IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6Core 64GB RAM No HDD Server System picture](/store/img/xiEAAOSwwGtmRmN6/s-l225//IBM-Power-S822-8284-22A-12SFF-Power8-3-89GHz-6Core.jpg)
IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6Core 64GB RAM No HDD Server System
$314.99
![1U IBM x3550 M5 4 Bay SFF SAS3 Server 2x E5-2683 V3 28 Core 128GB DDR4 2x Tray picture](/store/img/RRoAAOSwonVguq4o/s-l225//1U-IBM-x3550-M5-4-Bay-SFF-SAS3-Server-2x-E5-2683-V.jpg)
1U IBM x3550 M5 4 Bay SFF SAS3 Server 2x E5-2683 V3 28 Core 128GB DDR4 2x Tray
$318.00
![IBM Server Rack Cabinet Machine Type 9308 Model 42P w/ Mounting Accessories picture](/store/img/9r4AAOSw0lNmkTwe/s-l225//IBM-Server-Rack-Cabinet-Machine-Type-9308-Model-42.jpg)
IBM Server Rack Cabinet Machine Type 9308 Model 42P w/ Mounting Accessories
$379.99
![IBM System x3550 M3 Dual Intel Xeon X5650 @2.67GHz 32GB RAM No HDD picture](/store/img/oRsAAOSw~pRmQitC/s-l225//IBM-System-x3550-M3-Dual-Intel-Xeon-X5650-2-67GHz-.jpg)
IBM System x3550 M3 Dual Intel Xeon X5650 @2.67GHz 32GB RAM No HDD
$68.50
![IBM System x3250 M3 4251PAB Server Intel Xeon X3430 2.4GHz 4GB SEE NOTES picture](/store/img/mqQAAOSwPypmfZMB/s-l225//IBM-System-x3250-M3-4251PAB-Server-Intel-Xeon-X343.jpg)
IBM System x3250 M3 4251PAB Server Intel Xeon X3430 2.4GHz 4GB SEE NOTES
$21.41
![IBM 9009-41A Power S914 w/ IBM Power9 CPU Processor 02CY259 9314 CA PQ NO RAM picture](/store/img/8A0AAOSwk7pk3XOr/s-l225//IBM-9009-41A-Power-S914-w-IBM-Power9-CPU-Processor.jpg)
IBM 9009-41A Power S914 w/ IBM Power9 CPU Processor 02CY259 9314 CA PQ NO RAM
$2000.00
![IBM QRadar xx29 Server 4412Q2A picture](/store/img/7GAAAOSwmK1lqTUO/s-l225//IBM-QRadar-xx29-Server-4412Q2A.jpg)
IBM QRadar xx29 Server 4412Q2A
$209.99
![IBM QRadar 1501 G3 Server picture](/store/img/2LMAAOSwFxBlule~/s-l225//IBM-QRadar-1501-G3-Server.jpg)
IBM QRadar 1501 G3 Server
$167.99