Thread: undo tracking proposed updates
in "software sources" windows under "updates" tab have checked "pre-released updates" , installed updates. no longer want track proposed updates , have unchecked item. security , recommended checked. how downgrade packages has modified when had "pre-released" checked? want on stable "recommended updates". seems have changed looks @ updates did not downgrade packages.![]()
apt never downgrades packages (by itself, must tell so).
wait while. or..
code:pkg2repo () { [ -z "$1" ] && return local pkg="$1" local policy local cur local can local upgrade pkg in $@ policy=$(apt-cache policy $pkg) cur=$(echo -e "$policy" | grep installed | awk '{print $nf}') can=$(echo -e "$policy" | grep candidate | awk '{print $nf}') upgrade="$cur" [ "$can" == "(none)" ] && can=$cur [ "$can" != "$cur" ] && upgrade="u: $cur > $can" repos=$(echo -e "$policy" | grep "$can" -a1 | egrep "(http|ftp|smb|cdrom|nfs|file)://" | tail -1 | awk '{print $2" "$3}') local msg msg="%-35s %-45s %s\n" [ -n "$repos" ] && printf "$msg" "$pkg" "$upgrade" "$repos" done } repo2pkg () { local frepos=$@ local repos pkg in $(dpkg -l | grep '^ii'| awk '{print $2}' ) repos=$(pkg2repo $pkg) if [ -z "$frepos" ] [ -n "$repos" ] && echo -e "$repos" continue fi in $frepos echo -e "$repos" | grep -w "$i" [ $? -eq 0 ] && break done done }and can reinstall packages:code:repo2pkg backports alpine 2.00+dfsg-1~hardy1 http://archive.ubuntu.com hardy-backports/universe apturl 0.2.6ubuntu1~hardy1 http://archive.ubuntu.com hardy-backports/main debhelper 7.0.13ubuntu1~hardy1 http://archive.ubuntu.com hardy-backports/main debian-policy 3.8.0.1~hardy1 http://archive.ubuntu.com hardy-backports/universe debootstrap 1.0.20~hardy1 http://archive.ubuntu.com hardy-backports/main devscripts 2.10.39ubuntu2~hardy1 http://archive.ubuntu.com hardy-backports/main
you need -proposed enabled otherwise functions not know repo has them, obviously.code:for in $(repo2pkg backports | awk '{print $1}') ; sudo aptitude install $i/hardy done
reinstall packages main hardy repo. upgrade , go.
or wait few days, -proposed ends in -updates if have repo enabled wait.
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Installation & Upgrades [ubuntu] undo tracking proposed updates
Ubuntu
Comments
Post a Comment