SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 Help & Support (Stable) » Ubuntu One on statler? » 2011-10-27 00:17:50

malachias
Replies: 6

there's a guide on the forums for installing it into the old crunchbang, but I was wondering if anyone had gotten it working in statler?

#2 Re: Help & Support (Stable) » Undoing a dist-upgrade » 2011-10-27 00:09:47

yeah, saw that thanks smile sadly didn't see it before I needed it though

#3 Help & Support (Stable) » Undoing a dist-upgrade » 2011-10-27 00:05:23

malachias
Replies: 10

There are many reasons you might want to do this, but probably the most painful one is accidentally dist-upgrading into the debian backports repo, which I had the misfortune of accidentally doing a few days ago. Anyway I googled around and found that there is no "apt-undo" or equivalent... so I went ahead and wrote this perl script that spits out three apt-get commands that should roll back a particular update.

It's very basic, but I thought it might help some others out there as well. The basic procedure is to give you the commands to:
1- downgrade upgraded packages to what they were before the upgrade
2- install any packages that were removed in the upgrade
3- remove packages that were installed in the upgrade

Note: if you are trying to remove packages accidentally installed from a bad repo (such as the example above), remove that repo and apt-get update before running the commands

Please keep in mind this is very experimental, can cause weird things to happen if you roll back an update before rolling back a subsequent update, can explode kill maim etc etc.

filename = "/var/log/apt/history.log"
f = open(filename, "r")
text = f.read()

entries = text.split("\n\n")

i=0
for entry in entries:
    components = entry.split("\n")
    startDate = components[0][12:]
    commandLine = components[1][13:]
    print(str(i)+" -- "+startDate)
    print("      "+commandLine+"\n")
    i=i+1

rbIndex = input("Which entry would you like to roll back?\n")

entry = entries[rbIndex]
components = entry.split("\n")
startDate = components[0][12:]
commandLine = components[1][13:]
actions = []
packages = []
i = 2
while components[i][:10] != "End-Date: ":
    parts = components[i].split(": ")
    actions.append(parts[0])
    packages.append(parts[1].split('), '))
    i=i+1

print("\nTo roll back the install:\n")
print("   "+startDate)
print("   "+commandLine)
print("\nrun the following commands:\n-----------------------------------------\n")

c1 = ''
c2 = ''
c3 = ''

for i in range(0,len(actions)):
    if actions[i] == "Install":
        #handle uninstalls
        c3 = "apt-get remove --purge"
        for package in packages[i]:
            pname = package.split(":")[0]
            c3 = c3 + " " + pname
    if actions[i] == "Upgrade":
        #handle downgrades
        c1 = "apt-get install"
        for package in packages[i]:
            p = package.split(":")
            pname = p[0]
            version = p[1].split('(')[1].split(',')[0]
            c1 = c1 + " " + pname + "=" + version
            
    if actions[i] == "Remove":
        #handle installs
        c2 = "apt-get install"
        for package in packages[i]:
            p = package.split(":")
            pname = p[0]
            version = p[1].split('(')[1].split(')')[0]
            c2 = c2 + " " + pname + "=" + version

if c1 != "":
    print c1
    print
if c2 != "":
    print c2
    print
if c3 != "":
    print c3
    print
print "-----------------------------------------"
print "Note: Some of the packages in step 3 may already have been removed in the"
print "previous steps -- if this happens, just remove them from the command line"
print 

The first version used apt-get policy to figure out what the latest downgradable version of a package was, but that royally crunched up my system, so I just went with downgrading to whatever you had installed at the time, which seems to work a lot better

I hacked this together as I needed it so it doesn't really embody the best coding style in the world, so if someone wants to improve it feel free.

#4 Re: Help & Support (Stable) » [SOLVED] How to Install Latest LibreOffice to Crunchbang Openbox? » 2011-10-25 06:17:15

I know this is marked as solved but you can install it pretty easily from the debian backports without jumping through hoops with other packages:

1) enable the debian backports:

$ sudo nano /etc/apt/sources.list

Uncomment the last line:

## DEBIAN BACKPORTS
deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free

2) !!IMPORTANT!! fix the pinning so you don't completely screw your system over pulling in every backport ever

$ sudo nano /etc/apt/preferences

change the 100 to a 500 in the second block:

Package: *
Pin: release n=statler
Pin-Priority: 1001

Package: *
Pin: release n=squeeze
Pin-Priority: 500

3) update your packages and install

sudo apt-get update
sudo apt-get -t squeeze-backports install libreoffice

And that's it smile You need the "-t squeeze-backports" so that apt-get will automatically pull in the required deps from backports as well.

#5 Re: Help & Support (Stable) » Transmission isn't downloading anything. » 2011-09-27 03:53:15

Do other torrent clients work? And have you successfully downloaded a torrent from this connection before? Some networks (school internet, etc) can and do block torrent traffic, which basically leads to the symptoms you describe.

And before someone corrects me to say "but torrent traffic is not distinguishable" I will concede that yes you can probably configure things in such a way as to circumvent such blocks, but I was not able to figure out a way in the three months I was stuck on such a network. My only recourse was to vpn into another network.

#6 Help & Support (Stable) » Installing #! over Ubuntu with "encrypted home directory" » 2011-09-26 16:30:26

malachias
Replies: 0

Hi

My current setup is:
- small Ubuntu system partition
- large separate /home partition
- small Win7 partition
- when installing Ubuntu I selected the "encrypt home directory" option

I'd like to switch over to #! but I have a few questions / concerns:
- does the "encrypted LVM" option in the installer imply full disk encryption?
- what do I need to do to make sure my home dir doesn't get nuked (i.e. losing the private key, etc)?
- can I take my unencrypted /home partition and "inject" it into the encrypted lvm?
- can I do this encrypted lvm thing without nuking my win7 partition?

Does anyone have any guidance?


Edit: Turns out my hard drive up and died so this is no longer of interest to me, as I am forced to start over anyway :(

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo