Translate

2016년 3월 10일 목요일

[VPN] Cisco AnyConnect 프로그램에서 접속이 되지 않는경우





Cisco AnyConnect Secure Mobility Client
VPN 툴을 이용하여 접속하려 하는데 아래와 같이 메시지가 나오며 접속이 되지 않았다.





AnyConnect profile settings mandate a single local user, but multiple local users are currently logged into your computer. A VPN connection will not be established.

AnyConnect was not able to establish a connection to the specified secure gateway. Please try connecting again.

Connection attempt has failed.



원인 및 해결방법

접속 세션이 2개이상 이면 위와같이 보여지며 접속되지 않는다.
(보안때문에 1명의 사용자만 VPN 접속을 허용하는 것으로 보인다.)

리눅스(Linux)
원격이 아닌 해당 PC앞에서 GUI 화면을 사용하는 곳이라면 VNC 같은 걸로 접속 후 VNC 안에서 Cisco AnyConnect 프로그램을 구동하여 접속하려면 위와같이 나타난다.
원격(VNC)접속이 없는상태에서 PC에서 실행해야 한다.


윈도우(Windows)
원격데스크톱 세션 접속이 있다면 위와같이 보여지게된다.
원격데스크톱 세션을 종료하여 다시 접속을 시도해 본다.




2016년 3월 5일 토요일

[IntelliJ][Grunt] process finished with exit code 99 오류 문제



IntelliJ v15.10



증상

프로젝트의 Gruntfile.js 파일을 이용해 Grunt Task 화면을 띄웠는데 아래와 같이 화면이 보여졌다.



1004lucifer

Failed to list grunt tasks in generator-ng-component/Gruntfile.js: process finished with exit code 99 (a non-zero exit code means an error)
 * Edit settings

$ /usr/bin/node /usr/local/lib/node_modules/grunt-cli/bin/grunt --no-color --verbose --gruntfile /source/angular/generator-ng-component/Gruntfile.js --tasks /devTools/idea-IU-143.2287.1/plugins/JavaScriptLanguage/grunt_js/tasks _intellij_grunt_tasks_fetcher
grunt-cli: The grunt command line interface. (v0.1.13)

Fatal error: Unable to find local grunt.

If you're seeing this message, either a Gruntfile wasn't found or grunt
hasn't been installed locally to your project. For more information about
installing and configuring grunt, please see the Getting Started guide:

http://gruntjs.com/getting-started

Process finished with exit code 99








해결방법

Grunt Site(Link) 에 기술된 대로 해당 프로젝트의 Root Directory 에서 npm install 명령을 수행해 준다.




lucifer@lucifer-Vostro-V13:/source/angular/generator-ng-component$ npm install
npm WARN deprecated lodash@0.9.2: Grunt needs your help! See https://github.com/gruntjs/grunt/issues/1403.
npm WARN deprecated graceful-fs@1.2.3: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
npm WARN deprecated lodash@1.0.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.

> spawn-sync@1.0.15 postinstall /source/angular/generator-ng-component/node_modules/yeoman-generator/node_modules/cross-spawn/node_modules/spawn-sync
> node postinstall

npm WARN deprecated graceful-fs@2.0.3: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
yeoman-assert@2.1.1 node_modules/yeoman-assert
└── path-exists@1.0.0

chalk@0.4.0 node_modules/chalk
├── has-color@0.1.7
├── ansi-styles@1.0.0
└── strip-ansi@0.1.1

underscore.string@3.3.4 node_modules/underscore.string
├── util-deprecate@1.0.2
└── sprintf-js@1.0.3

chai@1.10.0 node_modules/chai
├── assertion-error@1.0.0
└── deep-eql@0.1.3 (type-detect@0.1.1)

grunt-release@0.7.0 node_modules/grunt-release
├── q@1.0.1
├── semver@2.0.11
├── shelljs@0.1.4
└── superagent@0.15.7 (methods@0.0.1, debug@0.7.4, cookiejar@1.3.0, qs@0.6.5, emitter-component@1.0.0, reduce-component@1.0.1, mime@1.2.5, formidable@1.0.14)

grunt-contrib-watch@0.6.1 node_modules/grunt-contrib-watch
├── async@0.2.10
├── tiny-lr-fork@0.0.5 (debug@0.7.4, faye-websocket@0.4.4, noptify@0.0.3, qs@0.5.6)
├── gaze@0.5.2 (globule@0.1.0)
└── lodash@2.4.2

grunt@0.4.5 node_modules/grunt
├── which@1.0.9
├── dateformat@1.0.2-1.2.3
├── eventemitter2@0.4.14
├── getobject@0.1.0
├── colors@0.6.2
├── rimraf@2.2.8
├── async@0.1.22
├── hooker@0.2.3
├── grunt-legacy-util@0.2.0
├── exit@0.1.2
├── nopt@1.0.10 (abbrev@1.0.7)
├── minimatch@0.2.14 (sigmund@1.0.1, lru-cache@2.7.3)
├── glob@3.1.21 (inherits@1.0.2, graceful-fs@1.2.3)
├── lodash@0.9.2
├── coffee-script@1.3.3
├── underscore.string@2.2.1
├── iconv-lite@0.2.11
├── findup-sync@0.1.3 (glob@3.2.11, lodash@2.4.2)
├── grunt-legacy-log@0.1.3 (grunt-legacy-log-utils@0.1.1, underscore.string@2.3.3, lodash@2.4.2)
└── js-yaml@2.0.5 (argparse@0.1.16, esprima@1.0.4)

mocha@2.4.5 node_modules/mocha
├── escape-string-regexp@1.0.2
├── supports-color@1.2.0
├── growl@1.8.1
├── commander@2.3.0
├── diff@1.4.0
├── debug@2.2.0 (ms@0.7.1)
├── mkdirp@0.5.1 (minimist@0.0.8)
├── jade@0.26.3 (commander@0.6.1, mkdirp@0.3.0)
└── glob@3.2.3 (inherits@2.0.1, graceful-fs@2.0.3, minimatch@0.2.14)

grunt-mocha-test@0.10.2 node_modules/grunt-mocha-test
├── hooker@0.2.3
├── fs-extra@0.8.1 (jsonfile@1.1.1, rimraf@2.2.8, ncp@0.4.2, mkdirp@0.3.5)
└── mocha@1.18.2 (diff@1.0.7, growl@1.7.0, commander@2.0.0, mkdirp@0.3.5, debug@2.2.0, jade@0.26.3, glob@3.2.3)

lodash@3.10.1 node_modules/lodash

grunt-contrib-jshint@0.10.0 node_modules/grunt-contrib-jshint
├── hooker@0.2.3
└── jshint@2.5.11 (strip-json-comments@1.0.4, underscore@1.6.0, exit@0.1.2, minimatch@1.0.0, shelljs@0.3.0, console-browserify@1.1.0, cli@0.6.6, htmlparser2@3.8.3)

yeoman-generator@0.20.3 node_modules/yeoman-generator
├── read-chunk@1.0.1
├── detect-conflict@1.0.0
├── yeoman-welcome@1.0.1
├── path-exists@1.0.0
├── path-is-absolute@1.0.0
├── text-table@0.2.0
├── mime@1.3.4
├── user-home@2.0.0 (os-homedir@1.0.1)
├── xdg-basedir@2.0.0 (os-homedir@1.0.1)
├── class-extend@0.1.2 (object-assign@2.1.1)
├── istextorbinary@1.0.2 (binaryextensions@1.0.0, textextensions@1.0.1)
├── dargs@4.1.0 (number-is-nan@1.0.0)
├── nopt@3.0.6 (abbrev@1.0.7)
├── debug@2.2.0 (ms@0.7.1)
├── async@1.5.2
├── run-async@0.1.0 (once@1.3.3)
├── mkdirp@0.5.1 (minimist@0.0.8)
├── shelljs@0.5.3
├── chalk@1.1.1 (escape-string-regexp@1.0.5, supports-color@2.0.0, strip-ansi@3.0.1, has-ansi@2.0.0, ansi-styles@2.2.0)
├── cli-table@0.3.1 (colors@1.0.3)
├── through2@2.0.1 (xtend@4.0.1, readable-stream@2.0.5)
├── glob@5.0.15 (inherits@2.0.1, once@1.3.3, inflight@1.0.4, minimatch@3.0.0)
├── diff@2.2.1
├── findup-sync@0.2.1 (glob@4.3.5)
├── rimraf@2.5.2 (glob@7.0.3)
├── mem-fs-editor@2.2.0 (commondir@1.0.1, deep-extend@0.4.1, vinyl@1.1.1, globby@4.0.0, glob@6.0.4, multimatch@2.1.0, ejs@2.4.1)
├── dateformat@1.0.12 (get-stdin@4.0.1, meow@3.7.0)
├── pretty-bytes@2.0.1 (get-stdin@4.0.1, number-is-nan@1.0.0, meow@3.7.0)
├── github-username@2.1.0 (gh-got@2.4.0, meow@3.7.0)
├── cross-spawn@2.1.5 (cross-spawn-async@2.1.9, spawn-sync@1.0.15)
├── yeoman-environment@1.5.2 (escape-string-regexp@1.0.5, log-symbols@1.0.2, grouped-queue@0.3.2, untildify@2.1.0, mem-fs@1.1.2, globby@4.0.0, inquirer@0.11.4)
├── gruntfile-editor@1.1.0 (ast-query@1.1.0)
├── html-wiring@1.2.0 (detect-newline@1.0.3, cheerio@0.19.0)
├── download@4.4.3 (gulp-rename@1.2.2, object-assign@4.0.1, is-url@1.2.1, each-async@1.1.1, stream-combiner2@1.1.1, concat-stream@1.5.1, filenamify@1.2.0, read-all-stream@3.1.0, ware@1.3.0, vinyl@1.1.1, readable-stream@2.0.5, got@5.5.0, caw@1.2.0, gulp-decompress@1.2.0, vinyl-fs@2.4.2)
├── inquirer@0.8.5 (ansi-regex@1.1.1, figures@1.4.0, through@2.3.8, cli-width@1.1.1, readline2@0.1.1, rx@2.5.3)
└── sinon@1.17.3 (formatio@1.1.1, samsam@1.1.2, lolex@1.3.2, util@0.10.3)
lucifer@lucifer-Vostro-V13:/source/angular/generator-ng-component$




위와같이 작업 후 Grunt Task 에서 해당 파일을 새로고침 하면 아래와 같이 정상적으로 보여진다.




참조
http://gruntjs.com/getting-started#working-with-an-existing-grunt-project


2016년 3월 2일 수요일

[IntelliJ] Yeoman 연동 시 module.js:338 throw err; 증상 해결방법




OS: Ubuntu 15.10 (Gnome)
Tool: IntelliJ IDEA 15.0.4



증상

Yeoman PlugIn 설치 후 Yeoman 을 이용해서 모듈을 생성하려 하는데 아래와 같은 증상이 발생하며 프로젝트를 정상적으로 만들 수 없었다.



module.js:338
    throw err;
          ^
Error: Cannot find module '/home/lucifer/.npm/yo/1.7.0/package/node_modules/inquirer'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/home/lucifer/.IntelliJIdea15/config/plugins/Yeoman/runner/yeoman-simple-cli/lib/cli.js:105:16)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:501:10)









해결방법


1. 모듈 생성 시 Yoman 부분에서 'Configure Node.js and Yeoman' 를 선택한다.




2. Node 실행파일과 Yeoman yo package 경로를 입력 한다.


(Node 실행파일 위치, Yeoman yo package 경로 확인 방법)

lucifer@lucifer-Vostro-V13:~$ type node
node is /usr/bin/node
lucifer@lucifer-Vostro-V13:~$
lucifer@lucifer-Vostro-V13:~$ type yo
yo is /usr/local/bin/yo
lucifer@lucifer-Vostro-V13:~$
lucifer@lucifer-Vostro-V13:~$ ls -l /usr/local/bin/yo
lrwxrwxrwx 1 root root 33 Mar  1 12:29 /usr/local/bin/yo -> ../lib/node_modules/yo/lib/cli.js
lucifer@lucifer-Vostro-V13:~$
lucifer@lucifer-Vostro-V13:~$ cd /usr/local/lib/node_modules/yo/
lucifer@lucifer-Vostro-V13:/usr/local/lib/node_modules/yo$
lucifer@lucifer-Vostro-V13:/usr/local/lib/node_modules/yo$ ls -l
total 20
drwxr-xr-x  4 nobody lucifer 4096 Mar  1 12:29 lib
drwxr-xr-x 31 nobody lucifer 4096 Mar  1 12:29 node_modules
-rw-r--r--  1 nobody lucifer 3406 Mar  1 12:29 package.json
-rw-r--r--  1 nobody lucifer 7350 Feb 27 05:44 readme.md
lucifer@lucifer-Vostro-V13:/usr/local/lib/node_modules/yo$





3. 다시한번 모듈을 생성하면 아래와 같이 보여지게 된다.






[NodeJS] angular-fullstack 로 프로젝트 생성시 throw er; // Unhandled 'error' event 문제





증상

angular-fullstack 프로젝트 생성 시 아래와 같이 정상적으로 생성되지 않는다.


lucifer@lucifer-Vostro-V13:/source/angular/SPA-test$ yo angular-fullstack SPATest
Native thread-sleep not available.
This will result in much slower performance, but it will still work.
You should re-install spawn-sync or upgrade to the lastest version of node if possible.
Check /usr/local/lib/node_modules/generator-angular-fullstack/node_modules/yeoman-generator/node_modules/cross-spawn/node_modules/spawn-sync/error.log for more details

     _-----_
    |       |
    |--(o)--|   .--------------------------.
   `---------´  |    Welcome to Yeoman,    |
    ( _´U`_ )   |   ladies and gentlemen!  |
    /___A___\   '__________________________'
     |  ~  |
   __'.___.'__
 ´   `  |° ´ Y `

Out of the box I create an AngularJS app with an Express server.

# Client

? What would you like to write scripts with? TypeScript
? What would you like to write markup with? HTML
? What would you like to write stylesheets with? CSS
? What Angular router would you like to use? uiRouter
? Would you like to include Bootstrap? Yes
? Would you like to include UI Bootstrap? Yes

# Server

? What would you like to use for data modeling? Mongoose (MongoDB)
? Would you scaffold out an authentication boilerplate? Yes
? Would you like to include additional oAuth strategies? Google, Twitter
? Would you like to use socket.io? Yes

# Project

? Would you like to use Gulp or Grunt? Grunt
? What would you like to write tests with? Jasmine
You're using the fantastic NgComponent generator.

Initializing yo-rc.json configuration.



events.js:72
        throw er; // Unhandled 'error' event
              ^
TypeError: Object [object Object] has no method 'isAbsolute'
    at Generator.processDirectory (/usr/local/lib/node_modules/generator-angular-fullstack/util.js:117:19)
    at Generator.generateProject (/usr/local/lib/node_modules/generator-angular-fullstack/app/generator.js:414:14)
    at /usr/local/lib/node_modules/generator-angular-fullstack/node_modules/yeoman-generator/lib/base.js:429:16
    at processImmediate [as _immediateCallback] (timers.js:330:15)
lucifer@lucifer-Vostro-V13:/source/angular/SPA-test$






원인 및 해결방법

 최신버전의 generator-angular-fullstack 은 NodeJS v0.12 버전 이상이어야 한다. (Link)

NodeJS 의 버전을 v0.12 나 4 또는 5 버전으로 업그레이드 후 다시 프로젝트를 생성한다.
NodeJS 버전 업데이트 방법 => Link




참조
https://github.com/angular-fullstack/generator-angular-fullstack/issues/1180
https://github.com/angular-fullstack/generator-angular-fullstack/issues/1197



[NodeJS] lib/kerberos.h:5:27: fatal error: gssapi/gssapi.h 에러 발생원인



OS: Ubuntu 15.10 (Gnome)



증상

angular-fullstack 프로젝트를 생성 시 아래와 같이 로그가 발생을 했다.

 $ yo angular-fullstack SPATest

...

> kerberos@0.0.18 install /source/angular/SPA-test/node_modules/connect-mongo/node_modules/mongodb/node_modules/kerberos
> (node-gyp rebuild) || (exit 0)

make: Entering directory '/source/angular/SPA-test/node_modules/connect-mongo/node_modules/mongodb/node_modules/kerberos/build'
  CXX(target) Release/obj.target/kerberos/lib/kerberos.o
In file included from ../lib/kerberos.cc:1:0:
../lib/kerberos.h:5:27: fatal error: gssapi/gssapi.h: 그런 파일이나 디렉터리가 없습니다
compilation terminated.
kerberos.target.mk:93: recipe for target 'Release/obj.target/kerberos/lib/kerberos.o' failed
make: *** [Release/obj.target/kerberos/lib/kerberos.o] Error 1
make: Leaving directory '/source/angular/SPA-test/node_modules/connect-mongo/node_modules/mongodb/node_modules/kerberos/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1075:12)
gyp ERR! System Linux 4.2.0-30-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /source/angular/SPA-test/node_modules/connect-mongo/node_modules/mongodb/node_modules/kerberos
gyp ERR! node -v v0.12.10
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok

> bufferutil@1.2.1 install /source/angular/SPA-test/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/ws/node_modules/bufferutil
> node-gyp rebuild

...







해결방법

libkrb5-dev 를 설치해준다.

 $ sudo apt-get install libkrb5-dev



위와 같이 libkrb5-dev 설치 후 다시 angular-fullstack 프로젝트 다시 생성 시 해당 오류가 발생하지 않았다.



참조
https://github.com/christkv/kerberos/issues/21



2016년 3월 1일 화요일

[Yeoman] angular-fullstack 생성시 script type에 JavaScript 가 없는이유




angular-fullstack 으로 프로젝트를 새로 생성 시 script 선택란에 JavaScript 가 없어 당황했다.


lucifer@lucifer-Vostro-V13:/source/angular/SPA-test$ yo angular-fullstack SPATest

     _-----_
    |       |
    |--(o)--|   .--------------------------.
   `---------´  |    Welcome to Yeoman,    |
    ( _´U`_ )   |   ladies and gentlemen!  |
    /___A___\   '__________________________'
     |  ~  |
   __'.___.'__
 ´   `  |° ´ Y `

Out of the box I create an AngularJS app with an Express server.

# Client

? What would you like to write scripts with?
❯ Babel
  TypeScript




angular-fullstack 이슈(Link)를 보니 Babel을 선택 시 output 이 JavaScript 로 생성이 되며 ECMAScript 5 문법을 지원하니 JavaScript 를 사용하려면 Babel 을 사용하라고 가이드 되어있다.





참조
https://github.com/angular-fullstack/generator-angular-fullstack/issues/1627



[Ubuntu] NodeJS 최신버전으로 업데이트하기



OS: Ubuntu 15.10 (Gnome)



증상

아래와 같이 nodejs 를 설치했는데도 이미 최신버전 이라고 나오며 업데이트를 하지 않는상황이 발생했다.


lucifer@lucifer-Vostro-V13:~$ sudo apt-get install nodejs
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다
상태 정보를 읽는 중입니다... 완료
nodejs 패키지는 이미 최신 버전입니다.
0개 업그레이드, 0개 새로 설치, 0개 제거 및 3개 업그레이드 안 함.
lucifer@lucifer-Vostro-V13:~$
lucifer@lucifer-Vostro-V13:~$
lucifer@lucifer-Vostro-V13:~$ node -v
v0.10.25
lucifer@lucifer-Vostro-V13:~$











해결방법

설치하고자 하는 버전에 따라 명령어가 다르다.

NodeJS v0.12: curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
NodeJS v4: curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
NodeJS v5: curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -



나의 경우에는 v0.12 로 업데이트를 했다.


lucifer@lucifer-Vostro-V13:~$
lucifer@lucifer-Vostro-V13:~$ curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
[sudo] password for lucifer:

## Installing the NodeSource Node.js 0.12 repo...


## Populating apt-get cache...

+ apt-get update
기존 http://kr.archive.ubuntu.com wily InRelease
기존 http://kr.archive.ubuntu.com wily-updates InRelease
기존 http://kr.archive.ubuntu.com wily-backports InRelease
기존 http://kr.archive.ubuntu.com wily/main Sources
기존 http://kr.archive.ubuntu.com wily/restricted Sources
기존 http://kr.archive.ubuntu.com wily/universe Sources
무시http://dl.google.com stable InRelease
기존 http://kr.archive.ubuntu.com wily/multiverse Sources
기존 http://kr.archive.ubuntu.com wily/main amd64 Packages
기존 http://kr.archive.ubuntu.com wily/restricted amd64 Packages
기존 http://kr.archive.ubuntu.com wily/universe amd64 Packages
기존 http://kr.archive.ubuntu.com wily/multiverse amd64 Packages
기존 http://kr.archive.ubuntu.com wily/main i386 Packages
기존 http://kr.archive.ubuntu.com wily/restricted i386 Packages
기존 http://kr.archive.ubuntu.com wily/universe i386 Packages
기존 http://kr.archive.ubuntu.com wily/multiverse i386 Packages
기존 http://kr.archive.ubuntu.com wily/main Translation-ko
기존 http://kr.archive.ubuntu.com wily/main Translation-en
기존 http://kr.archive.ubuntu.com wily/multiverse Translation-en
기존 http://kr.archive.ubuntu.com wily/restricted Translation-ko
기존 http://kr.archive.ubuntu.com wily/restricted Translation-en
기존 http://kr.archive.ubuntu.com wily/universe Translation-ko
기존 http://kr.archive.ubuntu.com wily/universe Translation-en
기존 http://kr.archive.ubuntu.com wily-updates/main Sources
기존 http://dl.google.com stable Release.gpg
기존 http://kr.archive.ubuntu.com wily-updates/restricted Sources
기존 http://kr.archive.ubuntu.com wily-updates/universe Sources
기존 http://kr.archive.ubuntu.com wily-updates/multiverse Sources
기존 http://kr.archive.ubuntu.com wily-updates/main amd64 Packages
기존 http://kr.archive.ubuntu.com wily-updates/restricted amd64 Packages
기존 http://kr.archive.ubuntu.com wily-updates/universe amd64 Packages
기존 http://dl.google.com stable Release
기존 http://kr.archive.ubuntu.com wily-updates/multiverse amd64 Packages
기존 http://kr.archive.ubuntu.com wily-updates/main i386 Packages
기존 http://kr.archive.ubuntu.com wily-updates/restricted i386 Packages
기존 http://kr.archive.ubuntu.com wily-updates/universe i386 Packages
기존 http://kr.archive.ubuntu.com wily-updates/multiverse i386 Packages
기존 http://kr.archive.ubuntu.com wily-updates/main Translation-en
기존 http://kr.archive.ubuntu.com wily-updates/multiverse Translation-en
받기:1 http://security.ubuntu.com wily-security InRelease [65.9 kB]
기존 http://kr.archive.ubuntu.com wily-updates/restricted Translation-en
기존 http://kr.archive.ubuntu.com wily-updates/universe Translation-en
기존 http://kr.archive.ubuntu.com wily-backports/main Sources
기존 http://kr.archive.ubuntu.com wily-backports/restricted Sources
기존 http://kr.archive.ubuntu.com wily-backports/universe Sources
기존 http://kr.archive.ubuntu.com wily-backports/multiverse Sources
기존 http://kr.archive.ubuntu.com wily-backports/main amd64 Packages
기존 http://kr.archive.ubuntu.com wily-backports/restricted amd64 Packages
기존 http://dl.google.com stable/main amd64 Packages
기존 http://kr.archive.ubuntu.com wily-backports/universe amd64 Packages
기존 http://kr.archive.ubuntu.com wily-backports/multiverse amd64 Packages
기존 http://kr.archive.ubuntu.com wily-backports/main i386 Packages
기존 http://kr.archive.ubuntu.com wily-backports/restricted i386 Packages
기존 http://kr.archive.ubuntu.com wily-backports/universe i386 Packages
기존 http://kr.archive.ubuntu.com wily-backports/multiverse i386 Packages
기존 http://kr.archive.ubuntu.com wily-backports/main Translation-en
기존 http://kr.archive.ubuntu.com wily-backports/multiverse Translation-en
기존 http://kr.archive.ubuntu.com wily-backports/restricted Translation-en
기존 http://dl.google.com stable/main i386 Packages
기존 http://kr.archive.ubuntu.com wily-backports/universe Translation-en
받기:2 http://security.ubuntu.com wily-security/main Sources [38.7 kB]
받기:3 http://security.ubuntu.com wily-security/restricted Sources [2,854 B]
받기:4 http://security.ubuntu.com wily-security/universe Sources [8,955 B]
받기:5 http://security.ubuntu.com wily-security/multiverse Sources [2,772 B]
받기:6 http://security.ubuntu.com wily-security/main amd64 Packages [126 kB]
받기:7 http://security.ubuntu.com wily-security/restricted amd64 Packages [10.9 kB]
받기:8 http://security.ubuntu.com wily-security/universe amd64 Packages [45.0 kB]
받기:9 http://security.ubuntu.com wily-security/multiverse amd64 Packages [6,249 B]
무시http://dl.google.com stable/main Translation-ko_KR
받기:10 http://security.ubuntu.com wily-security/main i386 Packages [124 kB]
무시http://dl.google.com stable/main Translation-ko
무시http://dl.google.com stable/main Translation-en
받기:11 http://security.ubuntu.com wily-security/restricted i386 Packages [10.8 kB]
받기:12 http://security.ubuntu.com wily-security/universe i386 Packages [45.1 kB]
받기:13 http://security.ubuntu.com wily-security/multiverse i386 Packages [6,434 B]
기존 http://security.ubuntu.com wily-security/main Translation-en
기존 http://security.ubuntu.com wily-security/multiverse Translation-en
기존 http://security.ubuntu.com wily-security/restricted Translation-en
기존 http://security.ubuntu.com wily-security/universe Translation-en
내려받기 494 k바이트, 소요시간 8초 (59.8 k바이트/초)
패키지 목록을 읽는 중입니다... 완료

## Confirming "wily" is supported...

+ curl -sLf -o /dev/null 'https://deb.nodesource.com/node_0.12/dists/wily/Release'

## Adding the NodeSource signing key to your keyring...

+ curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
OK

## Creating apt sources list file for the NodeSource Node.js 0.12 repo...

+ echo 'deb https://deb.nodesource.com/node_0.12 wily main' > ~/sources.list.d/nodesource.list
+ echo 'deb-src https://deb.nodesource.com/node_0.12 wily main' >> ~/sources.list.d/nodesource.list

## Running `apt-get update` for you...

+ apt-get update
기존 http://kr.archive.ubuntu.com wily InRelease
기존 http://kr.archive.ubuntu.com wily-updates InRelease
기존 http://kr.archive.ubuntu.com wily-backports InRelease
기존 http://kr.archive.ubuntu.com wily/main Sources
기존 http://kr.archive.ubuntu.com wily/restricted Sources
기존 http://kr.archive.ubuntu.com wily/universe Sources
기존 http://kr.archive.ubuntu.com wily/multiverse Sources
기존 http://kr.archive.ubuntu.com wily/main amd64 Packages
기존 http://kr.archive.ubuntu.com wily/restricted amd64 Packages
기존 http://kr.archive.ubuntu.com wily/universe amd64 Packages
무시http://dl.google.com stable InRelease
기존 http://kr.archive.ubuntu.com wily/multiverse amd64 Packages
기존 http://kr.archive.ubuntu.com wily/main i386 Packages
기존 http://kr.archive.ubuntu.com wily/restricted i386 Packages
기존 http://kr.archive.ubuntu.com wily/universe i386 Packages
기존 http://kr.archive.ubuntu.com wily/multiverse i386 Packages
기존 http://kr.archive.ubuntu.com wily/main Translation-ko
기존 http://kr.archive.ubuntu.com wily/main Translation-en
기존 http://kr.archive.ubuntu.com wily/multiverse Translation-en
기존 http://kr.archive.ubuntu.com wily/restricted Translation-ko
기존 http://kr.archive.ubuntu.com wily/restricted Translation-en
기존 http://dl.google.com stable Release.gpg
기존 http://kr.archive.ubuntu.com wily/universe Translation-ko
기존 http://kr.archive.ubuntu.com wily/universe Translation-en
기존 http://kr.archive.ubuntu.com wily-updates/main Sources
기존 http://kr.archive.ubuntu.com wily-updates/restricted Sources
기존 http://kr.archive.ubuntu.com wily-updates/universe Sources
기존 http://kr.archive.ubuntu.com wily-updates/multiverse Sources
기존 http://kr.archive.ubuntu.com wily-updates/main amd64 Packages
기존 http://kr.archive.ubuntu.com wily-updates/restricted amd64 Packages
기존 http://kr.archive.ubuntu.com wily-updates/universe amd64 Packages
기존 http://dl.google.com stable Release
기존 http://kr.archive.ubuntu.com wily-updates/multiverse amd64 Packages
기존 http://kr.archive.ubuntu.com wily-updates/main i386 Packages
기존 http://kr.archive.ubuntu.com wily-updates/restricted i386 Packages
기존 http://kr.archive.ubuntu.com wily-updates/universe i386 Packages
기존 http://security.ubuntu.com wily-security InRelease
기존 http://kr.archive.ubuntu.com wily-updates/multiverse i386 Packages
기존 http://kr.archive.ubuntu.com wily-updates/main Translation-en
기존 http://kr.archive.ubuntu.com wily-updates/multiverse Translation-en
기존 http://kr.archive.ubuntu.com wily-updates/restricted Translation-en
기존 http://kr.archive.ubuntu.com wily-updates/universe Translation-en
기존 http://kr.archive.ubuntu.com wily-backports/main Sources
기존 http://dl.google.com stable/main amd64 Packages
기존 http://kr.archive.ubuntu.com wily-backports/restricted Sources
기존 http://kr.archive.ubuntu.com wily-backports/universe Sources
기존 http://kr.archive.ubuntu.com wily-backports/multiverse Sources
기존 http://kr.archive.ubuntu.com wily-backports/main amd64 Packages
기존 http://kr.archive.ubuntu.com wily-backports/restricted amd64 Packages
기존 http://kr.archive.ubuntu.com wily-backports/universe amd64 Packages
기존 http://kr.archive.ubuntu.com wily-backports/multiverse amd64 Packages
기존 http://kr.archive.ubuntu.com wily-backports/main i386 Packages
기존 http://kr.archive.ubuntu.com wily-backports/restricted i386 Packages
기존 http://dl.google.com stable/main i386 Packages
기존 http://kr.archive.ubuntu.com wily-backports/universe i386 Packages
기존 http://kr.archive.ubuntu.com wily-backports/multiverse i386 Packages
기존 http://kr.archive.ubuntu.com wily-backports/main Translation-en
기존 http://kr.archive.ubuntu.com wily-backports/multiverse Translation-en
기존 http://kr.archive.ubuntu.com wily-backports/restricted Translation-en
기존 http://kr.archive.ubuntu.com wily-backports/universe Translation-en
기존 http://security.ubuntu.com wily-security/main Sources
기존 http://security.ubuntu.com wily-security/restricted Sources
받기:1 https://deb.nodesource.com wily InRelease [3,911 B]
기존 http://security.ubuntu.com wily-security/universe Sources
받기:2 https://deb.nodesource.com wily/main Sources [764 B]
기존 http://security.ubuntu.com wily-security/multiverse Sources
받기:3 https://deb.nodesource.com wily/main amd64 Packages [976 B]
기존 http://security.ubuntu.com wily-security/main amd64 Packages
받기:4 https://deb.nodesource.com wily/main i386 Packages [976 B]
기존 http://security.ubuntu.com wily-security/restricted amd64 Packages
받기:5 https://deb.nodesource.com wily/main Translation-ko_KR [162 B]
기존 http://security.ubuntu.com wily-security/universe amd64 Packages
받기:6 https://deb.nodesource.com wily/main Translation-ko [162 B]
무시http://dl.google.com stable/main Translation-ko_KR
무시http://dl.google.com stable/main Translation-ko
기존 http://security.ubuntu.com wily-security/multiverse amd64 Packages
받기:7 https://deb.nodesource.com wily/main Translation-en [162 B]
무시http://dl.google.com stable/main Translation-en
기존 http://security.ubuntu.com wily-security/main i386 Packages
받기:8 https://deb.nodesource.com wily/main Translation-ko_KR [162 B]
받기:9 https://deb.nodesource.com wily/main Translation-ko [162 B]
기존 http://security.ubuntu.com wily-security/restricted i386 Packages
받기:10 https://deb.nodesource.com wily/main Translation-en [162 B]
기존 http://security.ubuntu.com wily-security/universe i386 Packages
받기:11 https://deb.nodesource.com wily/main Translation-ko_KR [162 B]
기존 http://security.ubuntu.com wily-security/multiverse i386 Packages
받기:12 https://deb.nodesource.com wily/main Translation-ko [162 B]
기존 http://security.ubuntu.com wily-security/main Translation-en
받기:13 https://deb.nodesource.com wily/main Translation-en [162 B]
받기:14 https://deb.nodesource.com wily/main Translation-ko_KR [162 B]
기존 http://security.ubuntu.com wily-security/multiverse Translation-en
받기:15 https://deb.nodesource.com wily/main Translation-ko [162 B]
기존 http://security.ubuntu.com wily-security/restricted Translation-en
받기:16 https://deb.nodesource.com wily/main Translation-en [162 B]
기존 http://security.ubuntu.com wily-security/universe Translation-en
받기:17 https://deb.nodesource.com wily/main Translation-ko_KR [162 B]
무시https://deb.nodesource.com wily/main Translation-ko_KR
받기:18 https://deb.nodesource.com wily/main Translation-ko [162 B]
무시https://deb.nodesource.com wily/main Translation-ko
받기:19 https://deb.nodesource.com wily/main Translation-en [162 B]
무시https://deb.nodesource.com wily/main Translation-en
내려받기 6,627 바이트, 소요시간 8초 (790 바이트/초)
패키지 목록을 읽는 중입니다... 완료

## Run `apt-get install nodejs` (as root) to install Node.js 0.12 and npm

lucifer@lucifer-Vostro-V13:~$
lucifer@lucifer-Vostro-V13:~$
lucifer@lucifer-Vostro-V13:~$
lucifer@lucifer-Vostro-V13:~$ sudo apt-get install -y nodejs
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다
상태 정보를 읽는 중입니다... 완료
다음 패키지가 자동으로 설치되었지만 더 이상 필요하지 않습니다:
  gyp javascript-common kde-l10n-engb kde-l10n-ko libc-ares-dev libc-ares2 libjs-inherits libjs-jquery libjs-node-uuid libjs-underscore libssl-dev
  libssl-doc libv8-3.14-dev libv8-3.14.5 node-abbrev node-ansi node-ansi-color-table node-archy node-async node-block-stream node-combined-stream
  node-cookie-jar node-delayed-stream node-forever-agent node-form-data node-fstream node-fstream-ignore node-github-url-from-git node-glob
  node-graceful-fs node-gyp node-inherits node-ini node-json-stringify-safe node-lockfile node-lru-cache node-mime node-minimatch node-mkdirp
  node-mute-stream node-node-uuid node-nopt node-normalize-package-data node-npmlog node-once node-osenv node-qs node-read node-read-package-json
  node-request node-retry node-rimraf node-semver node-sha node-sigmund node-slide node-tar node-tunnel-agent node-underscore node-which zlib1g-dev
Use 'apt-get autoremove' to remove them.
다음 패키지를 더 설치할 것입니다:
  rlwrap
다음 패키지를 지울 것입니다:
  nodejs-dev npm
다음 새 패키지를 설치할 것입니다:
  rlwrap
다음 패키지를 업그레이드할 것입니다:
  nodejs
1개 업그레이드, 1개 새로 설치, 2개 제거 및 3개 업그레이드 안 함.
7,206 k바이트 아카이브를 받아야 합니다.
이 작업 후 28.1 M바이트의 디스크 공간을 더 사용하게 됩니다.
받기:1 http://kr.archive.ubuntu.com/ubuntu/ wily/universe rlwrap amd64 0.41-1 [74.2 kB]
받기:2 https://deb.nodesource.com/node_0.12/ wily/main nodejs amd64 0.12.10-1nodesource1~wily1 [7,132 kB]
내려받기 7,206 k바이트, 소요시간 5초 (1,253 k바이트/초)
(데이터베이스 읽는중 ...현재 222862개의 파일과 디렉터리가 설치되어 있습니다.)
Removing npm (1.4.21+ds-2) ...
Processing triggers for man-db (2.7.4-1) ...
Selecting previously unselected package rlwrap.
(데이터베이스 읽는중 ...현재 222180개의 파일과 디렉터리가 설치되어 있습니다.)
Preparing to unpack .../rlwrap_0.41-1_amd64.deb ...
Unpacking rlwrap (0.41-1) ...
Processing triggers for man-db (2.7.4-1) ...
dpkg: nodejs-dev: dependency problems, but removing anyway as you requested:
 node-gyp 패키지는 다음 패키지에 의존: nodejs-dev.

(데이터베이스 읽는중 ...현재 222210개의 파일과 디렉터리가 설치되어 있습니다.)
Removing nodejs-dev (0.10.25~dfsg2-2ubuntu1) ...
(데이터베이스 읽는중 ...현재 222144개의 파일과 디렉터리가 설치되어 있습니다.)
Preparing to unpack .../nodejs_0.12.10-1nodesource1~wily1_amd64.deb ...
Unpacking nodejs (0.12.10-1nodesource1~wily1) over (0.10.25~dfsg2-2ubuntu1) ...
Processing triggers for man-db (2.7.4-1) ...
rlwrap (0.41-1) 설정하는 중입니다 ...
update-alternatives: using /usr/bin/rlwrap to provide /usr/bin/readline-editor (readline-editor) in auto mode
nodejs (0.12.10-1nodesource1~wily1) 설정하는 중입니다 ...
lucifer@lucifer-Vostro-V13:~$
lucifer@lucifer-Vostro-V13:~$
lucifer@lucifer-Vostro-V13:~$ node -v
v0.12.10
lucifer@lucifer-Vostro-V13:~$






PS.

E: Some index files failed to download. They have been ignored, or old ones used instead.

업데이트 중 위와 같이 로그가 나오며 정상적으로 되지 않는 경우에는 아래의 링크로 이동해서 확인하기 바란다.
http://1004lucifer.blogspot.kr/2016/03/ubuntu-e-some-index-files-failed-to.html




참조
http://askubuntu.com/questions/594656/how-to-install-the-latest-versions-of-nodejs-and-npm-for-ubuntu-14-04-lts
https://nodesource.com/blog/nodejs-v012-iojs-and-the-nodesource-linux-repositories/



[Ubuntu] E: Some index files failed to download. 문제 해결방법




OS: Ubuntu 15.10 (Gnome)



증상

우분투에서 'sudo apt-get update' 명령어 실행 시 정상적으로 완료되지 않는다.



lucifer@lucifer-Vostro-V13:~$ sudo apt-get update
기존 http://kr.archive.ubuntu.com wily InRelease
기존 http://kr.archive.ubuntu.com wily-updates InRelease
기존 http://kr.archive.ubuntu.com wily-backports InRelease
무시http://dl.google.com stable InRelease
기존 http://dl.google.com stable Release.gpg
기존 http://kr.archive.ubuntu.com wily/main Sources
기존 http://dl.google.com stable Release
기존 http://security.ubuntu.com wily-security InRelease
기존 http://kr.archive.ubuntu.com wily/restricted Sources
기존 http://kr.archive.ubuntu.com wily/universe Sources
기존 http://kr.archive.ubuntu.com wily-backports/restricted Sources
기존 http://kr.archive.ubuntu.com wily-backports/multiverse Sources
기존 http://kr.archive.ubuntu.com wily-backports/restricted amd64 Packages
기존 http://kr.archive.ubuntu.com wily-backports/multiverse amd64 Packages
기존 http://kr.archive.ubuntu.com wily-backports/restricted i386 Packages
기존 http://kr.archive.ubuntu.com wily-backports/multiverse i386 Packages
기존 http://kr.archive.ubuntu.com wily-backports/multiverse Translation-en
기존 http://kr.archive.ubuntu.com wily-backports/restricted Translation-en
기존 http://kr.archive.ubuntu.com wily/multiverse Sources
기존 http://kr.archive.ubuntu.com wily/main amd64 Packages
무시http://ppa.launchpad.net wily InRelease
기존 http://kr.archive.ubuntu.com wily/restricted amd64 Packages
기존 http://kr.archive.ubuntu.com wily/universe amd64 Packages
기존 http://kr.archive.ubuntu.com wily/multiverse amd64 Packages
기존 http://kr.archive.ubuntu.com wily/main i386 Packages
기존 http://kr.archive.ubuntu.com wily/restricted i386 Packages
기존 http://kr.archive.ubuntu.com wily/universe i386 Packages
기존 http://kr.archive.ubuntu.com wily/multiverse i386 Packages
기존 http://kr.archive.ubuntu.com wily/main Translation-ko
기존 http://kr.archive.ubuntu.com wily/main Translation-en
기존 http://kr.archive.ubuntu.com wily/multiverse Translation-en
기존 http://kr.archive.ubuntu.com wily/restricted Translation-ko
기존 http://kr.archive.ubuntu.com wily/restricted Translation-en
기존 http://kr.archive.ubuntu.com wily/universe Translation-ko
기존 http://kr.archive.ubuntu.com wily/universe Translation-en
기존 http://kr.archive.ubuntu.com wily-updates/main Sources
기존 http://kr.archive.ubuntu.com wily-updates/restricted Sources
기존 http://kr.archive.ubuntu.com wily-updates/universe Sources
기존 http://kr.archive.ubuntu.com wily-updates/multiverse Sources
기존 http://kr.archive.ubuntu.com wily-updates/main amd64 Packages
기존 http://kr.archive.ubuntu.com wily-updates/restricted amd64 Packages
기존 http://kr.archive.ubuntu.com wily-updates/universe amd64 Packages
무시http://ppa.launchpad.net wily InRelease
기존 http://kr.archive.ubuntu.com wily-updates/multiverse amd64 Packages
기존 http://kr.archive.ubuntu.com wily-updates/main i386 Packages
기존 http://kr.archive.ubuntu.com wily-updates/restricted i386 Packages
기존 http://dl.google.com stable/main amd64 Packages
기존 http://kr.archive.ubuntu.com wily-updates/universe i386 Packages
기존 http://kr.archive.ubuntu.com wily-updates/multiverse i386 Packages
기존 http://kr.archive.ubuntu.com wily-updates/main Translation-en
기존 http://kr.archive.ubuntu.com wily-updates/multiverse Translation-en
기존 http://kr.archive.ubuntu.com wily-updates/restricted Translation-en
기존 http://kr.archive.ubuntu.com wily-updates/universe Translation-en
기존 http://kr.archive.ubuntu.com wily-backports/main Sources
기존 http://kr.archive.ubuntu.com wily-backports/universe Sources
기존 http://dl.google.com stable/main i386 Packages
기존 http://kr.archive.ubuntu.com wily-backports/main amd64 Packages
기존 http://kr.archive.ubuntu.com wily-backports/universe amd64 Packages
기존 http://kr.archive.ubuntu.com wily-backports/main i386 Packages
기존 http://kr.archive.ubuntu.com wily-backports/universe i386 Packages
기존 http://kr.archive.ubuntu.com wily-backports/main Translation-en
기존 http://kr.archive.ubuntu.com wily-backports/universe Translation-en
기존 http://ppa.launchpad.net wily InRelease
무시http://ppa.launchpad.net wily Release.gpg
무시http://ppa.launchpad.net wily Release.gpg
무시http://dl.google.com stable/main Translation-ko_KR
무시http://dl.google.com stable/main Translation-ko
무시http://dl.google.com stable/main Translation-en
무시http://ppa.launchpad.net wily Release
무시http://ppa.launchpad.net wily Release
기존 http://ppa.launchpad.net wily/main amd64 Packages
기존 http://ppa.launchpad.net wily/main i386 Packages
기존 http://ppa.launchpad.net wily/main Translation-en
기존 http://security.ubuntu.com wily-security/main Sources
기존 http://security.ubuntu.com wily-security/restricted Sources
기존 http://security.ubuntu.com wily-security/universe Sources
기존 http://security.ubuntu.com wily-security/multiverse Sources
기존 http://security.ubuntu.com wily-security/main amd64 Packages
기존 http://security.ubuntu.com wily-security/restricted amd64 Packages
기존 http://security.ubuntu.com wily-security/universe amd64 Packages
기존 http://security.ubuntu.com wily-security/multiverse amd64 Packages
기존 http://security.ubuntu.com wily-security/main i386 Packages
기존 http://security.ubuntu.com wily-security/restricted i386 Packages
기존 http://security.ubuntu.com wily-security/universe i386 Packages
기존 http://security.ubuntu.com wily-security/multiverse i386 Packages
기존 http://security.ubuntu.com wily-security/main Translation-en
기존 http://security.ubuntu.com wily-security/multiverse Translation-en
기존 http://security.ubuntu.com wily-security/restricted Translation-en
기존 http://security.ubuntu.com wily-security/universe Translation-en
오류 http://ppa.launchpad.net wily/main amd64 Packages
  404  Not Found
오류 http://ppa.launchpad.net wily/main i386 Packages
  404  Not Found
무시http://ppa.launchpad.net wily/main Translation-ko_KR
무시http://ppa.launchpad.net wily/main Translation-ko
무시http://ppa.launchpad.net wily/main Translation-en
오류 http://ppa.launchpad.net wily/main amd64 Packages
  404  Not Found
오류 http://ppa.launchpad.net wily/main i386 Packages
  404  Not Found
무시http://ppa.launchpad.net wily/main Translation-ko_KR
무시http://ppa.launchpad.net wily/main Translation-ko
무시http://ppa.launchpad.net wily/main Translation-en
W: http://ppa.launchpad.net/chris-lea/node.js/ubuntu/dists/wily/main/binary-amd64/Packages 파일을 받는데 실패했습니다  404  Not Found

W: http://ppa.launchpad.net/chris-lea/node.js/ubuntu/dists/wily/main/binary-i386/Packages 파일을 받는데 실패했습니다  404  Not Found

W: http://ppa.launchpad.net/darklin20/bomi/ubuntu/dists/wily/main/binary-amd64/Packages 파일을 받는데 실패했습니다  404  Not Found

W: http://ppa.launchpad.net/darklin20/bomi/ubuntu/dists/wily/main/binary-i386/Packages 파일을 받는데 실패했습니다  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
lucifer@lucifer-Vostro-V13:~$











해결방법


1. 소프트웨어 & 업데이트 (Software Sources) 를 실행한다.






2. 에러가 났던 해당 소프트웨어 이름의 체크를 해지한다.






3. 다시 'sudo apt-get update' 실행 시 정상적으로 완료되는 것을 확인할 수 있다.


lucifer@lucifer-Vostro-V13:~$ sudo apt-get update
기존 http://kr.archive.ubuntu.com wily InRelease
기존 http://kr.archive.ubuntu.com wily-updates InRelease
기존 http://kr.archive.ubuntu.com wily-backports InRelease
무시http://dl.google.com stable InRelease
기존 http://kr.archive.ubuntu.com wily/main Sources
받기:1 http://security.ubuntu.com wily-security InRelease [65.9 kB]
기존 http://dl.google.com stable Release.gpg
기존 http://kr.archive.ubuntu.com wily/restricted Sources
기존 http://kr.archive.ubuntu.com wily-backports/restricted Sources
기존 http://kr.archive.ubuntu.com wily-backports/multiverse Sources
기존 http://kr.archive.ubuntu.com wily-backports/restricted amd64 Packages
기존 http://kr.archive.ubuntu.com wily-backports/multiverse amd64 Packages
기존 http://kr.archive.ubuntu.com wily-backports/restricted i386 Packages
기존 http://kr.archive.ubuntu.com wily-backports/multiverse i386 Packages
기존 http://kr.archive.ubuntu.com wily-backports/multiverse Translation-en
기존 http://dl.google.com stable Release
기존 http://kr.archive.ubuntu.com wily-backports/restricted Translation-en
기존 http://kr.archive.ubuntu.com wily/universe Sources
기존 http://kr.archive.ubuntu.com wily/multiverse Sources
기존 http://kr.archive.ubuntu.com wily/main amd64 Packages
기존 http://kr.archive.ubuntu.com wily/restricted amd64 Packages
기존 http://kr.archive.ubuntu.com wily/universe amd64 Packages
기존 http://kr.archive.ubuntu.com wily/multiverse amd64 Packages
기존 http://kr.archive.ubuntu.com wily/main i386 Packages
기존 http://kr.archive.ubuntu.com wily/restricted i386 Packages
기존 http://kr.archive.ubuntu.com wily/universe i386 Packages
기존 http://kr.archive.ubuntu.com wily/multiverse i386 Packages
기존 http://kr.archive.ubuntu.com wily/main Translation-ko
기존 http://kr.archive.ubuntu.com wily/main Translation-en
기존 http://kr.archive.ubuntu.com wily/multiverse Translation-en
기존 http://kr.archive.ubuntu.com wily/restricted Translation-ko
기존 http://kr.archive.ubuntu.com wily/restricted Translation-en
기존 http://kr.archive.ubuntu.com wily/universe Translation-ko
기존 http://kr.archive.ubuntu.com wily/universe Translation-en
기존 http://kr.archive.ubuntu.com wily-updates/main Sources
기존 http://kr.archive.ubuntu.com wily-updates/restricted Sources
기존 http://kr.archive.ubuntu.com wily-updates/universe Sources
기존 http://kr.archive.ubuntu.com wily-updates/multiverse Sources
기존 http://kr.archive.ubuntu.com wily-updates/main amd64 Packages
기존 http://kr.archive.ubuntu.com wily-updates/restricted amd64 Packages
기존 http://kr.archive.ubuntu.com wily-updates/universe amd64 Packages
기존 http://kr.archive.ubuntu.com wily-updates/multiverse amd64 Packages
기존 http://kr.archive.ubuntu.com wily-updates/main i386 Packages
기존 http://kr.archive.ubuntu.com wily-updates/restricted i386 Packages
기존 http://kr.archive.ubuntu.com wily-updates/universe i386 Packages
기존 http://kr.archive.ubuntu.com wily-updates/multiverse i386 Packages
기존 http://kr.archive.ubuntu.com wily-updates/main Translation-en
받기:2 http://security.ubuntu.com wily-security/main Sources [38.7 kB]
기존 http://kr.archive.ubuntu.com wily-updates/multiverse Translation-en
기존 http://kr.archive.ubuntu.com wily-updates/restricted Translation-en
기존 http://kr.archive.ubuntu.com wily-updates/universe Translation-en
기존 http://kr.archive.ubuntu.com wily-backports/main Sources
기존 http://kr.archive.ubuntu.com wily-backports/universe Sources
기존 http://kr.archive.ubuntu.com wily-backports/main amd64 Packages
기존 http://kr.archive.ubuntu.com wily-backports/universe amd64 Packages
기존 http://kr.archive.ubuntu.com wily-backports/main i386 Packages
기존 http://kr.archive.ubuntu.com wily-backports/universe i386 Packages
기존 http://kr.archive.ubuntu.com wily-backports/main Translation-en
기존 http://kr.archive.ubuntu.com wily-backports/universe Translation-en
받기:3 http://security.ubuntu.com wily-security/restricted Sources [2,854 B]
받기:4 http://security.ubuntu.com wily-security/universe Sources [8,955 B]
기존 http://dl.google.com stable/main amd64 Packages
받기:5 http://security.ubuntu.com wily-security/multiverse Sources [2,772 B]
기존 http://dl.google.com stable/main i386 Packages
받기:6 http://security.ubuntu.com wily-security/main amd64 Packages [126 kB]
받기:7 http://security.ubuntu.com wily-security/restricted amd64 Packages [10.9 kB]
받기:8 http://security.ubuntu.com wily-security/universe amd64 Packages [45.0 kB]
받기:9 http://security.ubuntu.com wily-security/multiverse amd64 Packages [6,249 B]
무시http://dl.google.com stable/main Translation-ko_KR
무시http://dl.google.com stable/main Translation-ko
받기:10 http://security.ubuntu.com wily-security/main i386 Packages [124 kB]
무시http://dl.google.com stable/main Translation-en
받기:11 http://security.ubuntu.com wily-security/restricted i386 Packages [10.8 kB]
받기:12 http://security.ubuntu.com wily-security/universe i386 Packages [45.1 kB]
받기:13 http://security.ubuntu.com wily-security/multiverse i386 Packages [6,434 B]
기존 http://security.ubuntu.com wily-security/main Translation-en
기존 http://security.ubuntu.com wily-security/multiverse Translation-en
기존 http://security.ubuntu.com wily-security/restricted Translation-en
기존 http://security.ubuntu.com wily-security/universe Translation-en
내려받기 494 k바이트, 소요시간 8초 (56.6 k바이트/초)
패키지 목록을 읽는 중입니다... 완료
lucifer@lucifer-Vostro-V13:~$







참조
http://ubuntuforums.org/showthread.php?t=1654068




[Grunt] jit-grunt: Plugin for the "karma" task not found. 오류




증상

Grunt 를 이용하여 test 수행 시 아래와 같이 보여지며 정상적으로 작동이 되지 않았다.



lucifer@lucifer-Vostro-V13:/source/angular/todo$ grunt test
Running "clean:server" (clean) task
>> 1 path cleaned.

Running "wiredep:app" (wiredep) task

Running "wiredep:test" (wiredep) task

Running "concurrent:test" (concurrent) task

    Running "copy:styles" (copy) task
    Copied 1 file
   
    Done, without errors.
   
   
    Execution Time (2016-03-01 06:43:37 UTC)
    loading tasks               435ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 88%
    loading grunt-contrib-copy   33ms  ▇▇▇ 7%
    copy:styles                  26ms  ▇▇ 5%
    Total 495ms
   
Running "postcss:server" (postcss) task
>> 1 processed stylesheet created.

Running "postcss:dist" (postcss) task
>> 1 processed stylesheet created.

Running "connect:test" (connect) task
Started connect web server on http://localhost:9001

jit-grunt: Plugin for the "karma" task not found.
If you have installed the plugin already, please setting the static mapping.
See https://github.com/shootaroo/jit-grunt#static-mappings

Warning: Task "karma" failed. Use --force to continue.


Aborted due to warnings.


Execution Time (2016-03-01 06:43:35 UTC)
loading tasks                  435ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 14%
wiredep:app                    343ms  ▇▇▇▇▇▇▇▇▇▇▇ 11%
wiredep:test                    40ms  ▇▇ 1%
concurrent:test                 1.1s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 36%
loading grunt-postcss          182ms  ▇▇▇▇▇▇ 6%
postcss:server                 318ms  ▇▇▇▇▇▇▇▇▇▇▇ 10%
postcss:dist                   429ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 13%
loading grunt-contrib-connect  199ms  ▇▇▇▇▇▇▇ 6%
connect:test                    65ms  ▇▇▇ 2%
Total 3.2s

lucifer@lucifer-Vostro-V13:/source/angular/todo$






해결방법

아래와 같은 명령어로 관련된 프로그램들을 설치해주니 정상적으로 되었다.
(윈도우에서는 앞의 sudo 명령어를 빼고 입력하면 된다.)


$ sudo npm install grunt-karma karma karma-phantomjs-launcher karma-jasmine jasmine-core phantomjs-prebuilt --save-dev






lucifer@lucifer-Vostro-V13:/source/angular/todo$ grunt test
Running "clean:server" (clean) task
>> 1 path cleaned.

Running "wiredep:app" (wiredep) task

Running "wiredep:test" (wiredep) task

Running "concurrent:test" (concurrent) task
  
    Running "copy:styles" (copy) task
    Copied 1 file
  
    Done, without errors.
  
  
    Execution Time (2016-03-01 07:23:32 UTC)
    loading tasks               434ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 88%
    loading grunt-contrib-copy   33ms  ▇▇▇ 7%
    copy:styles                  26ms  ▇▇ 5%
    Total 494ms
  
Running "postcss:server" (postcss) task
>> 1 processed stylesheet created.

Running "postcss:dist" (postcss) task
>> 1 processed stylesheet created.

Running "connect:test" (connect) task
Started connect web server on http://localhost:9001

Running "karma:unit" (karma) task
01 03 2016 16:23:36.280:WARN [watcher]: Pattern "/source/angular/todo/test/mock/**/*.js" does not match any file.
01 03 2016 16:23:36.522:INFO [karma]: Karma v0.13.21 server started at http://localhost:8080/
01 03 2016 16:23:36.557:INFO [launcher]: Starting browser PhantomJS
01 03 2016 16:23:38.553:INFO [PhantomJS 2.1.1 (Linux 0.0.0)]: Connected on socket /#cHONTCxkMI-hJGL_AAAA with id 34685169
PhantomJS 2.1.1 (Linux 0.0.0) Controller: TodoCtrl should attach a list of awesomeThings to the scope FAILED
    TypeError: undefined is not an object (evaluating 'TodoCtrl.awesomeThings.length') in /source/angular/todo/test/spec/controllers/todo.js (line 21)
    /source/angular/todo/test/spec/controllers/todo.js:21:34
PhantomJS 2.1.1 (Linux 0.0.0): Executed 3 of 3 (1 FAILED) (0.049 secs / 0.041 secs)
Warning: Task "karma:unit" failed. Use --force to continue.

Aborted due to warnings.


Execution Time (2016-03-01 07:23:31 UTC)
loading tasks                  432ms  ▇▇▇▇▇ 4%
wiredep:app                    326ms  ▇▇▇▇ 3%
concurrent:test                 1.1s  ▇▇▇▇▇▇▇▇▇▇▇ 10%
loading grunt-postcss          180ms  ▇▇ 2%
postcss:server                 311ms  ▇▇▇ 3%
loading grunt-contrib-connect  190ms  ▇▇ 2%
loading grunt-karma             1.8s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 16%
karma:unit                      6.2s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 58%
Total 10.7s

lucifer@lucifer-Vostro-V13:/source/angular/todo$





PS.
이상하게도 이것저것 해봤지만 정상적으로 되지 않아서 재부팅도 해보고 이것저것 설치를 하다가 마지막에 해당 명령어를 입력하여 설치 후 테스트 해보니 정상적으로 되었다.



lucifer@lucifer-Vostro-V13:~$ sudo npm install grunt-karma --save-dev
grunt-karma@0.12.1 node_modules/grunt-karma
└── lodash@3.10.1
lucifer@lucifer-Vostro-V13:~$






참조
https://github.com/yeoman/generator-angular/issues/1230#issuecomment-167261260
http://stackoverflow.com/questions/17313157/generator-angular-task-karma-not-found-when-calling-grunt-test