Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E: Package 'iproute' has no installation candidate #812

Open
ShuaiJunlan opened this issue Jun 29, 2018 · 17 comments
Open

E: Package 'iproute' has no installation candidate #812

ShuaiJunlan opened this issue Jun 29, 2018 · 17 comments

Comments

@ShuaiJunlan
Copy link

@ShuaiJunlan ShuaiJunlan commented Jun 29, 2018

When excuting the command mininet/utils/install.sh, it occurs that E: Package 'iproute' has no installation candidate.

Enviroment:

  • Ubuntu 18.04LTS
  • mininet 2.2.2
@ChannithAm

This comment has been minimized.

Copy link

@ChannithAm ChannithAm commented Jul 28, 2018

Have you solved it yet? I 've got "E: Package 'iproute' has no installation candidate
" too.

@ChannithAm

This comment has been minimized.

Copy link

@ChannithAm ChannithAm commented Jul 28, 2018

Oops!!! I solved it!!! Ubuntu 18.04, you must replace iproute in mininet/util/installl.sh by iproute2.

@ShuaiJunlan

This comment has been minimized.

Copy link
Author

@ShuaiJunlan ShuaiJunlan commented Jul 28, 2018

@ChannithAm I just use the master branch to install, it can run normally.

@ChannithAm

This comment has been minimized.

Copy link

@ChannithAm ChannithAm commented Sep 14, 2018

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Sep 14, 2018

@ChannithAm
Hi
I did the same as you did and now it is working perfectly... great job. thank you so much for sharing here.

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Sep 18, 2018

connect failed no route to host in ubuntu, TCP Traffic Test between h1 to h4

When I run this to h1
perf -c 10.1.1.4 -i 10 -t 30

it give this error
connect failed: No route to host,

@ChannithAm

This comment has been minimized.

Copy link

@ChannithAm ChannithAm commented Sep 21, 2018

Suppose you created 4 host, a single switch:
$ sudo mn --topo single,4
then run iperf to test TCP traffic bandwidth, so
$ iperf h1 h4
mininet> iperf h1 h2
*** Iperf: testing TCP bandwidth between h1 and h2
.*** Results: ['23.9 Gbits/sec', '23.9 Gbits/sec']

anyway if you launch 2 xterm, one is client and another one is server.

  • For server:
    $ iperf -s
  • For client:
    $ iperf -c 10.0.0.4 # which 10.0.0.4 is an h4 's IP (server).
    image

So for your work, you make sure that your network has connected to controller, your IP setup is right!!
Best regards!

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Sep 24, 2018

Writing custom Tapology in Mininet, sudo python example1.py I get this error `python: can’t open file ‘example1.py’ : [Errorno 2 ] No such file or directory

can anyone guide me where I am doing mistake

@ChannithAm

This comment has been minimized.

Copy link

@ChannithAm ChannithAm commented Sep 24, 2018

Where did you save 'example1.py' file?

  • For example,
    • $ cd # so here we'll create a file in home directory, or anywhere else you wish
    • $ vim example1.py
    • $ # run your code
    • $ sudo python example1.py
@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Sep 26, 2018

Where did you save 'example1.py' file?

* For example,
  
  * $ cd  # so here we'll create a file in home directory, or anywhere else you wish
  * $ vim example1.py
  * $ # run your code
  * $ sudo python example1.py

Thanks its working now

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Sep 26, 2018

img_8327
when I run ~/learn-sdn-with-ryu/ryu-exercises$ ryu-manager ex1_simple_switch_13.py
It gives this error
ImportError: No module named ex1_simple_switch_13.py
can anyone help with this

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Sep 27, 2018

Not able to run ryu-manager ryu.app.simple_switch_13
Error: Already in use

ryu-manager ryu.app.simple_switch_13
loading app ryu.app.simple_switch_13
loading app ryu.controller.ofp_handler
instantiating app ryu.app.simple_switch_13 of SimpleSwitch13
instantiating app ryu.controller.ofp_handler of OFPHandler
hub: uncaught exception: Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line 59, in _launch
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/ryu/controller/controller.py", line 153, in call
self.ofp_ssl_listen_port)
File "/usr/local/lib/python2.7/dist-packages/ryu/controller/controller.py", line 187, in server_loop
datapath_connection_factory)
File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line 126, in init
self.server = eventlet.listen(listen_info)
File "/usr/local/lib/python2.7/dist-packages/eventlet/convenience.py", line 78, in listen
sock.bind(addr)
File "/usr/lib/python2.7/socket.py", line 228, in meth
return getattr(self._sock,name)(*args)
error: [Errno 98] Address already in use

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Sep 27, 2018

Not able to run ryu-manager ryu.app.simple_switch_13
Error: Already in use

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Oct 5, 2018

on pycharm when I run the code
` #!/usr/bin/env python

-- coding: UTF-8 --

from keras.datasets import mnist
from keras.models import Sequential
from keras.layers.core import Dense, Activation
from keras.utils import np_utils

Get the default MNIST data

(X_train, y_train), (X_test, y_test) = mnist.load_data()

X_train = X_train.reshape(60000, 784) / 255
X_test = X_test.reshape(10000, 784) / 255

y_train = np_utils.to_categorical(y_train)
y_test = np_utils.to_categorical(y_test)

Network

model = Sequential([
Dense(512, input_shape=(784,)),
Activation('sigmoid'),
Dense(10),
Activation('softmax')
])

Compile

model.compile(loss='categorical_crossentropy', optimizer='sgd', metrics=['accuracy'])

Learning

model.fit(X_train, y_train, batch_size=200, verbose=1, epochs=20, validation_split=0.1)

Forecast

score = model.evaluate(X_test, y_test, verbose=1)
print('test accuracy : ', score[1]) `

I get this error
line 4, in <module> from keras.datasets import mnist ModuleNotFoundError: No module named 'keras'

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Oct 9, 2018

Hi,

Can anyone give an example of mesh topology with RYU Controller ?????
1 similar comment
@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Oct 10, 2018

Hi,

Can anyone give an example of mesh topology with RYU Controller ?????
@ShuaiJunlan

This comment has been minimized.

Copy link
Author

@ShuaiJunlan ShuaiJunlan commented Oct 11, 2018

@Ayesha2788 You can search in Google.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.