Git Product home page Git Product logo

fetch-release-upgrade's People

Contributors

neldredge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

33d

fetch-release-upgrade's Issues

Command line option ‘s’ [from -s] is not known.

I know this is an old, likely unmaintained script, but I thought I would mention that this fails under Ubuntu 14.10, apt 1.0.9.2ubuntu2:

bash fetch-release-upgrade.sh vivid
E: Command line option ‘s’ [from -s] is not known.
Calculating new packages, download will start soon
E: Handler silently failed

Here's my working version, in case anyone finds it useful:

#! /bin/bash

if [ -z "$1" ]; then
    echo "Usage: $0 new-release-codename"
    echo "Example: $0 saucy"
    exit 1
fi

NEW_CODENAME="$1"

. /etc/lsb-release

cat /etc/apt/sources.list /etc/apt/sources.list.d/*.list \
    |grep -v "deb-src" |sed "s/$DISTRIB_CODENAME/$NEW_CODENAME/g" >sources.list

mkdir -p lists debs

APT_ARGS="-o Dir::Etc::SourceList=./sources.list \
    -o Dir::State::Lists=./lists
    -o Dir::Cache::archives=./debs
    -o Debug::NoLocking=1"

apt-get -o APT::Get::Simulate=1 $APT_ARGS update

echo "Calculating new packages, download will start soon"

apt-get --download-only --assume-yes $APT_ARGS dist-upgrade

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.